📄 sv_const.h
字号:
// for JPEG digest background.
#define SV_DIGEST_BG_COLOR 0xF0
#define SV_DIGEST_BG_LOGO_MIN 0x01
#define SV_DIGEST_BG_LOGO_MAX 0x10
#define SV_DIGEST_BG_COLOR_BLUE 0x00
// for DRAM size config
#define SV_DRAM_2M 0x01
#define SV_DRAM_4M 0x02
#define SV_DRAM_8M 0x03
#define SV_DRAM_16M 0x04
#define SV_DRAM_16BIT 0x01
#define SV_DRAM_32BIT 0x02
// for FLASH size config
#define SV_FLASH_512K 0x01
#define SV_FLASH_1M 0x02
#define SV_FLASH_2M 0x03
#define SV_FLASH_4M 0x04
// Parental Level
#define SV_PR_KID 1
#define SV_PR_G 2
#define SV_PR_PG 3
#define SV_PR_PG13 4
#define SV_PR_PR5 5
#define SV_PR_GR 6
#define SV_PR_NC 7
#define SV_PR_ADULT 8
#define SV_PR_OFF 0xF
// for TV Encoder Mode
#define SV_EXT_TVE_MASTER 0x0
#define SV_EXT_TVE_SLAVE 0x1
#define SV_INT_TVE 0x2
// for digital output format
//#define SV_CCIR656 0x1
//#define SV_CCIR601 0x0
//#define SV_BOTH_ANALOG_DIGITAL 0x2
// for TV Encoder Setting
#define SV_YC_DELAY (0x1)
#define SV_RISING_EDGE (0x1 << 1)
// for SI_TVE_OUTPUT_MODE
// bits 0,1: DA0 output mode
#define SV_DA0_OFF (0x0)
#define SV_DA0_S_CVBS (0x1)
#define SV_DA0_CPNT (0x2)
#define SV_DA0_MODE_MASK (0x3)
// bit 2: DA0 S on/off
// bit 3: DA0 CVBS on/off
#define SV_DA0_S_ON (0x1 << 2)
#define SV_DA0_CVBS_ON (0x1 << 3)
// bits 4,5: DA1 output mode
#define SV_DA1_OFF (0x0 << 4)
#define SV_DA1_CVBS (0x1 << 4)
#define SV_DA1_CPNT (0x2 << 4)
#define SV_DA1_MODE_MASK (0x3 << 4)
// bit 6: for component output: 0: YCbCr, 1: RGB
#define SV_CPNT_RGB (0x1 << 6)
// bit 7: for component RGB output
#define SV_CPNT_VGA (0x1 << 7)
// for SI_PSCAN_MODE
#define SV_PSCAN_AUTO (0x0)
#define SV_PSCAN_FILM (0x1)
#define SV_PSCAN_VIDEO (0x2)
// for SI_PSCAN_VIDEO
#define SV_PSCAN_NF (0x0) // non-flicker
#define SV_PSCAN_HR (0x1) // hi-resolution
#define SV_PSCAN_SM (0x2) // smooth
// for SI_PSCAN_PAUSE_MODE
#define SV_PSCAN_PAUSE_AUTO (0x0)
#define SV_PSCAN_PAUSE_FRAME (0x1)
#define SV_PSCAN_PAUSE_FIELD (0x2)
// for SI_PSCAN_NTSC
#define SV_PSCAN_FORCE_FRAME (0x1)
#define SV_PSCAN_22FLG_ON (0x1 << 1)
#define SV_PSCAN_22DET_FLG_ON (0x1 << 2)
#define SV_PSCAN_22DET_NF_ON (0x1 << 3)
#define SV_PSCAN_32FLG_ON (0x1 << 4)
#define SV_PSCAN_32DET_ON (0x1 << 5)
#define PS_NTSC_FULL (SV_PSCAN_22DET_FLG_ON | SV_PSCAN_22DET_NF_ON \
SV_PSCAN_32FLG_ON | SV_PSCAN_32DET_ON)
#define PS_NTSC_DEFAULT (SV_PSCAN_32FLG_ON | SV_PSCAN_32DET_ON)
#define PS_NTSC_FLAG (SV_PSCAN_32FLG_ON | SV_PSCAN_22FLG_ON)
#define PS_NTSC_SIMPLE (SV_PSCAN_32FLG_ON)
// for SI_PSCAN_PAL
//#define SV_PSCAN_FORCE_FRAME (0x1)
//#define SV_PSCAN_22FLG_ON (0x1 << 1)
//#define SV_PSCAN_22DET_FLG_ON (0x1 << 2)
//#define SV_PSCAN_22DET_NF_ON (0x1 << 3)
#define PS_PAL_FULL (SV_PSCAN_22DET_FLG_ON | SV_PSCAN_22DET_NF_ON)
#define PS_PAL_DEFAULT (SV_PSCAN_22DET_FLG_ON)
#define PS_PAL_FLAG (SV_PSCAN_22FLG_ON)
#define PS_PAL_SIMPLE (SV_PSCAN_22DET_FLG_ON)
// for SI_PSCAN_TRICK_MODE
#define SV_PS_SLOW_INTRA (0x1 << 0)
#define SV_PS_FAST_INTRA (0x1 << 1)
#define SV_PS_STEP_INTRA (0x1 << 2)
//for Warnth filter setup
#define SV_WARNTH_OFF 0
#define SV_WARNTH_ON 1
#define SV_WARNTH_VIDEO 2
//for X-direction Zoom-in filter
#define SV_LPF 0
#define SV_LNR 1
#define SV_DOWN_LP 2
// for SI_VDO_IN_EN
#define SV_VDO_IN_OFF 0
#define SV_VDO_IN_SUB 1
#define SV_VDO_IN_MAIN 2
// for SI_VDO_IN_SCALE
#define SV_VDO_IN_1 0
#define SV_VDO_IN_12 1
#define SV_VDO_IN_13 2
#define SV_VDO_IN_14 3
// for SI_VDO_CFG_SET
#define SV_HI_IMP_FLT_FRONT 0
#define SV_HI_IMP_FLT_BACK 1
#define SV_LO_IMP 2
// CONST FOR FS MENU PROPERTY GROUP
// SI_FSMENU_OPMODE
#define SV_FSMENU_OPMODE_FILELIST 0x1
#define SV_FSMENU_OPMODE_DIRBWR 0x2
#define SV_FSMENU_OPMODE_PLAYLIST 0x3
// CONST FOR RETURN CODE OF THE FS MENU COMMANDS (under modification)
#define SV_FSMENU_RC_S_OK 0x0
#define SV_FSMENU_RC_E_INVALID_MENU 0x1
#define SV_FSMENU_RC_E_INVALID_TARGET 0x2
#define SV_FSMENU_RC_E_INVALID_OP 0x3
#define SV_FSMENU_RC_E_GENERAL_ERR 0xFF
// FOR MENU TYPE
#define SV_FSMENU_MENU_TYPE_UNKNOWN 0x0
#define SV_FSMENU_MENU_TYPE_FILES 0x1
#define SV_FSMENU_MENU_TYPE_DIRS 0x2
#define SV_FSMENU_MENU_TYPE_PLAYLIST 0x3
// FOR DDISC PLAYBACK MODULE
#define SV_DDISC_MODULE_NONE 0x0
#define SV_DDISC_MODULE_MP3 0x1
#define SV_DDISC_MODULE_JPG 0x2
#define SV_DDISC_MODULE_MPG 0x3
// for the style of item on the fs menu.
#define SV_NUM_STR 0x1
// TODO: other item for style setting.
// for SI_DVD_SUPPORT
#define SV_DVD_VIDEO_SUPPORT 0x01
#define SV_DVD_AUDIO_SUPPORT 0x02
#define SV_MINI_DVD_SUPPORT 0x04
// for SI_VCD_SUPPORT
#define SV_VCD_1X_SUPPORT 0x01
#define SV_VCD_20_SUPPORT 0x02
#define SV_VCD_30_SUPPORT 0x04
#define SV_SVCD_SUPPORT 0x08
#define SV_CVD_SUPPORT 0x10
#define SV_VCD_AS_DATA 0x80
// for SI_CDDA_SUPPORT
#define SV_CDDA_SUPPORT 0x01
#define SV_DTS_CD_SUPPORT 0x02
#define SV_CDG_SUPPORT 0x04
// for SI_PCD_SUPPORT
#define SV_PCD_SUPPORT 0x01
#define SV_PCD_AS_DATA_DISC 0x02
#define SV_PCD_AS_UNKNOWN_DISC 0x03
#define SV_PCD_MASK 0x0F
// User Opetaion Definition
#define SV_NV_TIME_PLAY 0
#define SV_NV_PTT_PLAY 1
#define SV_NV_TITLE_PLAY 2
#define SV_NV_STOP 3
#define SV_NV_GO_UP 4
#define SV_NV_TIME_SEARCH 5
#define SV_NV_PRE_PG 6
#define SV_NV_NEXT_PG 7
#define SV_NV_FWD_SCAN 8
#define SV_NV_BWD_SCAN 9
#define SV_NV_TITLE_MENU 10
#define SV_NV_ROOT_MENU 11
#define SV_NV_SP_MENU 12
#define SV_NV_A_MENU 13
#define SV_NV_ANGLE_MENU 14
#define SV_NV_PTT_MENU 15
#define SV_NV_RESUME 16
#define SV_NV_HLI_BTN 17
#define SV_NV_STILL_OFF 18
#define SV_NV_PAUSE_ON 19
#define SV_NV_A_CHANGE 20
#define SV_NV_SP_CHANGE 21
#define SV_NV_ANGLE_CHANGE 22
#define SV_NV_KARA_MODE 23
#define SV_NV_V_MODE 24
#define SV_NV_UOP_BLK_MAX 25
//for upgrade disc
#define SV_FILE_EXIST 1
#define SV_CHKSUM_OK 2
#define SV_COPY_RETRY 3
#define SV_CHKSUM_ERR 4
#define SV_CAP_LOGO_SZ_64K 0
#define SV_CAP_LOGO_SZ_128K 1
#define SV_CAP_LOGO_SZ_64K_CPPM 2
#define SV_CAP_LOGO_SZ_128K_CPPM 3
//for IEC max frequency
#define SV_48K 1
#define SV_96K 2
#define SV_192K 3
//Repeat AB state
#define SV_AB_A 1
#define SV_AB_B 2
// for UOP_PTT_PLAY
#define SV_PTT_PLAY_NORMAL 0
#define SV_PTT_PLAY_FORCE 1
#define SV_ASVMD_SLIDESHOW 0x00
#define SV_ASVMD_BROWSABLE 0x04
#define SV_ASVMD_SEQUENTIAL 0x00
#define SV_ASVMD_RANDOM 0x02
#define SV_ASVMD_SHUFFLE 0x03
// - for type of file system setting
/* byte 1 */
#define SV_FS_MP3_SUPPORT 0x01
#define SV_FS_MPEGA_SUPPORT 0x02
#define SV_FS_JPEG_SUPPORT 0x04
#define SV_FS_MPG_SUPPORT 0x08
#define SV_FS_WMA_SUPPORT 0x10
#define SV_FS_ASF_SUPPORT 0x20
#define SV_FS_WAV_SUPPORT 0x40
#define SV_FS_MP3PRO_SUPPORT 0x80
/* byte 2 */
#define SV_FS_MAP_SUPPORT 0x01
#define SV_FS_CDDA_SUPPORT 0x02
#define SV_FS_AAC_SUPPORT 0x04
#define SV_FS_MLP_SUPPORT 0x08
// for SI_GROUP_END (DVD-Audio behavior)
// bit 0,1: 1st priority; bit 2,3: 2nd priority;
#define SV_STOP_PLAYING 0
#define SV_RTN_MENU 1
#define SV_NEXT_GROUP 2
// for UOP_CHANGE_ASTN or UOP_NEXT_ASTN in DVD-Audio
#define SV_REPLAY_TRK 0
#define SV_KEEP_PLAY 1
//for SI_PLAY_STOP
#define SV_AUTO_STOP 0
#define SV_USER_STOP 1
//for SI_MEMORY_RES
#define SV_MEM_STORE 0
#define SV_MEM_PLAY 1
#define SV_MEM_ERR 2
// for SI_CAP_LOGO_ST
#define SV_LCAP_IDLE 0
#define SV_LCAP_ENC 1
#define SV_LCAP_WRITE 2
// *********************************************************************
// MPEG4 options
// *********************************************************************
// for SI_AVI_FF_MODE
#define SV_AVIFF_ACCURATE 0 // accurate speed, with delay
#define SV_AVIFF_QUICK 1 // quick and inaccurate, with no delay
// *********************************************************************
// Peripheral Commands: ADAC
// *********************************************************************
// ADAC programming
#define ADAC_CMD_FMT 0x01
#define ADAC_CMD_MUTE 0x02
#define ADAC_CMD_VOL 0x03
#define ADAC_CMD_EMPH 0x04
#define ADAC_CMD_DATA_FMT 0x05
#define ADAC_CMD_DAC_MUTE 0x06
#define ADAC_CMD_DSD_MODE 0x07
#define ADAC_SET_DSP_SPEED_DMPLL 0x08
#define ADAC_SET_DSP_SEEED_APLL 0x09
#define ADAC_CMD_AIN_SEL 0x10
#define ADAC_CMD_MAX 0x20
// for ADAC_CMF_FMT
#define RTJ_16BIT 0x00
#define RTJ_18BIT 0x01
#define RTJ_20BIT 0x02
#define RTJ_24BIT 0x03
#define I2S_16BIT 0x04
#define I2S_18BIT 0x05
#define I2S_20BIT 0x06
#define I2S_24BIT 0x07
#define LTJ_16BIT 0x08
#define LTJ_18BIT 0x09
#define LTJ_20BIT 0x0A
#define LTJ_24BIT 0x0B
#define UPSAMPLE_MASK 0xE0
#define UPSAMPLE_OFF 0x00
#define UPSAMPLE_1X 0x20
#define UPSAMPLE_2X 0x40
#define UPSAMPLE_4X 0x60
#define UPSAMPLE_8X 0x80
#define FS256_16K 0x00
#define FS256_22K 0x01
#define FS256_24K 0x02
#define FS256_32K 0x03
#define FS256_44K 0x04
#define FS256_48K 0x05
#define FS256_64K 0x06
#define FS256_88K 0x07
#define FS256_96K 0x08
#define FS256_176K 0x09
#define FS256_192K 0x0A
#define FS512_44K 0x0B
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -