📄 sv_const.h
字号:
#define SV_MID 16 //
#define SV_HIGH 24 //
#define SV_YLP_ENABLE 0x80
#define SV_CLP_MASK 0x03 // high, mid and low
#define SV_YLP_MASK (0x0F << 2) // 0~10, 10 sets
#define SV_LUMINANCE_DELAY_0 0
#define SV_LUMINANCE_DELAY_1 1
#define SV_HI_RESOLUTION 0
#define SV_NONFLICKER 1
// Black Level
#define SV_NORMAL 0
#define SV_LIGHTER 1
// Black Level (for SI_BLK_LVL)
#define SV_BLACK_NONE 0
#define SV_SETUP (0x1) // composite setup
#define SV_CPNT_SETUP (0x1 << 1) // component setup
#define SV_BLACKER (0x1 << 2) // blacker than black
// for UOP_STOP
#define SV_LOGO_JACKET 0x00
#define SV_LOGO_FLASH 0x01
#define SV_LOGO_CAPTURE 0x02
#define SV_LOGO_COLOR 0x03
#define SV_LOGO_KEEP 0x04 /* keep current display */
#define SV_LOGO_FILL 0x05
#define SV_LOGO_TYPE_MAX 0x06
#define SV_LOGO_SETUP 0x20 /* by setup menu setting, for 8032 only */
#define SV_LOGO_COLOR_BLACK 0
#define SV_LOGO_COLOR_BLUE 1
#define SV_LOGO_COLOR_WHITE 2
#define SV_STOP_NORMAL 0
#define SV_STOP_FORCE 1 /* enter fully stop directly */
// for UOP_PAUSE
#define SV_PAUSE_NORMAL 0
#define SV_SETUP_ENTER 1 /* enter setup menu */
#define SV_SETUP_EXIT 2 /* exit setup menu */
#define SV_SHOW_MENU 3
#define SV_SHOW_SETUP 0x01
#define SV_SHOW_PROGRAM 0x02
#define SV_SHOW_BOOKMARK 0x03
#define SV_SHOW_DIGEST 0x04
// for DVD/VCD UOP_NEXT
#define SV_NEXT_NORMAL 0
// for DVD UOP_NEXT
#define SV_DVD_NEXT_FORCE (1 << 4) // ignore UOP block
#define SV_DVD_NEXT_POST (1 << 5) // check post-cmd
#define SV_DVD_NEXT_TITLE (1 << 6) // jump to next title. higher priority than POST
/*
Next procedures : (high priority to low priority)
1. If UOP block and NEXT_FORCE is off, return FALSE.
2. Go to next PG if available.
3. Go to first PG of Next_PGCN in PGC_NV_CTL, if available
4. If in TT_DOM, TT_NO < TT_NS, and NEXT_TITLE is on,
go to first chapter of next title.
5. If NEXT_POST is on, execute POST_CMD of this PGC.
*/
// for VCD UOP_NEXT
#define SV_VCD_NEXT_NORMAL 0 /* if next is not valid, return fail */
#define SV_VCD_NEXT_RETURN (1 << 4) /* if next is not valid, try to do return */
#define SV_VCD_NEXT_STOP (2 << 4) /* if next is not valid, stop play */
// for DVD/VCD UOP_PREV
#define SV_PREV_GOTOP 0
#define SV_PREV_ONLY 1
// for DVD UOP_PREV
#define SV_DVD_PREV_FORCE (1 << 4) // ignore UOP block
#define SV_DVD_PREV_CHAP (1 << 5) // jump to previous chapter
#define SV_DVD_PREV_TITLE (1 << 6) // jump to previous title
#define SV_DVD_PREV_TT_1ST_CH (1 << 7) // jump to 1st ch of prev title
/* Prev procedures: (high priority to low priority)
1. If UOP block and PREV_FORCE is off, return FALSE
2. If in TT_DOM, SV_DVD_PREV_CHAP is on and PTTN > 1, go to previous chapter.
3. Go to previous PG if available.
4. Go to first PG of Previous_PGCN in PGC_NV_CTL is available.
5. If in TT_DOM, TT_NO > 1, and PREV_TITLE is on,
go to either the 1st chapter or the last chapter of the previous title,
depending on PREV_TT_1ST_CH.
*/
// for VCD UOP_PREV
#define SV_VCD_PREV_NORMAL 0
#define SV_VCD_PREV_RETURN (1 << 4)
#define SV_VCD_PREV_STOP (2 << 4)
// for DVD change audio stream
#define SV_AUDIO_MASTER 0
#define SV_VIDEO_MASTER 1
#define SV_UOP_BLOCK 0
#define SV_UOP_FORCE 1
#define SV_SCR_SAVER_OFF 0
#define SV_SCR_SAVER_ON 1
// for VCD UOP_TIME_PLAY
#define SV_TIME_TRACK 0
#define SV_TIME_DISC 1
// POWER MODE
#define SV_PWR_ACTIVE 1
#define SV_PWR_IDLE_PAUSE 2
#define SV_PWR_IDLE_STOP 3
#define SV_PWR_STANDBY 4
#define SV_PWR_SLEEP 5 /* only for 8032, not for RISC */
// UOP_OPEN_CLOSE
#define SV_FORCE_CLOSE 1
#define SV_FORCE_OPEN 2
#define SV_PSEUDO_CLOSE 3
#define SV_PSEUDO_OPEN 4
// UOP_PLAY option 1
#define SV_STOP_PLAY_NO_FP 0x01
#define SV_STOP_PLAY_CHK_LASTMEM 0x02
// UOP_PLAY option 2
#define SV_PTL_PWD_FAIL 0
#define SV_PTL_PWD_OK 1
// for UOP_A_TO_B
#define SV_A_TO_B 0
#define SV_SP_REPEAT 1
#define SV_INST_REPLAY 2
#define SV_MIC_REPLAY 3
#define SV_AB_OFF 4
// for _bSysClk
#define SV_SCLK_INIT 0 /* only for 8032 */
#define SV_SCLK_FULL 1
#define SV_SCLK_1 2
#define SV_SCLK_2 3
#define SV_SCLK_IDLE 4 /* only for 8032 */
#define SV_SCLK_MAX 5
#define SV_SCLK_RESTORE 6
// for UOP_DIGEST sub-command
#define DGST_SLICE_TIME 5
#define SV_DGST_STROBE 0
#define SV_DGST_TITLE 1
#define SV_DGST_CHAPTER 2
#define SV_DGST_TRACK 3
#define SV_DGST_BOOKMARK 4
#define SV_DGST_PROGRAM 5
#define SV_DGST_TIME_DISK 6
#define SV_DGST_TIME_TRK 7 /* current play track only */
#define SV_DGST_TIME_TTL 8 /* current play title only */
#define SV_DGST_TIME_PTT 9 /* current play chapter only */
#define SV_DGST_GROUP 10
#define SV_DGST_INDEX 11 /* currently played track only */
#define SV_DGST_SPOTLIGHT 12 /* currently played track only */
#define SV_DGST_TIME_GRP 13 /* currently played group only */
#define SV_DGST_RESUME 14 /* use UOP_RESUME instead */
#define SV_DGST_PLAY 15 /* use UOP_DIGITAL_BTN instead */
#define SV_DGST_NEXT 16 /* use UOP_NEXT instead */
#define SV_DGST_PREV 17 /* use UOP_PREVIOUS instead */
// for SI_USR_DIGEST_CTRL
#define SV_DGST_ONCE 0
#define SV_DGST_REP_PAGE 1
#define SV_DGST_REP_ALL 2
// for SI_ISO_ITEM_TYPE (the MAX number of types 32)
#define SV_ISO_NONE 0
// - graphic item.
#define SV_ISO_JPG 1
// - audio item.
#define SV_ISO_MP3 2
#define SV_ISO_AC3 3
#define SV_ISO_DTS 4
#define SV_ISO_MLP 5
#define SV_ISO_WMA 6
#define SV_ISO_WAV 7
#define SV_ISO_MPEGA 8
#define SV_ISO_AAC 9
#define SV_ISO_DSD 10
#define SV_ISO_CDA 11
// - av item.
#define SV_ISO_MPG 12
#define SV_ISO_DAT 13
#define SV_ISO_VOB 14
#define SV_ISO_AVI 15
#define SV_ISO_TS1 16
#define SV_ISO_TS2 17
#define SV_ISO_TS3 18
// - misc items.
#define SV_ISO_TYPE_MAX 32
#define fgIsIsoItemAOnly(bItem) ((bItem >= SV_ISO_MP3) && (bItem <= SV_ISO_CDA))
#define fgIsIsoItemStill(bItem) (bItem == SV_ISO_JPG)
//#define fgIsIsoItemAV(bItem) ((bItem >= SV_ISO_MPG) && (bItem <= SV_ISO_VOB))
#define fgIsIsoItemAV(bItem) ((bItem >= SV_ISO_MPG) && (bItem <= SV_ISO_TS2))
// for ASPECT Ratio change
#define SV_PSCAN_ON (1 << 0)
#define SV_LB_ON (1 << 1)
#define SV_WIDE_ON (1 << 2)
#define SV_BLOCK_ON (1 << 3)
// for SI_V_4_3
#define SV_V_4_3 0
#define SV_V_16_9 1
// for UOP_AUDIO_CLIP
#define SV_ACLIP_FLASH 0
// for JPEG module UOP_STOP
#define SV_JPG_STOP_DEC 0
#define SV_JPG_STOP_SSHOW 1
#define SV_JPG_STOP_ALL_STATE 2
// for SI_SRV_BOOT_STATE
#define SV_SRV_BOOT_LOAD 0
#define SV_SRV_BOOT_EJECT 1
#define SV_SRV_BOOT_UPG 2
#define SV_SRV_BOOT_SKIP_LOAD 3
// 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 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -