📄 sv_const.h
字号:
#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
// SI_LPCM_BIT. (DO NOT CHANGE THESE VALUES)
#define SV_16_BIT 0
#define SV_20_BIT 1
#define SV_24_BIT 2
#define SV_8_BIT 3
// SI_LPCM_FREQ (DO NOT CHANGE THESE VALUES)
#define SV_LPCM_48K 0x0
#define SV_LPCM_96K 0x1
#define SV_LPCM_192K 0x2
#define SV_LPCM_24K 0x3
#define SV_LPCM_12K 0x4
#define SV_LPCM_44_1K 0x8
#define SV_LPCM_88_2K 0x9
#define SV_LPCM_176_4K 0xa
#define SV_LPCM_22_05K 0xb
#define SV_LPCM_11_025K 0xc
#define SV_LPCM_32K 0x10
#define SV_LPCM_16K 0x13
#define SV_LPCM_8K 0x14
// *********************************************************************
// 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
// for SI_AVI_SCAN_MODE // for high-speed scan
#define SV_AVISCAN_DELAY 0 // good accuracy with delay
#define SV_AVISCAN_QUICK 1 // quick and inaccurate, with no delay
#define SV_AVISCAN_ACCURATE 2 // good accuracy, no delay, only FWD SCAN
#define SV_AVISCAN_DELAY_INDIS 3 // delay indiscriminately, no accuracy
// *********************************************************************
// 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
#define FS384_16K 0x00
#define FS384_22K 0x01
#define FS384_24K 0x02
#define FS384_32K 0x03
#define FS384_44K 0x04
#define FS384_48K 0x05
#define FS384_64K 0x06
#define FS384_88K 0x07
#define FS384_96K 0x08
#define FS384_176K 0x09
#define FS384_192K 0x0A
#define FS768_44K 0x0B
// for ADAC_CMD_AIN_SEL
#define AIN_SEL_OFF 0x00
#define AIN_SEL_D0 0x10
#define AIN_SEL_D1 0x11
#define AIN_SEL_D2 0x12
#define AIN_SEL_D3 0x13
#define AIN_SEL_L0 0x20
#define AIN_SEL_L1 0x21
#define AIN_SEL_L2 0x22
#define AIN_SEL_L3 0x23
// for Audion Sampling rate
#define AFS512_48K 0
#define AFS256_96K 1
#define AFS128_192K 2
// *********************************************************************
// Peripheral Commands: HDMI
// *********************************************************************
#define HDMI_CMD_RESOLUTION 0x21
#define HDMI_CMD_VIDEO_FORMAT 0x22
#define HDMI_CMD_AUDIO_FORMAT 0x23
#define HDMI_CMD_BYPASS 0x24
#define HDMI_CMD_SCLCOEF 0x25
#define HDMI_CMD_SCL_RESET 0x26
#define HDMI_CMD_HUE_CONTROL 0x27
#define HDMI_CMD_GAMMA_CONTROL 0x28
#define HDMI_CMD_MAX 0x30
#define VFMT_480P 0
#define VFMT_576P 1
#define VFMT_720P 2
#define VFMT_1080I 3
#define VFMT_480I 4
#define VFMT_576I 5
#define VFMT_480P27 6
#define VFMT_720P50 7
#define VFMT_1080I50 8
#define VFMT_576P27 9
#define VFMT_MODE 10
#define VFMT_OFF 15
#define SV_480P54 VFMT_480P
#define SV_576P54 VFMT_576P
#define SV_720P60 VFMT_720P
#define SV_1080I60 VFMT_1080I
#define SV_480I VFMT_480I
#define SV_576I VFMT_576I
#define SV_480P27 VFMT_480P27
#define SV_720P50 VFMT_720P50
#define SV_1080I50 VFMT_1080I50
#define SV_576P27 VFMT_576P27
#define SV_RGB444 0
#define SV_YUV444 1
#define SV_SPDIF 0
#define SV_I2S 1
#define SV_HDMI_ON 1
#define SV_DVI_ON 0
#define SV_SINK_480I (0x1 << 0)
#define SV_SINK_480P27 (0x1 << 1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -