app_guiobj_adjust.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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 SUPPORT_CMX_MAINMENU_BACKLIGHT
  47. #define ADJUST_BACKLIGHTBOOST_MAX_VALUE (100)
  48. #define ADJUST_BACKLIGHTBOOST_MIN_VALUE (0)
  49. #endif
  50. #define APP_ATV_PC_CLOCK_MAX (30)
  51. #define APP_ATV_PC_CLOCK_MIN (-30)
  52. #define APP_ATV_PC_HPOS_MAX (16)
  53. #define APP_ATV_PC_HPOS_MIN (-16)
  54. #define APP_ATV_PC_VPOS_MAX (16)
  55. #define APP_ATV_PC_VPOS_MIN (-16)
  56. typedef enum {
  57. ADJUST_VOLUME = 0,
  58. ADJUST_CONTRAST,
  59. ADJUST_BRIGHTNESS,
  60. ADJUST_COLOUR,
  61. ADJUST_TINT,
  62. ADJUST_SHARPNESS,
  63. #ifdef SUPPORT_BACKLIGHT_ADJUST
  64. ADJUST_BACKLIGHT,
  65. #endif
  66. ADJUST_TREBLE,
  67. ADJUST_BASS,
  68. #if 0//Delete EQ for mantis 0167577
  69. ADJUST_EQ100HZ,
  70. ADJUST_EQ300HZ,
  71. ADJUST_EQ1KHZ,
  72. ADJUST_EQ3KHZ,
  73. ADJUST_EQ8KHZ,
  74. #endif
  75. ADJUST_BALANCE,
  76. #ifdef SUPPROT_MAINMENU_AUDIO_DELAY
  77. ADJUST_AUDIO_DELAY,
  78. #endif
  79. ADJUST_PC_HPOSITION,
  80. ADJUST_PC_VPOSITION,
  81. ADJUST_PC_CLOCK,
  82. ADJUST_PC_PHASE,
  83. ADJUST_HDMICEC_AMPVOLUME,
  84. #ifdef SUPPORT_CMX_MAINMENU_BACKLIGHT
  85. ADJUST_BACKLIGHTBOOST,
  86. #endif
  87. ADJUST_MAX,
  88. } Adjust_en;
  89. typedef struct _adjust_data
  90. {
  91. HWND h_BG_Value;
  92. HWND h_Progress;
  93. HWND h_Text_Lable;
  94. }ADJUST_DATA;
  95. /********************************************************************
  96. Extern Global Functions
  97. ********************************************************************/
  98. /*****************************************************************************
  99. ** FUNCTION : APP_GUIOBJ_Adjust_GetFocusItem
  100. **
  101. ** DESCRIPTION :
  102. ** Get current focus item for adjust
  103. **
  104. ** PARAMETERS :
  105. **
  106. **
  107. ** RETURN VALUES:
  108. ** g_dPara - focus item value
  109. *****************************************************************************/
  110. UINT32 APP_GUIOBJ_Adjust_GetFocusItem(void);
  111. /*****************************************************************************
  112. ** FUNCTION : APP_GUIOBJ_Adjust_EQGetFocusItem
  113. **
  114. ** DESCRIPTION :
  115. ** Get current focus item for adjust when return EQ guiobj
  116. **
  117. ** PARAMETERS :
  118. **
  119. **
  120. ** RETURN VALUES:
  121. ** g_dPara - focus item value
  122. *****************************************************************************/
  123. UINT32 APP_GUIOBJ_EQAdjust_GetFocusItem(void);
  124. /*****************************************************************************
  125. ** FUNCTION : APP_GUIOBJ_Adjust_GetType
  126. **
  127. ** DESCRIPTION :
  128. ** Get adjust type
  129. **
  130. ** PARAMETERS :
  131. **
  132. **
  133. ** RETURN VALUES:
  134. ** g_dPara - adjust type
  135. *****************************************************************************/
  136. UINT32 APP_GUIOBJ_Adjust_GetType(void);
  137. void APP_Adjust_Process_VolumeKeyHandler(UINT32 dMessage, UINT8 IsCECKey);
  138. #endif
  139. /*****************************************************************************
  140. ** $Rev: 1069 $
  141. **
  142. *****************************************************************************/