PS.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:49k
- /****************************************************************************************
- * Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
- *
- * File: $Workfile: PS.h $
- *
- * Description:
- * ============
- *
- *
- * Log:
- * ====
- * $Revision: 135 $
- * Last Modified by $Author: Fwang $ at $Modtime: 04-04-02 14:52 $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /I76/I76_Common/I76_Reference/Playcore/PS/PS.h $
- *
- * 135 04-04-02 15:01 Fwang
- * Fix green screen by MPP.
- *
- * 134 04-04-02 14:17 Billt
- * merge some new elements
- *
- * 133 3/25/04 11:37p Johnk
- * inserted the stillmode interpolation
- *
- * 132 3/21/04 1:56p Johnk
- * added the DVI Video out mode
- *
- * 131 3/16/04 11:08p Johnk
- * Merged the latest code of S1 function
- *
- * 130 3/12/04 5:45p Johnk
- * Merged EZVIEW function - inserted EZVIEW_ENABLE macro
- *
- * 129 04-03-09 20:32 Chaol
- * add VE & Melody support, and code clean
- *
- * 128 04-03-05 16:46 Jerryc
- *
- * 127 04-03-02 16:43 Chaol
- * remove gtps.mMuteSPDIF
- *
- * 126 04-03-02 13:20 Chaol
- * add spectrum analyzer and graphic equalizer support
- *
- * 125 04-02-24 12:04 Janeg
- * Improve EZVIEW implementation.
- *
- * 124 2/20/04 6:22p Glenl
- * Merged S1 code
- *
- * 123 2/10/04 7:49p Chaol
- * add karaoke support
- *
- * 122 28/01/04 9:31 Rinata
- * add downmix_volume gps parameter for headphones volume
- *
- * 121 18/01/04 13:36 Rinata
- * support selecting between HD and SD Jpeg
- *
- * 120 1/14/04 9:54a Chaol
- * code clear
- *
- * 119 1/13/04 12:11 Hamadk
- * Merged with CES DB
- *
- * 118 1/08/04 5:05p Einavz
- * add sacd support
- *
- * 117 1/07/04 10:26a Fwang
- * Add PS_UPDATE_TV_SHAPE.
- *
- * 116 03-12-23 12:51 Fwang
- * Add Orinal as new view mode
- *
- * 115 12/18/03 12:15p Leslie
- * Remove INTERPOLATION_CONTROL on I76
- *
- * 114 12/01/03 10:41a Chaol
- * fix comment
- *
- * 113 11/28/03 5:52p Fwang
- * Implement manual scaling and clean code.
- *
- * 112 11/28/03 5:08p Chaol
- * change down sample
- *
- * 111 11/26/03 6:05a Chaol
- * add free bits to SPEAKERS_CONFIG_TABLE and change define of DRC
- *
- * 110 11/15/03 12:42p Leonh
- * Angieh:add support for the display menu.
- *
- * 109 11/14/03 11:33a Chaol
- * change PS_UPDATE_A_V_PRIORITY from video setting ground to general
- * setting ground, it isn't for video
- *
- * 108 11/13/03 4:18p Leonh
- * Angieh:Add support for Priority Content.
- *
- * 107 9/11/03 10:50 Rinata
- * Update HDCD support code
- *
- * 106 11/04/03 12:54p Chaol
- * remove gps->compression_mode & AC3_COMPRESSION_MODE_SETTING define, add
- * PINK_NOISE_SETTING to support ping noise
- *
- * 105 11/03/03 11:27a Chaol
- * change DRC_ON from 0x7FFF to 0xFFFF
- *
- * 104 10/24/03 1:14p Chaol
- * implement new bass management
- *
- * 103 10/22/03 11:29a Chaol
- * change gps->ucDRCCtrl from BYTE to WORD
- *
- * 102 10/15/03 8:47a Leslie
- * Remove Karaoke Recording
- * Re-Order TEMP_SETTINGS
- *
- * 101 14/10/03 16:41 Rinata
- * remove mMuteSPDIF
- *
- * 100 10/10/03 12:08p Chaol
- *
- * 99 10/10/03 8:48a Chaol
- *
- * 98 9/29/03 12:02p Chaol
- * code clear & rewrite
- *
- * 97 9/23/03 6:36p Chaol
- * checkin in stage4
- *
- ****************************************************************************************/
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef _PS_H
- #define _PS_H
- #include "Includesysdefs.h"
- #include "Playcorenav_dvdHeaderdvddef.h"
- #ifdef A_SD340E
- #ifdef USE_I64_TV_SHAPE_SETTING
- typedef enum {
- PS_USER_TV43PS,
- PS_USER_TV43LB,
- PS_USER_TV169
- }PS_USER_TV_SHAPE;
- #endif
- #endif
- // <<< Glen.Lim.1024.2004
- #ifdef D_AUTO_PLAY_MODE_SUPPORT
- typedef enum{
- Auto_Play_Mode_Off = 0,
- Auto_Play_Mode_On = 1,
- } Auto_Play_Setup;
- #endif
- //jeanz_0331_2005
- #ifdef D_SURROUND_PERFERENCE_SUPPORT
- typedef enum
- {
- SPP_Stereo = 1,
- SPP_3D = 2,
- SPP_DD =3,
- SPP_DTS =4
- }SurroundPerferenceParam;
- #endif
- typedef enum {
- PS_TV43,
- PS_TV169
- }PS_TV_SHAPE;
- #ifdef D_YOUR_DVD_SUPPORT
- typedef enum{
- Your_DVD_Off = 0,
- Your_DVD_On = 1,
- } Your_DVD_Setup;
- #endif
- #ifdef D_SCART_OUTPUT //BT012603: added
- enum {
- SCART_VMOD_STANDBY,
- SCART_VMOD_16V9,
- SCART_VMOD_4V3,
- SCART_VFMD_CVBS,
- SCART_VFMD_RGB,
- };
- #endif //D_SCART_OUTPUT //BT012603: added
- #ifdef FOUR_LEVEL_TRANSPARENCY //BT030703
- enum{
- PS_TRANS_LEVEL_1= 0,
- PS_TRANS_LEVEL_2,
- PS_TRANS_LEVEL_3,
- PS_TRANS_LEVEL_4,
- };
- #endif //FOUR_LEVEL_TRANSPARENCY
- #define PS_TV_FULL_SCREEN PS_TV169
- #ifdef I77_COMPANION_CHIP
- /* Don't change the order of the below enums, they relate to the I77 params tables */
- typedef enum
- {
- HD_NTSC_IN_OUT_480P = 0,
- HD_NTSC_IN_OUT_720P = 1,
- HD_NTSC_IN_OUT_1080I = 2,
- HD_NTSC_IN_OUT_800X600 = 3,
- HD_NTSC_IN_OUT_1064X600 = 4,
- HD_NTSC_IN_OUT_1024X768 = 5,
- HD_NTSC_IN_OUT_1360X768 = 6,
- HD_NTSC_IN_OUT_848X480 = 7,
- HD_NTSC_IN_OUT_1280X768 = 8,
- HD_NTSC_IN_NUM_OF_MODES = 9
- } HD_NTSC_IN_VID_OUT_MODE;
- typedef enum
- {
- HD_PAL_IN_OUT_576P = 0,
- HD_PAL_IN_OUT_720P = 1,
- HD_PAL_IN_OUT_1080I = 2,
- HD_PAL_IN_OUT_800X600 = 3,
- HD_PAL_IN_OUT_1064X600 = 4,
- HD_PAL_IN_OUT_1024X768 = 5,
- HD_PAL_IN_OUT_1360X768 = 6,
- HD_PAL_IN_NUM_OF_MODES = 7
- } HD_PAL_IN_VID_OUT_MODE;
- #define SD_JPEG_MODE 0xff
- #ifdef I77_BRAIN_STORM
- #define HD_JPEG_MODE 0x00
- #define HD_MODE_UNLOCKED 0x00
- #define HD_MODE_LOCKED 0x01
- #endif//I77_BRAIN_STORM
- #endif // I77_COMPANION_CHIP
- enum {
- TV_SYS_NTSC,
- TV_SYS_PAL,
- TV_SYS_PAL60,
- TV_SYS_PAL60R,
- TV_SYS_PALM,
- TV_SYS_AUTO,
- TV_SYS_PALN,
- TV_SYS_PALNC,
- };
- #ifdef D_AUX_SUBTITLE_SELECT
- enum {
- AUX_SUB_WESTERN_EUR,
- AUX_SUB_CENTRAL_EUR,
- AUX_SUB_CHINESE_GB2312,
- AUX_SUB_CHINESE_BIG5,
- AUX_SUB_KOREAN_HANGUL,
- AUX_SUB_CYRILLIC,
- AUX_SUB_HEBREW,
- AUX_SUB_OFF
- };
- #endif
- #ifdef DVD_AUDIO_SUPPORT
- enum
- {
- DVD_AUDIO_PRIORITY,
- DVD_VIDEO_PRIORITY,
- };
- #endif
- #ifdef EXINO2 //<<ZKR ML:0406 Dts digital out option.
- #ifdef D_DIGITAL_DTS_OUT_OPTION
- enum
- {
- DTS_AUDIO_OUT_OFF,
- DTS_AUDIO_OUT_ON,
- };
- #endif
- #endif
- enum {
- VID_OUT_CVBS,
- VID_OUT_YUV,
- VID_OUT_RGB,
- VID_OUT_S_VIDEO,
- VID_OUT_YPbPr, //BT040903: Added
- VID_OUT_VGA, //DM070203
- };
- enum {
- VID_OUT_HD_RGB,
- VID_OUT_HD_YPbPr,
- };
- enum{
- BG_BLUE,
- BG_GRAY,
- BG_PICTURE,
- BG_JACKET,
- };
- #ifdef D_VIDEO_HD_COM_SETTING
- enum
- {
- VIDEO_COMMON,
- VIDEO_HD,
- } ;
- #endif
- #ifdef VIRTUAL_SURROUND_ENABLE
- enum
- {
- VIRTUAL_SURROUND_OFF,
- VIRTUAL_SURROUND_ON,
- } ;
- #endif
- enum
- {
- PSO_OFF,
- PSO_ON,
- } ;
- //<<< Roger Add, 020624
- enum{
- PSO_YPbPr,
- PSO_VGA,
- };
- //>>>
- //SeanL_0915_2003_A
- enum{
- DRC_ON = 0xFFFFU,
- DRC_7_8TH = 0x7000U,
- DRC_6_8TH = 0x6000U,
- DRC_5_8TH = 0x5000U,
- DRC_4_8TH = 0x4000U,
- DRC_3_8TH = 0x3000U,
- DRC_2_8TH = 0x2000U,
- DRC_1_8TH = 0x1000U,
- DRC_OFF = 0x0000U
- };
- //<<<SeanL_0915_2003_A
- enum{
- PS_3D_AUREAL,
- PS_3D_QSURROUND,
- PS_3D_SPATIALIZER,
- PS_3D_VBX,
- };
- //Between 0-5ms in 125us steps
- typedef enum{
- CNTRCTRL_5MS = 40,
- CNTRCTRL_4MS = 32,
- CNTRCTRL_3MS = 24,
- CNTRCTRL_2MS = 16,
- CNTRCTRL_1MS = 8,
- CNTRCTRL_0MS = 0,
- }CENTER_DELAY_SETTING;
- //Between 0-15ms in 125us steps
- typedef enum{
- REARCTRL_15MS = 120,
- REARCTRL_12MS = 96,
- REARCTRL_9MS = 72,
- REARCTRL_6MS = 48,
- REARCTRL_3MS = 24,
- REARCTRL_0MS = 0,
- }SURROUND_DELAY_SETTING;
- enum{
- DOWN_SAMPLING_SETTING_OFF,
- DOWN_SAMPLING_SETTING_ON
- };
- //FOR PROLOGIC2 SETUP
- enum{
- PROLOGIC_2_PANORAMA_OFF,
- PROLOGIC_2_PANORAMA_ON
- };
- #ifdef MACROVISION_SELECTION_ENABLE//ZORAN LX0327: merge from ZCH
- enum {
- MACROVISION_SELECTION_OFF,
- MACROVISION_SELECTION_ON,
- };
- #endif
- // FW0310 >>>>>>>
- enum {
- VCD_OFF,
- VCD_ON,
- };
- enum {
- HARDWARE_RESUME_OFF,
- HARDWARE_RESUME_ON,
- };
- typedef enum {
- AUDIO_STREAM_UNKNOWN = 0,
- AUDIO_STREAM_AC3 = 1,
- AUDIO_STREAM_DTS = 2,
- AUDIO_STREAM_MPEG = 3,
- AUDIO_STREAM_MP3 = 4,
- AUDIO_STREAM_WMA = 5,
- AUDIO_STREAM_LPCM = 6,
- AUDIO_STREAM_PCM = 7,
- AUDIO_STREAM_ADPCM = 8,
- AUDIO_STREAM_PNG = 9,
- AUDIO_STREAM_SACD = 10,
- AUDIO_STREAM_MLP = 11,
- AUDIO_STREAM_AAC = 12,
- AUDIO_STREAM_OGG = 13
- } AUDIO_STREAM_TYPE;
- typedef enum {
- AUDIO_fs_48khz = 0,
- AUDIO_fs_96khz = 1,
- AUDIO_fs_192khz = 2,
- AUDIO_fs_441khz = 8,
- AUDIO_fs_882khz = 9,
- AUDIO_fs_1764khz =10
- } G_AUDIO_SAMPLING;
- #ifdef ADC_KEY_SCAN
- typedef enum
- {
- ADCIN5,
- ADCIN6,
- ADCIN7
- }ADCIN_SELECT;
- #endif
- typedef enum {
- NO_ANALOG_AUDIO = 0,
- ANALOG_AUDIO_2CH = 1,
- ANALOG_AUDIO_6CH = 2,
- ANALOG_SURROUND_2CH = 3
- } ANALOG_AUDIO_SETTING;
- typedef enum {
- DIGITAL_AUDIO_BITSTREAM = 0,
- DIGITAL_AUDIO_PCM = 1,
- NO_DIGITAL_AUDIO = 2
- } DIGITAL_AUDIO_SPDIF_MODE;
- #ifdef EXINO2 //<<ZKR ML:040604 Dts digital out option.
- #ifdef D_DIGITAL_DTS_OUT_OPTION
- typedef enum{
- DIGITAL_DTS_OUTPUT_ON = 0,
- DIGITAL_DTS_OUTPUT_OFF = 1,
- } DIGITAL_DTS_OUTPUT_MODE;
- #endif
- #endif
- typedef enum {
- SPDIF_QUANT_16_BITS = 0,
- SPDIF_QUANT_18_BITS = 1,
- SPDIF_QUANT_20_BITS = 2,
- SPDIF_QUANT_24_BITS = 3,
- SPDIF_QUANT_MUTE = 4,
- SPDIF_QUANT_SAME_AS_BITSTREAM = 5
- } DIGITAL_AUDIO_SPDIF_QUANT;
- typedef enum {
- SPDIF_TRANS_ENABLE = 0,
- SPDIF_TRANS_DISABLE = 1
- } DIGITAL_AUDIO_SPDIF_FLAG;
- typedef enum {
- SPDIF_MODE = 0x0,
- SPDIF_SEN = 0x1,
- SPDIF_QUANT = 0x2
- } DIGITAL_AUDIO_SETTING;
- typedef enum{
- PROLOGIC_SETTING_OFF = 0,
- PROLOGIC_SETTING_ON = 1,
- PROLOGIC_SETTING_AUTO = 2,
- PROLOGIC_SETTING_MUSIC = 3
- } PROLOGIC_OPTIONS_SETTING;
- // <<< SEC CH.KO012203 : for rear, center speaker setting
- #ifdef D_ENABLE_SPEAKER_SETUP
- typedef enum {
- BASS_CONFIGRATION_ONE = 0,
- BASS_CONFIGRATION_TWO = 1
- }BASS_CFG_SETTING;
- typedef enum {
- PROLOGIC_ACTIVATED = 0,
- PROLOGIC_DEACTIVATED = 1
- } PROLOGIC_STATE;
- typedef enum {
- SW_SETTING_OFF = 0,
- SW_SETTING_ON = 1
- } SW_SETTING;
- typedef enum {
- CENTER_SETTING_LARGE =0,
- CENTER_SETTING_SMALL = 1,
- CENTER_SETTING_NONE =2,
- } CENTER_SETTING;
- typedef enum {
- REAR_SETTING_LARGE =0,
- REAR_SETTING_SMALL = 1,
- REAR_SETTING_NONE =2
- } REAR_SETTING;
- #endif // SPEAKER_SETUP
- // SEC CH.KO031204 >>>
- /*<A name="DEC_LL_ADP_RPC">*/
- typedef enum {
- DEC_LL_ADP_RPC_0 = 0x0,
- DEC_LL_ADP_RPC_1 = 0x1,
- DEC_LL_ADP_RPC_2 = 0x2,
- DEC_LL_ADP_RPC_3 = 0x3,
- DEC_LL_ADP_RPC_4 = 0x4,
- DEC_LL_ADP_RPC_5 = 0x5,
- DEC_LL_ADP_RPC_6 = 0x6,
- DEC_LL_ADP_RPC_7 = 0x7
- } DEC_LL_ADP_RPC_SETTING;
- typedef enum {
- DEC_LL_ADP_COMP_CUST_MODE_0 = 0x0,
- DEC_LL_ADP_COMP_CUST_MODE_1 = 0x1,
- DEC_LL_ADP_COMP_LINE_MODE =0x2,
- DEC_LL_ADP_COMP_RF_MODE =0x3
- } DEC_LL_ADP_COMP_SETTING;
- typedef enum {
- BASS_MANAGEMENT_OFF = 0,
- BASS_MANAGEMENT_ON = 1,
- } BASS_MANAGEMENT_SETTING;
- typedef enum {
- SPK_SIZE_LARGE = 0x0,
- SPK_SIZE_SMALL = 0x1,
- SPK_NOT_PRESENT = 0x2,
- SPK_PRESENT = SPK_SIZE_LARGE,
- } SPK_SIZE_SETTING;
- typedef enum {
- SW_NOT_PRESENT = 0,
- SW_PRESENT = 1
- } SUBWOOFER_SETTING;
- //SeanL:be sure match the struct BASS_MANAGEMENT_CONFIG
- typedef struct {
- unsigned int mFrontSpk:1;
- unsigned int mCenterSpk:2;
- unsigned int mSurroundSpk:2;
- unsigned int mSubwoofer:1;
- unsigned int mFree:2;
- } SPEAKER_CONFIG;
- #define NUMBER_MAX_BM_CONFIG 36
- #define SPEAKERS_DEFAULT_CONFIG 34 //SeanL:Config 17 matches with Large Front, No center, No surround, No subwoofer
- #define SPEAKERS_LSS0_CONFIG 18 //Billt:Config LSS0 matches with Large Front, Small center, Small surround, No subwoofer
- #define SPEAKERS_LSS1_CONFIG 19 //Billt:Config LSS0 matches with Large Front, Small center, Small surround, with subwoofer
- #define SPEAKERS_SSS1_CONFIG 1
- //SeanL:NOTICE:we can't use the micro defined in adp_API.h to init this struct.otherwise it will overflow.
- //we should define micro in PS.h to init it, and conversion it to UINT32 in AS_Get_XXX()
- //
- typedef struct {
- unsigned int mFrontSpk:1; // Front speaker setting : Large or Small
- unsigned int mCenterSpk:2; // Center speaker setting : Large, Small, None
- unsigned int mSurroundSpk:2; // Center speaker setting : Large, Small, None
- unsigned int mSubwoofer:1; // Subwoofer setting : Present or Not present
- unsigned int mBCFG:4; // BCFG of bass management config command (value from 0 to 10)
- unsigned int mOCFG:3; // OCFG of general application command (value from 1 to 7)
- unsigned int mUS:1; //US of bass management config command
- unsigned int mS14_S0:15; //S14~S0 of bass management config command
- unsigned int mS15:1; //S15 of bass management config command
- unsigned int mS16:1; //S16 of bass management config command
- unsigned int mFree:1;
- } SPEAKERS_CONFIG_TABLE;
- //SeanL:obtain all OCFG,BCFG and SW
- extern CONST SPEAKERS_CONFIG_TABLE SpeakersConfigTable[NUMBER_MAX_BM_CONFIG];
- typedef enum{
- BMCONFIG_CMD_BCFG_NO_REDIRECT = 0x0,
- BMCONFIG_CMD_BCFG_DOLBY_MULTICH2LR = 0x1,
- BMCONFIG_CMD_BCFG_DOLBY_CONFIG1 = 0x2,
- BMCONFIG_CMD_BCFG_DOLBY_MULTICH2SW = 0x3,
- BMCONFIG_CMD_BCFG_DOLBY_CONFIG2A = 0x4,
- BMCONFIG_CMD_BCFG_DOLBY_CONFIG2B = 0x5,
- BMCONFIG_CMD_BCFG_DOLBY_CONFIG0 = 0x6,
- BMCONFIG_CMD_BCFG_ARCAM_CROSS = 0x7,
- BMCONFIG_CMD_BCFG_DOLBY_CONFIG3 = 0x8,
- BMCONFIG_CMD_BCFG_DOLBY_CONFIG3B = 0x9,
- BMCONFIG_CMD_BCFG_ARCAM_DUPLICATE = 0xA,
- BMCONFIG_CMD_BCFG_MASK = 0xF
- } BMCONFIG_CMD_BCFG_SETTING;
- typedef enum {
- BMCONFIG_CMD_US_OFF = 0x0,
- BMCONFIG_CMD_US_ON = 0x1,
- BMCONFIG_CMD_US_MASK = 0x1
- } BMCONFIG_CMD_US_SETTING;
- typedef enum {
- DEC_LL_OCFG_2_0_SURROUND_COMPATIBLE = 0x0,
- DEC_LL_OCFG_1_0 = 0x1,
- DEC_LL_OCFG_2_0_NORMAL = 0x2,
- DEC_LL_OCFG_3_0 = 0x3,
- DEC_LL_OCFG_2_1 = 0x4,
- DEC_LL_OCFG_3_1 = 0x5,
- DEC_LL_OCFG_2_2 = 0x6,
- DEC_LL_OCFG_3_2 = 0x7,
- } DEC_LL_OCFG_SETTING;
- //<<<SeanL_0915_2003_A
- typedef enum {
- KARAOKE_SETTING_OFF = 0,
- KARAOKE_SETTING_ON = 1
- } KARAOKE_SETTING;
- typedef enum {
- PARTNER_SETTING_OFF = 0,
- PARTNER_SETTING_ON = 1
- } PARTNER_SETTING;
- typedef enum {
- HDCD_DEACTIVATED = 0,
- HDCD_ACTIVATED = 1
- } HDCD_DETECTION;
- typedef enum {
- CDDTS_NOT_DETECTED = 0,
- CDDTS_DETECTED = 1,
- CDDTS_UN_INITIALIZE = 2
- } CDDTS_DETECTION;
- // <<< Stephane.Hollande.012904:Added CDG detection states
- typedef enum {
- CDG_NOT_DETECTED = 0,
- CDG_DETECTED = 1
- } CDG_DETECTION;
- // Stephane.Hollande.012904 >>>
- typedef enum {
- VP_DEACTIVATED = 0, /* Vocal Partner deactivated */
- VP_ACTIVATED = 1 /* Vocal Partner activated */
- } VOCAL_PARTNER_STATE;
- #ifdef D_ENABLE_HEADPHONE_DETECT
- typedef enum {
- HEADPHONE_PLUG_IN = 0,
- HEADPHONE_PLUG_OUT = 1
- } HEADPHONE_STATE;
- #endif
- typedef enum {
- KAR_AC3_SETTING_NOVOCAL = 0,
- KAR_AC3_SETTING_VOCAL1 = 1,
- KAR_AC3_SETTING_VOCAL2 = 2,
- KAR_AC3_SETTING_ALL = 3
- } KARAOKE_AC3_VOCAL_SETTING;
- typedef enum {
- KAR_AC3_MELODY_SETTING_OFF = 0,
- KAR_AC3_MELODY_SETTING_ON = 1
- } KARAOKE_AC3_MEL_SETTING;
- typedef enum {
- VOICE_CANCEL_SETTING_OFF = 0,
- VOICE_CANCEL_SETTING_ON = 1
- } VOICE_CANCEL_SETTING;
- typedef enum {
- EFFECT3D_SETTING_OFF = 0,
- EFFECT3D_SETTING_ON = 1
- } EFFECT3D_SETTING;
- typedef enum {
- MUTE_SETTING_OFF = 0,
- MUTE_SETTING_ON = 1
- } MUTE_SETTING;
- typedef enum
- {
- MUTE_USER_REQUEST,
- MUTE_CORE_REQUEST,
- MUTE_DETECT_REQUEST
- }MUTE_REQUEST_TYPE;
- typedef enum{
- M_Mode_OFF = 0,
- M_Mode_Prologic_EMU = 1,
- M_Mode_Matrix = 2,
- M_Mode_Movie = 3,
- M_Mode_Music = 4,
- M_Hall_Effects = 5
- };
- typedef enum {
- M_4_STEREO = 0,
- M_NATURAL ,
- M_JAZZ_CLUB ,
- M_CONCERT_HALL ,
- M_STADIUM ,
- #ifdef D_ENABLE_MUSIC_CUSTOMER_MODE
- M_EXT_BUFF ,
- #endif
- M_Mode_CANCEL ,
- M_MAX_MusicMode
- } MUSIC_MODE_SETTING;
- #ifdef AUTO_SLEEP
- typedef enum {
- STANDBY_OFF =0,
- STANDBY_15MINUTES,
- STANDBY_30MINUTES,
- STANDBY_45MINUTES,
- STANDBY_60MINUTES,
- STANDBY_90MINUTES,
- STANDBY_120MINUTES
- }AUTO_STANDBY;
- #endif
- //ZCH, Sean07102003
- #ifdef D_CONTROL_6_CHANNEL_VOLUME
- typedef enum {
- SEPARATE_ANALOG_AUDIO_CHANNEL_L_A1 = 0,
- SEPARATE_ANALOG_AUDIO_CHANNEL_C_A2,
- SEPARATE_ANALOG_AUDIO_CHANNEL_R_A3,
- SEPARATE_ANALOG_AUDIO_CHANNEL_LS_A4,
- SEPARATE_ANALOG_AUDIO_CHANNEL_RS_A5,
- SEPARATE_ANALOG_AUDIO_CHANNEL_SW_A6,
- };
- #endif //D_CONTROL_6_CHANNEL_VOLUME
- //SeanLiu_0902_2004
- typedef enum {
- PINK_NOISE_OFF = 0,
- PINK_NOISE_LEFT ,
- PINK_NOISE_CENTER ,
- PINK_NOISE_RIGHT ,
- PINK_NOISE_LEFT_SURROUND ,
- PINK_NOISE_RIGHT_SURROUND ,
- PINK_NOISE_SUBWOOFER ,
- #ifdef D_ENABLE_DOLBY_EX_SUPPORT
- PINK_NOISE_BACK_LEFT_SURROUND ,
- PINK_NOISE_BACK_RIGHT_SURROUND ,
- #endif
- PINK_NOISE_ALL ,
- } PINK_NOISE_SETTING;
- #ifdef AUDIO_IN_SUPPORT
- //digital in ICFG setting
- #define DIGITAL_IN_ICFG_NA 0
- #define DIGITAL_IN_ICFG_1_0 1
- #define DIGITAL_IN_ICFG_2_0 2
- #define DIGITAL_IN_ICFG_3_0 3
- #define DIGITAL_IN_ICFG_2_1 4
- #define DIGITAL_IN_ICFG_3_1 5
- #define DIGITAL_IN_ICFG_2_2 6
- #define DIGITAL_IN_ICFG_3_2 7
- typedef BYTE DIGITAL_IN_ICFG_SETTING;
- //digital in LFE setting
- #define DIGITAL_IN_LFE_NOT_PRESENT 0
- #define DIGITAL_IN_LFE_PRESENT 1
- typedef BYTE DIGITAL_IN_LFE_SETTING;
- //audio in mode setting
- #define AUDIO_IN_MODE_OFF 0
- #define AUDIO_IN_MODE_ANALOG 1
- #define AUDIO_IN_MODE_COAXIAL 2
- #define AUDIO_IN_MODE_OPTICAL 3
- typedef BYTE AUDIO_IN_MODE_SETTING;
- #endif //AUDIO_IN_SUPPORT
- //<<<SeanLiu_0902_2004
- typedef enum{
- VIEW_MODE_FILL = 0,
- VIEW_MODE_ORIGINAL,
- VIEW_MODE_HEIGHT_FIT,
- VIEW_MODE_WIDTH_FIT,
- VIEW_MODE_AUTO_FIT,
- VIEW_MODE_PAN_SCAN,
- VIEW_MODE_MAX = VIEW_MODE_PAN_SCAN
- } VIEW_MODE;
- typedef enum {
- DMM_SETTING_NORMAL = 0x00, //L channel to left output, R channel to right output
- DMM_SETTING_LEFT_ONLY = 0x01, // L channel to left and right output
- DMM_SETTING_RIGHT_ONLY = 0x02, //R channel to left and right output
- DMM_SETTING_MIX = 0x03 //(R+L)/2 to left and right output
- } DUAL_MONOREP_MODE_SETTING;
- typedef BYTE TV_SYS;
- /* Brightness Enhancement */
- typedef enum {
- BE_CTRL_DISABLED = 0,
- BE_CTRL_ENABLED = 1
- } BE_CTRL_SETTINGS;
- /* Edge Enhancement */
- typedef enum {
- EE_CTRL_DISABLED = 0,
- EE_CTRL_SHARPEN = 1,
- EE_CTRL_SOFTEN = 2
- } EE_CTRL_SETTINGS;
- typedef enum {
- JPG_SIZE_ORIGINAL = 0,
- JPG_SIZE_AUTOFIT = 1
- } JPG_SIZE_SETTINGS;
- typedef enum {
- #ifdef I77_COMPANION_CHIP
- JPG_INTERVAL_2_SEC = 2,
- #endif
- JPG_INTERVAL_5_SEC = 5,
- JPG_INTERVAL_10_SEC = 10,
- JPG_INTERVAL_15_SEC = 15,
- #ifdef S1_GUI // ZKR GLV778
- JPG_INTERVAL_FOREVER = 0xff
- #endif
- } JPG_INTERVAL_SETTINGS;
- // <<< ZRN SH0613:Added Video Ouput Interpolation during Still Mode
- typedef enum {
- INTERPOLATION_AUTO = 0,
- INTERPOLATION_PROGRESSIVE = 1,
- INTERPOLATION_INTERLACED = 2
- } STILL_MODE_INTERPOLATION;
- // >>>
- // <<< ZORAN CDE0613:Support Front Display setting
- typedef enum {
- FRONT_DISPLAY_DIM = 0,
- FRONT_DISPLAY_BRIGHT = 1,
- FRONT_DISPLAY_AUTO = 2
- } FRONT_DISPLAY_SETTING;
- // >>>
- // <<< ZRN SH0731:Added Black Level setting for Internal Video Encoder (CVE)
- typedef enum {
- BLACKLEVEL_NORMAL = 0,
- BLACKLEVEL_STRETCHED = 1
- } CVE_BLACKLEVEL_SETTING;
- typedef enum {
- DIGITAL_KEY = 0,
- FUNCTION_KEY = 1
- };
- /* Languages */
- typedef enum {
- LANGUAGE_ENGLISH = 0,
-
- #ifdef D_GERMAN
- LANGUAGE_GERMAN,
- #endif
- #ifdef D_FRENCH
- LANGUAGE_FRENCH,
- #endif
- #ifdef D_SPANISH
- LANGUAGE_SPANISH,
- #endif
- #ifdef D_ITALIAN
- LANGUAGE_ITALIAN,
- #endif
- #ifdef D_SWEDISH
- LANGUAGE_SWEDISH,
- #endif
- #ifdef D_PORTUGUESE
- LANGUAGE_PORTUGUESE,
- #endif
- #ifdef D_DUTCH
- LANGUAGE_DUTCH,
- #endif
- #ifdef D_RUSSIAN
- LANGUAGE_RUSSIAN,
- #endif
- #ifdef D_TURKISH
- LANGUAGE_TURKISH,
- #endif
- #ifdef D_POLISH
- LANGUAGE_POLISH,
- #endif
- #ifdef D_CZECH
- LANGUAGE_CZECH,
- #endif
- #ifdef D_FINNISH
- LANGUAGE_FINNISH,
- #endif
- #ifdef D_GREEK
- LANGUAGE_GREEK,
- #endif
- #ifdef D_CHINESE_TRD
- LANGUAGE_CHINESE_TRD,
- #endif
- #ifdef D_CHINESE_SMP
- LANGUAGE_CHINESE_SMP,
- #endif
- #ifdef D_JAPANESE
- LANGUAGE_JAPANESE,
- #endif
- #ifdef D_CROATIA
- LANGUAGE_CROATIA,
- #endif
- LANGUAGE_LAST
- } LANGUAGE_SETTINGS;
- /* Parental control levels */
- /* These will vary for different countries */
- typedef enum {
- PARENTAL_LEVEL_NONE = 0,
- PARENTAL_LEVEL_1 = 1,
- PARENTAL_LEVEL_2 = 2,
- PARENTAL_LEVEL_3 = 3,
- PARENTAL_LEVEL_4 = 4,
- PARENTAL_LEVEL_5 = 5,
- PARENTAL_LEVEL_6 = 6,
- PARENTAL_LEVEL_7 = 7,
- PARENTAL_LEVEL_8 = 8,
- } PARENTAL_LEVEL_SETTINGS;
- typedef enum {
- KARAOKE_OFF,
- KARAOKE_ON,
- KARAOKE_AUTO
- } KARAOKE_MODE_SETTING;
- #ifdef AUX_IN_ENABLE
- typedef enum
- {
- AUX_IN_4_CHANNEL = 0,
- AUX_IN_3_CHANNEL = 1,
- AUX_IN_2_CHANNEL = 2
- }AUX_IN_STREAM_TYPE;
- #endif //AUX_IN_ENABLE
- typedef enum{
- ANGLE_MARK_ON = 0,
- ANGLE_MARK_OFF = 1
- } ANGLE_MARK_SETTINGS;
- typedef enum
- {
- NO_AUTO_STANDBY = 0,
- AUTO_STANDBY_IN_5MINUTES = 1500, // 5*60*5
- AUTO_STANDBY_IN_15MINUTES = 4500, // 15*60*5,
- AUTO_STANDBY_IN_35MINUTES = 10500, // 35*60*5
- }AUTO_STANDBY_TIMER;
- typedef enum{
- SMART_NAVI_MENU_ON = 1,
- SMART_NAVI_MENU_OFF = 0
- } SMART_NAVI_MENU_SETTINGS;
- typedef enum {
- DVD_WORKMODE = 0,
- AV1_WORKMODE = 1,
- AV2_WORKMODE = 2,
- RADIO_WORKMODE = 3,
- SPDIF_IN_WORKMODE = 4,
- STANDBY_MODE =5
- } TUNER_WORK_MODE;
- typedef enum {
- ORIGN = 0,
- ROCK = 1,
- JAZZ = 2,
- ACOUSTIC = 3,
- CLASSIC = 4,
- DANCE = 5,//Wesley 030529 add two effect mode
- MOVIE = 6
- } SOUND_EFFECT;
- #define MAX_CHANNEL 7
- typedef enum {
- ALL_CHANNEL = 0,
- LEFT_CHANNEL = 1,
- RIGHT_CHANNEL = 2,
- LEFT_SURR_CHANNEL = 3,
- RIGHT_SURR_CHANNEL = 4,
- CENTER_CHANNEL = 5,
- SW_CHANNEL = 6
- } VOLUME_CONTROL_MODE;
- typedef enum {
- BASE_SET =0,
- BASE_TONE_SET =1,
- TREMBLE_SET =2
- }BASE_PARAM;
- typedef enum {
- ANTI_CLIPPING = 0,
- DYNAMIC_RANGE_COMPRESSION = 1,
- } DYNAMIC_MODE;
- typedef enum {
- LIMITER1 = 0,
- LIMITER2 = 1,
- } LIMITER_NUMBER;
- typedef enum {
- COMPRESSION_RATE = 0,
- RELEASE_RATE = 1,
- } DYNAMIC_RATE;
- typedef enum {
- COMPRESSION_THRESHOLD = 0,
- RELEASE_THRESHOLD = 1,
- } DYNAMIC_THRESHOLD;
- #ifdef SPECTRUM_EQUALIZER
- typedef enum {
- GRAPHIC_EQUALIZER_OFF,
- GRAPHIC_EQUALIZER_STD,
- GRAPHIC_EQUALIZER_CLASS,
- GRAPHIC_EQUALIZER_ROCK,
- GRAPHIC_EQUALIZER_JAZZ,
- GRAPHIC_EQUALIZER_POP,
- GRAPHIC_EQUALIZER_USER
- } GRAPHIC_EQUALIZER_MODE;
- #define EQUALIZER_BANDGAIN_SZ 6
- extern BYTE sa_value[EQUALIZER_BANDGAIN_SZ];
- #endif
- //SeanLiu_0902_2004
- #ifdef D_ENABLE_DOLBY_EX_SUPPORT
- #define DOLBY_EX_BS_SPEAKERS_NONE 0
- #define DOLBY_EX_BS_SPEAKERS_1 1
- #define DOLBY_EX_BS_SPEAKERS_2 2
- #endif
- //<<<SeanLiu_0902_2004
- #define DEC_STATUS_IDLE 0x30
- #define DEC_STATUS_SLOW_WO_ACTIVEVIDEO 0x2d
- #define DEC_STATUS_SLOW_W_ACTIVEVIDEO 0x25
- #define DEC_STATUS_STEP_WO_ACTIVEVIDEO 0x2b
- #define DEC_STATUS_STEP_W_ACTIVEVIDEO 0x23
- #define DEC_STATUS_NSPB_WO_ACTIVEVIDEO 0x28
- #define DEC_STATUS_NSPB_W_ACTIVEVIDEO 0x20
- #define DEC_STATUS_PAUSE_WO_ACTIVEVIDEO 0x18
- #define DEC_STATUS_PAUSE_W_ACTIVEVIDEO 0x10
- #ifdef S1_GUI // ZKR GLV778
- #define B_DYNAMIC_COMPRESSION_ON TRUE // ZRN SH0705:Added define for Dyn Compression
- #define B_DOWNSAMPLING_ON TRUE // ZKR GL010303 : Added define for LCPM Downsampling
- #endif
- //////////////////////////////////////////////////////////////
- //SeanL:Auddio setting, it MUST be betwen 0x0000 ---> 0x00FF
- //
- //
- //////////////////////////////////////////////////////////////
- #define PS_UPDATE_DIGITAL_SETTINGS 0x0000
- #define PS_UPDATE_PROLOGIC_SETTING 0x0001
- #define PS_UPDATE_KARAOKE_SETTING 0x0002
- #define PS_UPDATE_3DEFFECT_SETTING 0x0003
- #define PS_UPDATE_KARKEYSHIFT_SETTING 0x0004
- #define PS_UPDATE_KARECHODELAY_SETTING 0x0005
- #define PS_UPDATE_DMM_SETTING 0x0006
- #define PS_UPDATE_PARTNER_SETTING 0x0007
- #define PS_UPDATE_PARTNER_STATE 0x0008
- #define PS_UPDATE_KAR_AC3_MEL_SETTING 0x0009
- #define PS_UPDATE_KAR_AC3_VOCAL_SETTING 0x000A
- #define PS_UPDATE_MUTE_SETTING 0x000B
- #define PS_UPDATE_VOLUME_SETTING 0x000C
- #define PS_UPDATE_KARAOKE_RECORDING_QUALITY 0x000D
- #define PS_UPDATE_DYNAMIC_COMPRESSION_SETTING 0x000E
- #define PS_UPDATE_GRAPHIC_EQUALIZER_MODE 0x000F
- #define PS_UPDATE_DRC_CONTROL 0x0010
- #define PS_UPDATE_CNTR_CTRL 0x0011
- #define PS_UPDATE_REAR_CTRL 0x0012
- #define PS_UPDATE_PANORAMA 0x0013
- #define PS_UPDATE_DEC_MODE 0x0014
- #define PS_UPDATE_MUSIC_MODE 0x0015
- #define PS_UPDATE_DIMENSION_CTRL 0x0016
- #define PS_UPDATE_CENTER_WIDTH_CTRL 0x0017
- #define PS_UPDATE_DOWN_SAMPLING_SETTING 0x0018
- #define PS_UPDATE_AIN_PRLGII_MODE 0x0019
- #define PS_UPDATE_BASS_MANAGEMENT 0x001A
- #ifdef MULTIPLE_3D_EFFECT_CHOICE
- #define PS_UPDATE_3D_EFFECT 0x001B
- #endif
- #ifdef D_CONTROL_6_CHANNEL_VOLUME
- #define PS_UPDATE_SEPARATE_VOLUME 0x001C
- #endif //D_CONTROL_6_CHANNEL_VOLUME
- #define PS_UPDATE_DOWNMIX_VOLUME_SETTING 0x001D
- #if D_SUPPORT_SACD
- #define PS_UPDATE_SACDLAYER_SETTING 0x001E
- #endif
- #define PS_UPDATE_VOICE_CANCEL_SETTING 0x001F
- #ifdef D_ENABLE_HEADPHONE_DETECT
- #define PS_UPDATE_HEADPHONE_SETTING 0x0020
- #endif
- // <<< ZKR ML : 042004 change position
- #ifdef D_ENABLE_SPEAKER_SETUP
- #define PS_UPDATE_BASS_RECFG_SETTING 0x0021
- #define PS_UPDATE_CENTERSPK_SETTING 0x0022 // SEC CH.KO012203: Center speaker setting
- #define PS_UPDATE_REARSPK_SETTING 0x0023 // SEC CH.KO012203 : Rear speaker setting
- #define PS_UPDATE_SW_SETTING 0x0024
- #endif
- #ifdef EXINO2 //<<ZKR ML: Dts digital out option.
- #ifdef D_DIGITAL_DTS_OUT_OPTION
- #define PS_UPDATE_DIGITAL_OUT 0x0025
- #endif
- #endif
- #ifdef D_ENABLE_DOLBY_EX_SUPPORT
- #define PS_UPDATE_DOLBY_EX_SETTING 0x0025 //SeanLiu_0902_2004
- #endif
- #ifdef D_AUDIO_DOWNMIX_MODE_SETTING
- #define PS_UPDATE_DOWNMIX_MODE_SETTING 0x0026
- #endif
- //////////////////////////////////////////////////////////////
- //Auddio setting END
- //
- //////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////
- //SeanL:Video setting, it MUST be betwen 0x0100 ---> 0x01FF
- //
- //////////////////////////////////////////////////////////////
- #define PS_UPDATE_TV_STANDARD 0x0100
- #define PS_UPDATE_VIEW_MODE 0x0101
- #define PS_UPDATE_BE_CTRL_SETTING 0x0102 /* Brightness Enhancement */
- #define PS_UPDATE_EE_CTRL_SETTING 0x0103 /* Edge Enhancement */
- #define PS_UPDATE_VID_OUT 0x0104 /* Video output mode: CVBS/YUV */
- #define PS_UPDATE_STILL_MODE_INTERPOLATION 0x0105 /* Still Mode Interpolation */
- #define PS_UPDATE_BG_SELECT 0x0106
- #define PS_UPDATE_JPG_VIEW_SETTING 0x0107
- #define PS_UPDATE_JPG_INTERVAL_SETTING 0x0108
- //#define PS_UPDATE_JPG_VIDBUF_SETTING 0x0109
- #define PS_UPDATE_PROG_INTER_SETTING 0x010A
- #define PS_UPDATE_TV_SHAPE 0x010B
- #ifdef SUPPORT_CAPTURE_LOGO
- #define PS_UPDATE_DISP_LOGO_SETTING 0x010C
- #define PS_UPDATE_CAPTURE_LOGO_SIZE 0x010D
- #define PS_UPDATE_WAIT_FOR_CAPTURE_LOGO_READY 0x010E
- #define PS_UPDATE_CL_AR_SETTING 0x010F
- #define PS_UPDATE_CL_OUTSCALLING_SETTING 0x0110
- #endif
- #ifdef D_CVE_BLACKLEVEL_SETTING
- #define PS_UPDATE_CVE_BLACKLEVEL_SETTING 0x0111 /* Black Level setting for Internal Video Encoder */
- #endif
- #ifdef I77_COMPANION_CHIP
- #define PS_UPDATE_HD_VID_OUT 0x0112
- #define PS_UPDATE_HD_JPEG_MODE_PRIORITY 0x0113
- #ifdef I77_BRAIN_STORM
- #define PS_UPDATE_HD_LOCK_MODE 0x0117
- #define PS_UPDATE_HD_COLOR_SPACE 0x0118
- #endif//I77_BRAIN_STORM
- #endif
- // <<< SEC CH.KO050204 : DVI mode selection between SMPTE and CEA-861
- #if defined(EXINO2) && defined(D_ENABLE_DVI_OUTPUT)
- #define PS_UPDATE_DVI_OUT_MODE 0x0222
- #endif
- // SEC CH.KO050204 >>>
- #ifdef EZVIEW_ENABLED // ZKR GL031204 : Changed the macro name.
- #define PS_UPDATE_EZVIEW_MODE 0x0114
- #endif
- #ifdef SWITCH_BETWEEN_PSO_AND_NON_PSO
- #define PS_UPDATE_PREV_VID 0x0115 /*previous video output mode*/
- #endif
- #ifdef A_SD340E
- #ifdef USE_I64_TV_SHAPE_SETTING
- #define PS_UPDATE_USER_TV_SHAPE 0x0116
- #endif
- #endif
- #ifdef MPP_SUPPORT
- #define PS_UPDATE_MPP_ENABLE 0x0119
- #endif
- #define PS_UPDATE_HD_COMPONENT_OUT 0x011A
- //////////////////////////////////////////////////////////////
- //Video setting END
- //
- //////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////
- //SeanL:General Settings, it MUST be betwen 0x0200 ---> 0x02FF
- //
- //////////////////////////////////////////////////////////////
- #define PS_UPDATE_GENERAL_SETTINGS 0x0200 /* Gen Settings = parental ... */
- #define PS_UPDATE_PARENTAL_LEVEL 0x0200 /* Parental level */
- #define PS_UPDATE_DVD_MENU_LANGUAGE 0x0201 /* OSD menu language */
- #define PS_UPDATE_AUDIO_LANGUAGE 0x0202 /* Audio language */
- #define PS_UPDATE_SUBTITLE_LANGUAGE 0x0203 /* Subtitle language */
- #define PS_UPDATE_OSD_MENU_LANGUAGE 0x0204 /* OSD menu language */
- #define PS_UPDATE_PARENTAL_PASSWORD 0x0205 /* Parental password */
- #define PS_UPDATE_KARAOKE_RECORDING_PLAYMODE 0x0206
- #define PS_UPDATE_SPECTRUM_ANALYZER 0x0207
- #define PS_UPDATE_MACROVISION_MODE 0x0208
- #define PS_UPDATE_OSD_SWITCHER 0x0209
- #define PS_UPDATE_VCD_PLAYABLE_MODE 0x020A
- #define PS_UPDATE_DVD_AUDIO_VIDEO_PREFERENCE 0x020B
- #define PS_UPDATE_SCREEN_SAVER_ENABLE 0x020C
- #define PS_UPDATE_TO_FACTORY_SETTING 0x020D
- #define PS_UPDATE_REGION_CODE 0x020F
- #ifdef D_FRONT_DISPLAY_SETTING
- #define PS_UPDATE_FRONT_DISPLAY_SETTING 0x0210 /* Front Display Setting */
- #endif // D_FRONT_DISPLAY_SETTING
- #ifdef TV_GUARDIAN_ENABLE
- #define PS_UPDATE_TVG_MODE 0x0211
- #define PS_UPDATE_TVG_CC 0x0212
- #define PS_UPDATE_TVG_CC_CHANNEL 0x0213
- #endif
- #ifdef ANGLE_MARK_SETTING
- #define PS_UPDATE_ANGLE_MARK_SETTING 0x0214
- #endif
- #ifdef SMART_NAVI_MENU_SETTING
- #define PS_UPDATE_SMART_NAVI_SETTING 0x0215
- #endif
- #ifdef FOUR_LEVEL_TRANSPARENCY
- #define PS_UPDATE_TRANSPARENCY_LEVEL 0x0216
- #endif
- #ifdef SPDIF_IN_CH_SELECT
- #define PS_UPDATE_DIGITAL_AUDIO_IN_CH 0x0218
- #endif
- #ifdef DVD_AUDIO_SUPPORT
- #define PS_UPDATE_A_V_PRIORITY 0x021A
- #endif
- #define PS_UPDATE_CUSTOMER_RESERVED 0x021B // ZKR GLV778
- // Robin_1003_2004_G
- #ifdef USE_AUX_SUBTITLES
- //define PS_UPDATE_DIVX_SUBTITLE_LANGUAGE 0x021C /* DivX Subtitle language */
- #endif
- #ifdef D_AUTO_PLAY_MODE_SUPPORT
- #define PS_UPDATE_AUTO_PLAY_MODE 0x0232
- #endif
- #ifdef D_SURROUND_PERFERENCE_SUPPORT
- #define PS_UPDATE_SURROUND_PERFERENCE 0x0234
- #endif
- #ifdef D_YOUR_DVD_SUPPORT
- #define PS_UPDATE_YOURDVD_SETTING 0x021E
- #endif
- #define PS_UPDATE_TFT_SETTING 0x021C
- #ifdef USE_JOG
- typedef enum {
- ALL_VOLUME,
- LEFT_VOLUME,
- RIGHT_VOLUME,
- LEFT_SUR_VOLUME,
- RIGHT_SUR_VOLUME,
- CENTER_VOLUME,
- SUB_VOLUME,
- LAST_VOLUME
- } VOLUME_CHANNEL;
- //this order must be same as above!!
- #define PS_UPDATE_MAIN_VOLUME 0x0222
- #define PS_UPDATE_MAIN_VOL_LEFT 0x0223
- #define PS_UPDATE_MAIN_VOL_RIGHT 0x0224
- #define PS_UPDATE_SUR_VOL_LEFT 0x0225
- #define PS_UPDATE_SUR_VOL_RIGHT 0x0226
- #define PS_UPDATE_CENTER_VOL 0x0227
- #define PS_UPDATE_SUB_VOL 0x0228
- #define PS_UPDATE_ALL_VOLUME 0x0229
- #endif
- #ifdef D_AUX_SUBTITLE_SELECT
- #define PS_UPDATE_AUX_SUBTITLE 0x022A
- #endif
- //////////////////////////////////////////////////////////////
- //General Settings END
- //
- //////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////
- //SeanL:Tuner Settings, it MUST be betwen 0x0300 ---> 0x03FF
- //
- //////////////////////////////////////////////////////////////
- #define PS_UPDATE_TUNER_WORKMODE 0x0300
- #define PS_UPDATE_AMFM_FLAG 0x0301 /* Indicate active radio band */
- #define PS_UPDATE_FMSTATION_TOTALNUM 0x0302 /* Real amount of Radio FM stations */
- #define PS_UPDATE_AMSTATION_TOTALNUM 0x0303 /* Real amount of Radio AM stations */
- #define PS_UPDATE_FMSTATION_CURNUM 0x0304 /* Real amount of Radio FM stations */
- #define PS_UPDATE_AMSTATION_CURNUM 0x0305 /* Real amount of Radio AM stations */
- #define PS_UPDATE_FMSTATION_FREQUENCY 0x0306 /* Recode FM station */
- #define PS_UPDATE_AMSTATION_FREQUENCY 0x0307 /* Recode AM station */
- #define PS_CLEAR_ALL_AM_STATION_PARAM 0x0308 /* Initial all radio station param */
- #define PS_CLEAR_ALL_FM_STATION_PARAM 0x0309 /* Initial all radio station param */
- #define PS_UPDATE_AMPLIFIER_VOLUME 0x030A
- #define PS_UPDATE_STEREO_MONO 0x030B
- #define PS_UPDATE_ONE_FMSTATION_FREQUENCY 0x030C /* Recode one FM station */
- #define PS_UPDATE_ONE_AMSTATION_FREQUENCY 0x030D /* Recode one AM station */
- #define PS_UPDATE_PRETUN_FLAG 0x030E /* Indicate active radio band */
- #define PS_UPDATE_FREQUENCY 0x030F /* Indicate active radio band */
- //#ifdef SAVE_STEREO_MONO_MODE
- #define PS_STEREO_MONO 0x0311
- //#endif
- //////////////////////////////////////////////////////////////
- //Tuner Settings END
- //
- //////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////
- //SeanL:Amplifier Settings, it MUST be betwen 0x0400 ---> 0x04FF
- //
- //////////////////////////////////////////////////////////////
- #define PS_UPDATE_BASE_TONE 0x0400
- #define PS_UPDATE_TREMBLE_TONE 0x0401
- #define PS_UPDATE_DRC_MODE 0x0402
- #define PS_UPDATE_DRC_ATTACK_SPEED 0x0403
- #define PS_UPDATE_DRC_RELEASE_SPEED 0x0404
- #define PS_UPDATE_DRC_ATTACK_RANGE 0x0405
- #define PS_UPDATE_DRC_RELEASE_RANGE 0x0406
- #define PS_UPDATE_SOUND_EFFECT 0x0407
- #define PS_UPDATE_BASE_SET 0x0409
- //////////////////////////////////////////////////////////////
- //Amplifier Settings END
- //
- //////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////
- #ifdef AVI_DRM_SUPPORT
- #define PS_UPDATE_DRM_MEMORY 0x0500
- #endif
- //////////////////////////////////////////////////////////////
- #ifdef D_MEMORY_SETTING
- #define PS_UPDATE_MEMORY_SETTING 0x0501
- #endif
- #ifdef D_CLOSE_CAPTION_SETTING
- #define PS_UPDATE_CLOSE_CAPTION_SETTING 0x0502
- #endif
- #ifdef D_LANGUAGE_OTHERS
- #define PS_UPDATE_SUBTITLE_OTHERS_LANGUAGE 0x0503
- #define PS_UPDATE_AUDIO_OTHERS_LANGUAGE 0x0504
- #define PS_UPDATE_DVD_MENU_OTHERS_LANGUAGE 0x0505
- #endif
- #ifdef VIRTUAL_SURROUND_ENABLE
- #define PS_UPDATE_VITUAL_SURROUND_EFFECT 0x0506
- #endif
- #ifdef D_VIDEO_HD_COM_SETTING
- #define PS_UPDATE_VIDEO_HD_COM 0x0507
- #endif
- #ifdef D_AUTO_STANDBY_SETTING
- #define PS_UPDATE_AUTO_STANDBY_SETTING 0x0508
- #endif
- // below define the HardWare Limitation due to the decoder capabilities
- #define HW_MAX_VOLUME 0x7fffUL //Max gain for ADP Volume
- #define HW_MAX_ECHO_DELAY 256 // Max Echo Delay = 240ms
- #define HW_MAX_KEY_SHIFT 7 // Max Key Shift Value : -7 to +7
- // Special values for subtitle_language
- #define SUBTITLE_AUTO 0xffff
- #define SUBTITLE_OFF 0
- // <<< ZORAN CDE0619 : Support original audio language
- // Special values for audio language
- #define AUDIO_ORIGINAL 0xfffe
- // ZORAN CDE0619 >>>
- //<<< FW0917 Move from ms_lib.h
- #define INITIAL_PASSWORD 0xffff
- #ifdef NEW_MASTER_PASSWORD
- #ifdef MASTER_PASSWORD
- #undef MASTER_PASSWORD
- #endif
- #define MASTER_PASSWORD NEW_MASTER_PASSWORD
- #endif
- #define IS_UNLOCKED (gps->parental_password == INITIAL_PASSWORD)
- #define PASSWORD_MATCHES(_password_) ( ((_password_) == gps->parental_password) || ((_password_) == MASTER_PASSWORD) )
- // FW0917 >>>
- #define MAX_FM_STATION 50
- #define MAX_AM_STATION 5
- #define MAX_TUNER_WORK_MODE 4
- #define MAX_CHANNEL 7
- #ifdef PS_9702B
- #define DEFAULT_SATELLITE_VOLUME 0x06
- #define DEFAULT_LFE_VOLUME 0x10
- #define DEFAULT_MASTER_VOLUME 0x28
- #elif TAS5026_VOL_MAP
- #define DEFAULT_SATELLITE_VOLUME 12
- #define DEFAULT_LFE_VOLUME 12
- #define DEFAULT_MASTER_VOLUME 0x9d
- #elif TAS3103_VOL_MAP
- #define DEFAULT_SATELLITE_VOLUME 12
- #define DEFAULT_LFE_VOLUME 12
- #define DEFAULT_MASTER_VOLUME 20
- #else
- #define DEFAULT_SATELLITE_VOLUME 0x20
- #define DEFAULT_LFE_VOLUME 0x0c
- #define DEFAULT_MASTER_VOLUME 0x28
- #endif
- #ifdef AVI_DRM_SUPPORT
- #define PACKED_ALLOCATION_BYTES 48
- #endif
- #ifdef I77_BRAIN_STORM
- typedef struct {
- BYTE hdmi_model_ID[8];
- BYTE output_resolution:5;
- BYTE color_space:2;
- BYTE hdmi_mode:1;
- }HDMI_MODE_STRUCT;
- #endif//I77_BRAIN_STORM
- typedef struct {
- WORD digital_setting; /* Digital Audio Settings for every audio stream ->PCM or Bitstream */
- WORD volume;
- WORD dvd_menu_language;
- WORD audio_language;
- WORD subtitle_language;
- WORD osd_menu_language;
- WORD parental_password; /* 0xFFFF means not defined, unlocked */
- WORD parental_country;
- BYTE region_code;
- #if defined(EXINO2) && defined(D_ENABLE_HDCP_FREE) //ZKR JK0428 : for hdcp free
- BYTE hdcp_free;
- #endif
- BYTE parental_level;
- BYTE tv_standard;
- BYTE view_mode;
- BYTE tv_shape;
- #ifdef A_SD340E
- #ifdef USE_I64_TV_SHAPE_SETTING
- BYTE user_tv_shape; //use i64 tv shape setting, {4:3PS, 4:3LB, 16:9}
- #endif
- #endif
- BYTE BassManagement;
- BYTE SpeakersConfigIndex;
- #ifdef D_ENABLE_DOLBY_EX_SUPPORT
- BYTE Dolby_EX_BS_Speakers;
- #endif
- #if defined(D_SIMPLIFIED_AUDIO_SETUP)&&defined(D_ENABLE_SUBWOOFER_OPTION)
- BYTE SpeakersConfigIndexBak;
- #endif
- BYTE prologic;
- BYTE be_ctrl; /* Brightness Enhancement control */
- BYTE ee_ctrl; /* Edge Enhancement Control and Mode */
- BYTE osd_onoff; /* Osd On/Off mode */
- BYTE jpg_size; /* option for orginal/full screen size*/
- BYTE jpg_interval;
- #ifdef D_STILL_MODE_INTERPOLATION_ENABLED //ZKR JK0325 : add
- BYTE still_mode_interpol;
- #endif
- BYTE frontDisplay;
- #ifdef I77_COMPANION_CHIP
- BYTE hd_vid_out_mode;
- BYTE hd_component_out; //add by wl070505
- BYTE hd_jpeg_mode_preference;
- #ifdef I77_BRAIN_STORM
- BYTE hd_lock_mode;
- HDMI_MODE_STRUCT lastest_hdmi_mode;
- #endif//I77_BRAIN_STORM
- #endif//I77_COMPANION_CHIP
- BYTE vid_out;
- #ifdef SWITCH_BETWEEN_PSO_AND_NON_PSO
- BYTE prev_vid_out; /*previous video output mode*/
- #endif
- BYTE macrovision_mode;
- BYTE vcd_playable_mode;
- #ifdef D_USE_CUSTOMER_RESERVED_SETTING
- BYTE customer_reserved; /* Customer-specific setting information */
- #endif
- #ifdef D_CVE_BLACKLEVEL_SETTING
- BOOL cve_blacklevel; // Black level set or not (if SET, strech level to 7.5 IRE)
- #endif
- #ifdef TV_GUARDIAN_ENABLE
- BYTE tvg_mode;
- #endif
- BYTE prog_inter_select; /* ON for progressive output, else OFF */
- BYTE pso_mode;
- BYTE screen_saver_enable;
- #ifdef SUPPORT_CAPTURE_LOGO
- BYTE disp_logo;
- int captureLogoKWords;
- BYTE cl_AR;
- BYTE cl_OutScalling;
- #endif
- BYTE ucBackGroundSelect; // Blue, Gray, Picture(LOGO), Jacket?
- WORD ucDRCCtrl; //0x0000 - OFF, 0xFFFF - ON
- #ifdef MULTIPLE_3D_EFFECT_CHOICE
- BYTE uc3DEffect; // 0 - QSurround, 1 - Aureal, 2 - VBX, 3 - Spatializer
- #endif
- #ifdef D_ENABLE_SETUP_CNTRCTRL
- BYTE cntr_speaker_ctrl;
- #endif
- #ifdef D_ENABLE_SETUP_REARCTRL
- BYTE rear_speaker_ctrl;
- #endif
- BYTE downsampling_setting;
- #ifdef ANGLE_MARK_SETTING
- BYTE angle_mark;
- #endif
- BYTE smart_navi;
- #if defined(AUX_IN_ENABLE) || defined(TUNER_ENABLE)
- BYTE ain_mode;
- #endif
- #ifdef SPDIF_IN_CH_SELECT
- BYTE dig_aud_in_chan; // defined for SPDIF_IN channel select.
- #endif
- #ifdef FOUR_LEVEL_TRANSPARENCY
- BYTE menuTrans;
- #endif
- #ifdef D_CONTROL_6_CHANNEL_VOLUME
- BYTE separate_volume[6];
- #endif //D_CONTROL_6_CHANNEL_VOLUME
- #ifdef TUNER_ENABLE
- BYTE TunerWorkmode;
- BYTE bAmFm;
- WORD FMRadioStations[MAX_FM_STATION];
- WORD AMRadioStations[MAX_AM_STATION];
- BYTE TotalFMStationNum;
- BYTE TotalAMStationNum;
- BYTE CurrentFMStationIndex;
- BYTE CurrentAMStationIndex;
- BYTE CurrentPretunStation;
- WORD CurrentFrequency;
- //#ifdef SAVE_STEREO_MONO_MODE
- BYTE CurrentStereoMono;
- //#endif
- #endif
- #ifdef USE_JOG
- BYTE left_volume;
- BYTE right_volume;
- BYTE sur_left_volume;
- BYTE sur_right_volume;
- BYTE center_volume;
- BYTE sub_volume;
- BYTE main_volume;
- #endif
- #ifdef DIGITAL_AMPLIFIER_ENABLE
- BYTE ChannelVolume[MAX_CHANNEL];
- BYTE BaseSet;
- BYTE BaseTone;
- BYTE TrembleTone;
- BYTE DRCMode;
- BYTE DRCAttackSpeed;
- BYTE DRCReleaseSpeed;
- BYTE DRCAttackThreshold;
- BYTE DRCReleaseThreshold;
- BYTE SoundEffect;
- #endif
- #if defined(EXINO2) && defined(D_USE_CUSTOMER_RESERVED_SETTING) // SEC CH.KO041604
- WORD parental_password_saved;
- #endif
- #ifdef DVD_AUDIO_SUPPORT
- BYTE dvd_a_v_preference;
- #endif
- #if D_SUPPORT_SACD
- BYTE playCDLayerOfSACD;
- #endif
- BYTE enhancement_mode;
- BYTE restricted_enhancement_mode;
- BYTE Dimension_ctrl;
- BYTE Center_width_ctrl;
- BYTE Panorama;
- BYTE Hall_effect;
- WORD downmix_volume;
- #ifdef EZVIEW_ENABLED // ZKR GL031204 : Changed the macro name.
- BYTE ezview_mode;
- #endif
- // <<< SEC CH.KO012203
- #ifdef D_ENABLE_SPEAKER_SETUP
- BYTE bass_configration;
- BYTE centerspk;
- BYTE rearspk ;
- BYTE subwoofer;
- #endif
- #ifdef EXINO2 //<<ZKR ML:040704 Dts digital out option.
- #ifdef D_DIGITAL_DTS_OUT_OPTION
- BYTE dts_digital_out;
- #endif
- #endif
- // <<< SEC CH.KO050204 : add dvi mode
- #if defined ( D_ENABLE_DVI_OUTPUT) && defined (EXINO2)
- BYTE dvi_out_mode;
- #endif // D_ENABLE_DVI_OUTPUT
- #ifdef D_MEMORY_SETTING
- unsigned int memory_mode:1;
- #endif
- #ifdef D_CLOSE_CAPTION_SETTING
- unsigned int close_caption_mode:1;
- #endif
- #ifdef D_LANGUAGE_OTHERS
- WORD subtitle_others_language;
- WORD audio_others_language;
- WORD menu_others_language;
- #endif
- #ifdef VIRTUAL_SURROUND_ENABLE
- BYTE threeD_effect;
- #endif
- #ifdef D_VIDEO_HD_COM_SETTING
- unsigned int video_hd_com:1;
- #endif
- #ifdef D_AUDIO_DOWNMIX_MODE_SETTING
- unsigned int downmix_mode:2;
- #endif
- #ifdef D_AUTO_STANDBY_SETTING
- unsigned int auto_standy_enable:1;
- #endif
- #ifdef AVI_DRM_SUPPORT
- BYTE drmmemoryPacked[PACKED_ALLOCATION_BYTES];
- #endif
- #ifdef D_AUX_SUBTITLE_SELECT
- BYTE aux_subtitle;
- #endif
- #ifdef D_AUTO_PLAY_MODE_SUPPORT
- BYTE bAutoPlayMode;
- #endif
- #ifdef D_SURROUND_PERFERENCE_SUPPORT
- BYTE surround_perference;
- #endif
- #ifdef D_YOUR_DVD_SUPPORT
- unsigned int your_dvd_enable:1;
- #endif
- //Warnning: startting from address 0x30: the area will be reserved for DVD/SVCD/VCD/CDDA HW_Power_ON_RESUME if enabled
- //make sure there is no conflict with it
- }NV_SETTINGS;
- typedef union{
- NV_SETTINGS settings;
- BYTE data[sizeof(NV_SETTINGS)+1]; /* add 1 for check sum */
- }NV_STORAGE;
- #ifdef TV_GUARDIAN_ENABLE
- #define TVG_MODE_M 0x03
- #define TVG_CC_M 0x0C
- #define TVG_CC_CHANNEL_M 0x30
- BYTE PS_Get_TVG_Mode_Value(void);
- BYTE PS_Get_TVG_CC_Value(void);
- BYTE PS_Get_TVG_CC_Channel_Value(void);
- void PS_Set_TVG_Mode_Value(BYTE value);
- void PS_Set_TVG_CC_Value(BYTE value);
- void PS_Set_TVG_CC_Channel_Value(BYTE value);
- #endif
- #ifdef AVI_DRM_SUPPORT
- BOOL PS_LoadDrmMemory(unsigned char *data, unsigned int count);
- BOOL PS_SaveDrmMemory(unsigned char *data, unsigned int count);
- #endif
- typedef struct {
- //Leon.He_1008_05: Clean up the code for DVD Audio HGR.
- #ifdef DVD_AUDIO_SUPPORT
- DWORD dwDvdaHgrUserPwd;
- #endif
- WORD mKarEchoDelay; /* Echo Delay in ms */
- BYTE mKarKeyShift; /* Capabilites -127 to 128 depending on HW */
- unsigned int m3dEffect:1;
- unsigned int mKaraoke:1;
- unsigned int mPartner:1;
- unsigned int mDMM:2; /* Dual Mono Reproduction Mode */
- unsigned int mAC3KarVocal:2; /* Type of vocal mode for AC3 Karaoke */
- unsigned int mAC3KarMel:1; /* Melody On or Off for AC3 Karaoke */
- unsigned int mVoiceCanel:1; /* voice cancel setting */
- unsigned int mMute:1;
- #ifdef SPECTRUM_EQUALIZER
- unsigned int mGeMode:3; //graphic equalizer mode
- #endif
-
- #ifdef AUTO_SLEEP
- unsigned int mAutoStandby:3; /*standby time set in minutes*/
- #endif
- #ifdef D_ENABLE_HEADPHONE_DETECT
- unsigned int mHeadPhone:1;
- #endif
- #ifdef AUDIO_IN_SUPPORT
- unsigned int mAudioInMode:2;
- #endif
- } TEMP_SETTINGS;
- typedef struct {
- WORD mVolume;
-
- //ZCH, Sean07102003
- #ifdef D_CONTROL_6_CHANNEL_VOLUME
- BYTE mSeparateVolumeFlag;
- #endif //D_CONTROL_6_CHANNEL_VOLUME
-
- WORD mKarEchoDelay; /* Current Echo Delay in ms */
- char mKarKeyShift; /* Current Karaoke Key Shift value */
- BYTE mStreamID; /* Current Stream ID (may be != for the same AudioStream) */
- BYTE mDecStatus;
- BYTE mAudioChannels;
- BYTE actual_tv_std;
- unsigned int m3dEffect:1; /* 3D Effect currently activated */
- unsigned int mKaraoke:1; /* Karaoke activated */
- unsigned int mPartner:1; /* Partner currently activated */
- unsigned int mDMM:2; /* Current Dual Mono Rep mode */
- unsigned int mAC3KarVocal:2; /* Current AC3 Vocal Mode */
- unsigned int mAC3KarMel:1; /* Current state of Melody setting */
- unsigned int mAudioStream:4; /* Current Audio Stream */
- unsigned int mHDCDDetected:1; /* HDCD has been detected */
- unsigned int mCDDTSDetected:2; /* CD-DTS has been detected */
- unsigned int mCDGDetected:1; /* CDG Notification flag */
- unsigned int mAnalogOut:2; /* Current Analog output mode */
- unsigned int mDigitalOut:2; /* Current Digital Output mode */
- unsigned int mMute:1; /* Audio currently Mute */
- unsigned int mProLogicDetected:1; /* Current audio is prologic */
- unsigned int mNeedScaling:1; // Flag indicating if sequence infomation changed
- unsigned int mUseManualScaling:1;
- #ifdef S1_GUI // ZKR GLV778
- UINT mLogoDisplayed:1; /* Logo display request fulfilled */
- #endif
- #ifdef MPP_SUPPORT
- unsigned int mMPP_Enable:1; /* MPP activated */
- #endif
- //SeanLiu_0902_2004
- #ifdef AUDIO_IN_SUPPORT
- unsigned int mDinDetectedBitStream:6;
- unsigned int mDinSampleRate:4;
- unsigned int mAudioInMode:2;
- unsigned int mAudioInICFG:3;
- unsigned int mAudioInLFE:1;
- #endif
- //<<<SeanLiu_0902_2004
- #ifdef I77_COMPANION_CHIP
- #ifdef I77_BRAIN_STORM
- unsigned char hd_jpeg_mode_preference;
- #endif//I77_BRAIN_STORM
- #endif //I77_COMPANION_CHIP
- } CURRENT_STATES;
- void PS_RestoreFactoryDefault( void );
- void PS_Save( void );
- void PS_NVM_Save(BOOL bUpdateFlash);
- void PS_Restore( void ); // Restores form EEPROM and restores gPlayerSettings according to spec.
- void PS_Update(DWORD);
- //Change the gps->** to function.
- WORD PS_GetDVDMenuLanguage(void);
- WORD PS_GetAudioLanguage(void);
- WORD PS_GetSubtitleLanguage(void);
- WORD PS_GetParentalCountry(void);
- BYTE PS_GetRegionCode(void);
- BYTE PS_GetParentalLevel(void);
- BYTE PS_GetTVStandard(void);
- BYTE PS_GetViewMode(void);
- BYTE PS_GetTVShape(void);
- #ifdef EZVIEW_ENABLED
- BYTE PS_GetEzviewMode();
- #endif
- BYTE PS_GetVideoMode();
- #ifdef D_AUTO_PLAY_MODE_SUPPORT
- BYTE PS_GetAutoPlayMode(void);
- #endif
- #ifdef D_SURROUND_PERFERENCE_SUPPORT
- BYTE PS_GetSurroundPerferenceParam(void);
- #endif
- #define PS_GET_ANALOG_AUDIO_SETTING() (((SPK_NOT_PRESENT == SpeakersConfigTable[gps->SpeakersConfigIndex].mCenterSpk)
- && (SPK_NOT_PRESENT == SpeakersConfigTable[gps->SpeakersConfigIndex].mSurroundSpk)
- && (SW_NOT_PRESENT == SpeakersConfigTable[gps->SpeakersConfigIndex].mSubwoofer))
- ? ANALOG_AUDIO_2CH : ANALOG_AUDIO_6CH)
- #define PS_SET_DIGITAL_AUDIO_SETTING(AStr,ASet) do {gps->digital_setting = ( (~( (0xF) << ((AStr)<<2) ) ) & gps->digital_setting) | ( ((WORD)(ASet)) << ((AStr)<<2));} while(0)
- #define PS_GET_DIGITAL_AUDIO_SETTING(AStr) ((gps->digital_setting>>((AStr)<<2)) & 0xF)
- #define PS_GET_TV_STANDARD_SETTING() ((gps->tv_standard & 0x7L))
- #define PS_GET_OSD_ONOFF_SETTING() (gps->osd_onoff & 0x1L)
- #ifdef I77_COMPANION_CHIP
- #define PS_GET_HD_VIDEO_OUTMODE() (gps->hd_vid_out_mode)
- #endif
- #ifdef FOUR_LEVEL_TRANSPARENCY //BT030703
- #define PS_GET_TRANSPARENCY_LEVEL (gps->menuTrans)
- #endif
- #ifdef D_ENABLE_SETUP_JPG_SIZE
- #if defined(I77_COMPANION_CHIP) && defined(I77_BRAIN_STORM)
- #define PS_GET_JPEG_SIZE_SETTING() (gps->hd_jpeg_mode_preference==HD_JPEG_MODE ? JPG_SIZE_ORIGINAL : gps->jpg_size)
- #else
- #define PS_GET_JPEG_SIZE_SETTING() (gps->jpg_size)
- #endif // MilesD1009_2005: Changed auto fit mode into original mode in HD JPEG, for ADP does not support auto fit mode in HD JPEG.
- #else
- #define PS_GET_JPEG_SIZE_SETTING() (JPG_SIZE_ORIGINAL)
- #endif
- #ifdef D_ENABLE_SETUP_JPG_INTERVAL
- #define PS_GET_JPEG_INTERVAL_SETTING() (gps->jpg_interval)
- #elif defined(I77_COMPANION_CHIP)
- #define PS_GET_JPEG_INTERVAL_SETTING() (JPG_INTERVAL_2_SEC)
- #else
- #define PS_GET_JPEG_INTERVAL_SETTING() (JPG_INTERVAL_5_SEC)
- #endif //D_ENABLE_SETUP_JPG_INTERVAL
- //#ifdef D_VIDEO_OUTMODE_SINGLEKEY
- #ifndef DONT_USE_PROGRESSIVE
- #define PS_GET_VIDEO_OUTMODE() gps->vid_out
- #define PS_GET_PSO_STAT() gps->prog_inter_select
- #define PS_GET_PSO_MODE() gps->pso_mode
- #endif
- #define PS_GET_SCREEN_SAVER_ENABLE gps->screen_saver_enable //DM092502
- #ifdef D_USE_CUSTOMER_RESERVED_SETTING
- // Bit value for gps->customer_reserved
- #define B_CUSTOMER_PREVIOUSLY_POWERED_ON 0x01
- #define B_CUSTOMER_PREVIOUSLY_SET_PASSWORD 0x02
- #endif // D_USE_CUSTOMER_RESERVED_SETTING
- #ifdef DDX_8000_AMPLIFIER
- #define AM_MODE_ON 0x00050801
- #define AM_MODE_OFF 0x00050800
- #define EAPD_MUTE_ON 0x00058000
- #define EAPD_MUTE_OFF 0x00058001
- #define AM_VOLUME_TRICK_ON 0x01000001
- #define AM_VOLUME_TRICK_OFF 0x01000000
- #define Satellite_volume_base 0x14
- #define LFE_volume_base 0x00
- #define Satellite_tuner_am_offset Satellite_volume_base//
- #define LFE_tuner_am_offset LFE_volume_base//
- #else
- #define Satellite_tuner_am_offset 0//
- #define LFE_tuner_am_offset 0//
- #endif
- #endif // _PS_H