📄 sv_const.h
字号:
#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
// 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
// *********************************************************************
// 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 0x30
// 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 0x01
#define FS384_24K 0x02
#define FS384_32K 0x03
#define FS384_48K 0x04
#define FS384_64K 0x05
#define FS384_96K 0x06
#define FS384_192K 0x07
#define FS384_22K 0x11
#define FS384_44K 0x12
#define FS384_88K 0x13
#define FS384_176K 0x14
#define FS768_44K 0x15
// 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: TVE
// *********************************************************************
#define TVE_CMD_INIT 0x31
#define TVE_CMD_PWR 0x32
#define TVE_CMD_SVIDEO_ON 0x33
#define TVE_CMD_SET_FORMAT 0x34
#define TVE_CMD_COLOR_BURST_OFF 0x35
#define TVE_CMD_DELAY_1T 0x36
#define TVE_CMD_AMP_ADJUST 0x37
#define TVE_CMD_DAC_ENABLE 0x38
#define TVE_CMD_DAC_MODE 0x39
#define TVE_CMD_SET_SHARP 0x3A
#define TVE_CMD_SET_BLACK_LV 0x3B
#define TVE_CMD_MACRO_VISION 0x3C
#define TVE_CMD_CLOSE_CAPTION 0x51
#define TVE_CMD_MAX 0x60
// *********************************************************************
// Peripheral Commands: Misc.
// *********************************************************************
#define MISC_CMD_SET_POWER 0x70
#define MISC_CMD_SAVE_LOGO 0x71
#define MISC_CMD_EEPROM_SVC 0x72
// *********************************************************************
// "FS LIST" CONTROL
// *********************************************************************
/* commands */
#define FLCMD_CREATE 0x1
#define FLCMD_SET 0x2
#define FLCMD_GET_ITEMS 0x3
#define FLCMD_CLICK_ITEM 0x4
#define FLCMD_ADD_TO_PL 0x5
#define FLCMD_RM_FROM_PL 0x6
#define FLCMD_CLEAN 0x7
#define FLCMD_QUERY_ITEM 0x8
#define FLCMD_ADD_ITEM 0x9
#define FLCMD_DEL_ITEM 0xa
#define FLCMD_REG_TO_PBMOD 0xb
/* return */
#define FLRET_S_OK 0x0
#define FLRET_E_INVALID_PARM 0x1
#define FLRET_E_INVALID_OP 0x2
#define FLRET_E_CMD_UNRDY 0x3
/* parameters */
/* exe list type */
#define FLPARM_LIST_INVALID 0xff
#define FLPARM_LIST_FOLDER 0x0
#define FLPARM_LIST_DISC 0x1
#define FLPARM_LIST_PLAYLIST 0x2
#define FLPARM_LIST_FJPIC 0x3
/* including file type config */
#define FLPARM_INC_PARENT 0x01
#define FLPARM_INC_FILLED_FOLDER 0x02
/* file filter config */
#define FLPARM_FF_DIR 0x0001 /* dir */
#define FLPARM_FF_MP3 0x0002 /* mp3 */
#define FLPARM_FF_MPEGA 0x0004 /* mpeg audio file group */
#define FLPARM_FF_JPEG 0x0008 /* jpeg */
#define FLPARM_FF_MPG 0x0010 /* mpeg video file group */
#define FLPARM_FF_WMA 0x0020 /* wma */
#define FLPARM_FF_CDDA 0x0040 /* audio track */
#define FLPARM_FF_AAC 0x0080 /* aac file */
#define FLPARM_FF_MLP 0x0100 /* mlp */
#define FLPARM_FF_WAV 0x0200 /* wav */
/* sorting order config */
#define FLPARM_SO_NAME 0x1 /* sorting by name */
#define FLPARM_SO_GDIR 0x2 /* group dir first */
/* access option */
#define FLPARM_OPT_IMG_MODE 0x1 /* turn on image mode */
/* type of reqisted list */
#define FLPARM_FLREG_DISP 0x1 /* registed as display list */
#define FLPARM_FLREG_PLAYBACK 0x2 /* registed as playback list */
/* file type */
#define FTYPE_UNKNOWN 0xFF
#define FTYPE_MP3 0x01
#define FTYPE_MP2 0x02
#define FTYPE_MP1 0x03
#define FTYPE_JPG 0x05
#define FTYPE_WMA 0x07
#define FTYPE_ASF 0x08
#define FTYPE_MPG 0x09
#define FTYPE_DAT 0x0A
#define FTYPE_VOB 0x0B
#define FTYPE_DSD 0x0D
#define FTYPE_CDA 0x0F
#define FTYPE_DIR 0x10 /* directory */
#define FTYPE_DTS 0x11
#define FTYPE_AVI 0x12
#define FTYPE_TS1 0x13 /* for test */
#define FTYPE_TS2 0x14 /* for test */
#define FTYPE_DST 0x15
#define FTYPE_TS3 0x16
#ifdef CDG_SUPPORT
#define FTYPE_CDG 0x17
#endif
/* FOR MP3 MODULE STATE UPDATE USED IN "SI_MP3_STT" (PLAYBACK STATE) */
#define MP3STT_PB_ENB 0x1 // - playback enabled
#define MP3STT_PB_STRT 0x2 // - playback starts
#define MP3STT_PB_FSH 0x3 // - playback finishes
#define MP3STT_PB_ABT 0x4 // - playback aborted
#define MP3STT_PB_ERR 0x5 // - playback error
/* FOR JPEG DECODING STATE UPDATE USED IN "SI_JPEG_STT" */
#define JPEGSTT_DEC_STRT 0x1 // - decoding starts
#define JPEGSTT_DEC_FSH 0x2 // - decoding finished
#define JPEGSTT_DEC_ABT 0x3 // - decoding aborted
#define JPEGSTT_DEC_ERR 0x4 // - decoding error
/* FOR JPEG MODE UPDATE USED IN "SI_JPEG_MODE" */
#define JPEGMOD_NORMAL 0x1 // - normal mode
#define JPEGMOD_DIGEST 0x2 // - digest mode
#define JPEGMOD_SLIDESHOW 0x3 // - slide show mode
/* FOR MOTION PICTURE UPDATE USED IN "SI_MPIC_STT" */
#define MPICSTT_PB_STRT 0x1 // - playback started
#define MPICSTT_PB_FSH 0x2 // - playback finished
#define MPICSTT_PB_ABT 0x3 // - playback aborted
#define MPICSTT_PB_ERR 0x4 // - playback error
/* FOR file system type */
#define FSTYPE_ISO9660 0x0
#define FSTYPE_UDF 0x1
#define FSTYPE_CDFS 0x2
#define FSTYPE_SACDFS 0x3
#define FSTYPE_UNKNOWN 0xFF
#define CPPM_KEY_RESERVE 256
#endif /* _SV_CONST_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -