app_guiobj_adjust.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /*******************************************************************************
  2. ** app_guiobj_adjust.h : Description ......
  3. **
  4. ** Copyright(c) 2008 Sunmedia Technologies - All Rights Reserved
  5. ** Author : qin.he
  6. **
  7. ** $Id: app_guiobj_adjust.h 1069 2010-11-16 10:32:32Z b.yang_c1 $
  8. *******************************************************************************/
  9. #ifndef _APP_ADJUST_GUIOBJ_H_
  10. #define _APP_ADJUST_GUIOBJ_H_
  11. #include "app_gui.h"
  12. #define ADJUST_MAX_VALUE (100)
  13. #define ADJUST_MIN_VALUE (0)
  14. #define ADJUST_BRIGHTNESS_MAX_VALUE (100)
  15. #define ADJUST_BRIGHTNESS_MIN_VALUE (0)
  16. #define ADJUST_CONTRAST_MAX_VALUE (100)
  17. #define ADJUST_CONTRAST_MIN_VALUE (0)
  18. #define ADJUST_SHARPNESS_MAX_VALUE (100)
  19. #define ADJUST_SHARPNESS_MIN_VALUE (0)
  20. #define ADJUST_COLOUR_MAX_VALUE (100)
  21. #define ADJUST_COLOUR_MIN_VALUE (0)
  22. #define ADJUST_TINT_MAX_VALUE (100)
  23. #define ADJUST_TINT_MIN_VALUE (0)
  24. #define ADJUST_BACKLIGHT_MAX_VALUE (100)
  25. #define ADJUST_BACKLIGHT_MIN_VALUE (0)
  26. #define ADJUST_BASS_MAX_VALUE (100)
  27. #define ADJUST_BASS_MIN_VALUE (0)
  28. #define ADJUST_TREBLE_MAX_VALUE (100)
  29. #define ADJUST_TREBLE_MIN_VALUE (0)
  30. #define ADJUST_EQ100HZ_MAX_VALUE (100)
  31. #define ADJUST_EQ100HZ_MIN_VALUE (0)
  32. #define ADJUST_EQ300HZ_MAX_VALUE (100)
  33. #define ADJUST_EQ300HZ_MIN_VALUE (0)
  34. #define ADJUST_EQ1KHZ_MAX_VALUE (100)
  35. #define ADJUST_EQ1KHZ_MIN_VALUE (0)
  36. #define ADJUST_EQ3KHZ_MAX_VALUE (100)
  37. #define ADJUST_EQ3KHZ_MIN_VALUE (0)
  38. #define ADJUST_EQ8KHZ_MAX_VALUE (100)
  39. #define ADJUST_EQ8KHZ_MIN_VALUE (0)
  40. #define ADJUST_BALANCE_MAX_VALUE (50)
  41. #define ADJUST_BALANCE_MIN_VALUE (-50)
  42. #ifdef SUPPROT_MAINMENU_AUDIO_DELAY
  43. #define ADJUST_AUDIODELAY_MAX_VALUE (200)
  44. #define ADJUST_AUDIODELAY_MIN_VALUE (-200)
  45. #endif
  46. #ifdef CONFIG_SUPPORT_3D_EN
  47. #define ADJUST_3D_VIEW_MAX_VALUE (5)
  48. #define ADJUST_3D_VIEW_MIN_VALUE (-5)
  49. #define ADJUST_3D_DEPTH_MAX_VALUE (10)
  50. #define ADJUST_3D_DEPTH_MIN_VALUE (0)
  51. #endif
  52. #ifdef SUPPORT_CMX_MAINMENU_BACKLIGHT
  53. #define ADJUST_BACKLIGHTBOOST_MAX_VALUE (100)
  54. #define ADJUST_BACKLIGHTBOOST_MIN_VALUE (0)
  55. #endif
  56. #define ADJUST_OSDTIMER_MAX_VALUE (100)
  57. #define ADJUST_OSDTIMER_MIN_VALUE (5)
  58. #define ADJUST_OFFTIMER_MAX_VALUE (24)
  59. #define ADJUST_OFFTIMER_MIN_VALUE (0)
  60. typedef enum {
  61. #ifndef CONFIG_SUPPORT_MONITOR
  62. ADJUST_VOLUME = 0,
  63. ADJUST_BRIGHTNESS,
  64. ADJUST_CONTRAST,
  65. ADJUST_SHARPNESS,
  66. ADJUST_COLOUR,
  67. ADJUST_TINT,
  68. #ifdef SUPPORT_BACKLIGHT_ADJUST
  69. ADJUST_BACKLIGHT,
  70. #endif
  71. #ifdef CONFIG_PROJECTOR_ASPECT
  72. ADJUST_PROJECTION_ZOOM,
  73. #endif
  74. ADJUST_BASS,
  75. ADJUST_TREBLE,
  76. #if 0//Delete EQ for mantis 0167577
  77. ADJUST_EQ100HZ,
  78. ADJUST_EQ300HZ,
  79. ADJUST_EQ1KHZ,
  80. ADJUST_EQ3KHZ,
  81. ADJUST_EQ8KHZ,
  82. #endif
  83. ADJUST_BALANCE,
  84. ADJUST_AUDIO_DESCRIPTION,//Ranshiou 20140703
  85. #ifdef SUPPROT_MAINMENU_AUDIO_DELAY
  86. ADJUST_AUDIO_DELAY,
  87. #endif
  88. #ifdef CONFIG_SUPPORT_3D_EN
  89. ADJUST_3D_VIEW,
  90. ADJUST_3D_DEPTH,
  91. #endif
  92. ADJUST_PC_HPOSITION,
  93. ADJUST_PC_VPOSITION,
  94. ADJUST_PC_PHASE,
  95. ADJUST_PC_CLOCK,
  96. #ifdef CONFIG_SUPPORT_CEC_TV
  97. ADJUST_HDMICEC_AMPVOLUME,
  98. #endif
  99. #ifdef SUPPORT_CMX_MAINMENU_BACKLIGHT
  100. ADJUST_BACKLIGHTBOOST,
  101. #endif
  102. #else
  103. ADJUST_VOLUME = 0,
  104. ADJUST_BRIGHTNESS,
  105. ADJUST_CONTRAST,
  106. ADJUST_PC_HPOSITION,
  107. ADJUST_PC_VPOSITION,
  108. ADJUST_PC_PHASE,
  109. ADJUST_PC_CLOCK,
  110. ADJUST_COLORTEMP_RED,
  111. ADJUST_COLORTEMP_GREEN,
  112. ADJUST_COLORTEMP_BLUE,
  113. ADJUST_OSD_HPOSITION,
  114. ADJUST_OSD_VPOSITION,
  115. ADJUST_OSD_TIMEOUT,
  116. ADJUST_OFFTIMER,
  117. #endif
  118. ADJUST_MAX,
  119. } Adjust_en;
  120. /********************************************************************
  121. Extern Global Functions
  122. ********************************************************************/
  123. #ifndef CONFIG_SUPPORT_MONITOR
  124. /*****************************************************************************
  125. ** FUNCTION : APP_GUIOBJ_Adjust_GetFocusItem
  126. **
  127. ** DESCRIPTION :
  128. ** Get current focus item for adjust
  129. **
  130. ** PARAMETERS :
  131. **
  132. **
  133. ** RETURN VALUES:
  134. ** g_dPara - focus item value
  135. *****************************************************************************/
  136. UINT32 APP_GUIOBJ_Adjust_GetFocusItem(void);
  137. #endif
  138. /*****************************************************************************
  139. ** FUNCTION : APP_GUIOBJ_Adjust_EQGetFocusItem
  140. **
  141. ** DESCRIPTION :
  142. ** Get current focus item for adjust when return EQ guiobj
  143. **
  144. ** PARAMETERS :
  145. **
  146. **
  147. ** RETURN VALUES:
  148. ** g_dPara - focus item value
  149. *****************************************************************************/
  150. UINT32 APP_GUIOBJ_EQAdjust_GetFocusItem(void);
  151. /*****************************************************************************
  152. ** FUNCTION : APP_GUIOBJ_Adjust_GetType
  153. **
  154. ** DESCRIPTION :
  155. ** Get adjust type
  156. **
  157. ** PARAMETERS :
  158. **
  159. **
  160. ** RETURN VALUES:
  161. ** g_dPara - adjust type
  162. *****************************************************************************/
  163. UINT32 APP_GUIOBJ_Adjust_GetType(void);
  164. void APP_Adjust_Process_VolumeKeyHandler(UINT32 dMessage, UINT8 IsCECKey);
  165. #endif
  166. /*****************************************************************************
  167. ** $Rev: 1069 $
  168. **
  169. *****************************************************************************/