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

📄 sv_const.h

📁 MTK 1389e版 MINI组合音响代码
💻 H
📖 第 1 页 / 共 4 页
字号:
#define SV_A_CH_21_1  7
#define SV_A_CH_22_1  8
#define SV_A_CH_30_0  9
#define SV_A_CH_31_0  10
#define SV_A_CH_32_0  11
#define SV_A_CH_33_0  12
#define SV_A_CH_30_1  13
#define SV_A_CH_31_1  14
#define SV_A_CH_32_1  15
#define SV_A_CH_33_1  16

#define SV_A_CH_LR    SV_A_CH_20_0
//BillDen For YXT_CTL bg
#define fgExistSubW(bState) ((bState>SV_A_CH_22_0 && bState<SV_A_CH_30_0) || (bState>SV_A_CH_33_0 && bState<=SV_A_CH_33_1))
#define fgExtOCenter(bState) (bState==SV_A_CH_30_0)
#define fgExtORear(bState) (bState==SV_A_CH_21_0 || bState==SV_A_CH_22_0)
#define fgExtOSubW(bState) (bState==SV_A_CH_20_1)
#define fgExtCR(bState) (bState>SV_A_CH_30_0 && bState<SV_A_CH_30_1)
#define fgExtCS(bState) (bState==SV_A_CH_30_1)
#define fgExtRS(bState) (bState==SV_A_CH_21_1 || bState==SV_A_CH_22_1)
#define fgExtCRS(bState) (bState>SV_A_CH_30_1 && bState<=SV_A_CH_33_1)
//BillDen For YXT_CTL end

// Audio Stream Application Information
#define SV_A_APPL_NONE    0x00
#define SV_A_APPL_KARA    0x01
#define SV_A_APPL_SURR    0x02

// Audio Effect
#define SV_A_KARA_LR_MIX    0     // bit 0: Karaoke L/R Mixing On/Off
#define SV_A_KARA_VC        1     // bit 1: Karaoke Vocal Mute On/Off
#define SV_A_VOCAL_ASSIST   2     // bit 2: Karaoke Channel Mix Reverse Mode or Vocal Assist On/Off
#define SV_A_KEY_SHIFT      3     // bit 3: Keyshift On/Off
#define SV_A_PRO_LOGIC      4     // bit 4: Prologic On/Off
#define SV_A_VSURR          5     // bit 5: Virtual Surround On/Off
#define SV_A_REVERB         6     // bit 6: Reverb On/Off
#define SV_A_PL2            7     // bit 7: Prologic II On/Off
#define SV_A_CH_EQ          8     // bit 8: Channel Equalizer On/Off
#define SV_A_BASS_BOOST     9     // bit 9: Bass Boost On/Off
#define SV_A_SUPER_BASS     10    // bit 10: Super Bass On/Off
#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 1
#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 */

// 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_TS1          16
#define SV_ISO_TS2          17
#define SV_ISO_OGG          18
#define SV_ISO_TS4          19
#define SV_ISO_ASF          22 //051013

#if 0// SUPPORT_OGG  use RISC_SP157
#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
#endif

// - 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 MT1389_REV_E
 #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
#else
#define fgIsIsoItemAV(bItem)          ((bItem >= SV_ISO_MPG) && (bItem <= SV_ISO_TS2))
#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 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

⌨️ 快捷键说明

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