⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sv_const.h

📁 MTK portableDVD 采用mtk1389方案的代码
💻 H
📖 第 1 页 / 共 4 页
字号:
#define SV_A_TREBLE_BOOST   11    // bit 11: Clear Boost On/Off
#define SV_A_HDCD           12    // bit 12: HDCD On/Off
#define SV_A_POST_DRC       13    // bit 13: DRC On/Off
#define SV_A_N22            14    // bit 14: Spatializer On/Off
#define SV_A_DOLBY_EX       15    // bit 15: Dolby Digital EX On/Off

// ERROR_RET
#define SV_NO_ERROR                0
#define SV_ERR_GENERAL             1
#define SV_ERR_INVALID_OPERATION   2
#define SV_ERR_INPUT_INVALID       3
#define SV_ERR_DISC_NOT_SUPPORT    4
#define SV_ERR_PLAYBACK_ONLY       5
#define SV_ERR_STOP_ONLY           6
#define SV_ERR_PBC_ON_ONLY         7
#define SV_ERR_PBC_OFF_ONLY        8
#define SV_ERR_NORMAL_PLAY_ONLY    9
#define SV_ERR_KARA_ONLY           10
#define SV_ERR_NON_KARA_ONLY       11
#define SV_ERR_OSD_MEM_FULL        12
#define SV_ERR_LIST_HEAD_TRK       13
#define SV_ERR_LIST_END_TRK        14
#define SV_ERR_LIST_HEAD_CH        15
#define SV_ERR_LIST_END_CH         16
#define SV_ERR_MAX                 17

#define SV_USER       0
#define SV_PRIOR      1

#define SV_SACD_MCH   0
#define SV_SACD_2CH   1
#define SV_SACD_CD    2
#define SV_SACD_NONE  0xff

#define SV_SACD_MCH_SUPPORT         (1<<SV_SACD_MCH)
#define SV_SACD_2CH_SUPPORT         (1<<SV_SACD_2CH)
#define SV_SACD_CD_SUPPORT          (1<<SV_SACD_CD)

#define SV_VIDEO_FIRST    0
#define SV_AUDIO_FIRST    1

#define SV_KOK_OFF        0
#define SV_KOK_LRMIX      1
#define SV_KOK_VMUTE      2

//potato
#if 0
#define SV_NONE           3  
#define SV_LOW            2 
#define SV_MID            1
#define SV_HIGH           0

#define SV_GAMMA_NONE     0   //No Gamma
#define SV_GAMMA_LOW      8   //fine tune Gamma curve gain, range: 1~100
#define SV_GAMMA_MID      16  //
#define SV_GAMMA_HIGH     24  //
#else
#define SV_NONE           0   //No Gamma
#define SV_LOW            8   //fine tune Gamma curve gain, range: 1~100
#define SV_MID            16  //
#define SV_HIGH           24  //
#endif
#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 */
#define SV_STOP_ALL_TARGET	2 /* stop all target by fsi */
// for UOP_PAUSE
#define SV_PAUSE_NORMAL     0
#define SV_SETUP_ENTER      1 /* enter setup menu */
#define SV_SETUP_EXIT       2 /* exit setup menu */

// 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
#define SV_TIME_INDEX       2  /* only used in SACD */

// 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_QT           17
#define SV_ISO_MP4          18
#define SV_ISO_3GP          19
#define SV_ISO_TS2          20
#define SV_ISO_OGG          21
#define SV_ISO_TS4          22
#define SV_ISO_ASF          23 //willy_asf

// - 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))
#ifdef SUPPORT_OGG  //tide add
#define  fgIsIsoItemAV(bItem)           ((bItem >= SV_ISO_MPG) && (bItem <=SV_ISO_TS4))
#else
#define fgIsIsoItemAV(bItem)          ((bItem >= SV_ISO_MPG) && (bItem <= SV_ISO_OGG))
#endif

// 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 TV HD Mode
#define SV_HD_MODE_OFF    0
#define SV_HD_MODE_720P   1
#define SV_HD_MODE_1080I  2

#define SV_INTERLACE     0
#define	SV_PSCAN_EN      1

// 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

#define SV_JPG_NORMAL         0
#define SV_JPG_HELP           1
// 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 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 89HD HV sync output on other pin
#define SV_HSYNC_ON_UP12  0x00
#define SV_HSYNC_ON_IOA21  0x01
#define SV_HSYNC_ON_ASDATA  0x10
#define SV_HSYNC_ON_MC_DATA  0x11
#define SV_VSYNC_ON_UP12       (0x00<<2)
#define SV_VSYNC_ON_IOA21      (0x01<<2)
#define SV_VSYNC_ON_ASDATA    (0x10<<2)
#define SV_VSYNC_ON_MC_DATA  (0x11<<2)


// 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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -