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

📄 ramdef.h

📁 车载电子影音系统dvd播放系统原程序代码
💻 H
📖 第 1 页 / 共 2 页
字号:
#define         W99AV_DRAM_ JPEG_YEAR           0x0157

//bit[31:24], [23:16]==>Month, [15:8], [7:0]==>date
#define         W99AV_DRAM_JPEG_MMDD            0x0158

//bit[31:16]:The status of decoding a picture. 0==>unfinish. 1==>finish.
//bit[15:0]:The decoding result. 1==>OK. 0==>Failed.
#define         W99AV_DRAM_JPEG_DECODE_STATUS   0x0149

// Chuan1.10, add.
#define         W99AV_DRAM_DVD_CD_JPEG          0x015E

//bit[31:0]:Horizontal Clip Start
#define         W99AV_DRAM_JPEG_HCS             0x0166  // Chuan0.83a, for 908 JPEG

//bit[31:0]:Horizontal Clip Width
#define         W99AV_DRAM_JPEG_HCW             0x0168  // Chuan0.83a, for 908 JPEG

//bit[31:0]:Vertical Clip Start
#define         W99AV_DRAM_JPEG_VCS             0x0167  // Chuan0.83a, for 908 JPEG

//bit[31:0]:Vertical Clip Width
#define         W99AV_DRAM_JPEG_VCW             0x0169  // Chuan0.83a, for 908 JPEG

// Micky0.90, add one DRAM for recording SPVDS.
// DRAM_SPVDSHDS, bit 0~15, SPHDS. bit 16~31, SPVDS
#define W99AV_DRAM_SPVDSHDS 0x175

// ** TCH1.00-908;  Support new Video Master Mechanism.
#define         W99AV_DRAM_STC_UPDATED          0x177
//*****************************************************

//LJY1.23, LJY1.11b, added for anti-shock 
#define     W99AV_DRAM_FAST_VIDEO_THRESHOLD     0x17B
#define     W99AV_DRAM_ANTISHOCK            0x17C

//*****************************************************
//Define DM parameters
#define         W99AV_DM_CD_BSFORMAT    0x041e      //LJY1.23, for CDIF CDDA bitstream format setting
#define         W99AV_DM_CH0                    0x0430
#define         W99AV_DM_LCH                    0x0439
#define         W99AV_DM_CCH                    0x043a
#define         W99AV_DM_RCH                    0x043b
#define         W99AV_DM_LSCH                   0x043c
#define         W99AV_DM_RSCH                   0x043d
#define         W99AV_DM_LFECH                  0x043e
#define         W99AV_DM_EXTCH0                 0x0447
#define         W99AV_DM_TIME_EXTCH5            0x044f
#define         W99AV_DM_CDGDATA_OUTPUT         0x454   //LJY1.10, for CDG data ouput control
#define         W99AV_DM_HDCD_DETECT            0x047b  //Kevin0.90, 0: Normal CDDA(default); 1:HDCD
#define         W99AV_DM_LPCM_PTS0              0x0504
#define         W99AV_DM_LPCM_PTS1              0x0505
//Only for DVD LPCM. 1: perform 2 to 1 down sample. 0: not perform 2 to 1 down sample.
#define         W99AV_DM_LPCM_DOWN_SAMPLE       0x0700  // ref. technote #2 DVD LPCM down sample
// 1: UDE CDDA, where lower byte and higher byte are swapped.0: Normal CDDA. No byte swap.
#define         W99AV_DM_UDE_CDDA               0x0701  // ref. technote #2 UDE CDDA
#define         W99AV_DM_DECODE_PURECDDA        0x0705
#define         W99AV_DM_CD_DTS                 0x0706
#define         W99AV_DM_SKIP_CD_HEADER_DETECET 0x0707
#define         W99AV_DM_AVSYNCEN               0x07a7
#define         W99AV_DM_BITRATE_MP3            0x07a7  //Kevin1.24a
#define         W99AV_DM_PTS0                   0x07b1
#define         W99AV_DM_PTS1                   0x07b2
#define         W99AV_DM_PTS_FINDING            0x07b4 //0/1: disable/enable 
#define         W99AV_DM_FREQ_AC3               0x07bd
#define         W99AV_DM_MP3_FREQ_READ_FLAG     0x07d1  //Kevin1.24
#define         W99AV_DM_FREQ_MP3_LSF           0x07d7
#define         W99AV_DM_WMA_FREQ_READ_FLAG     0x0e9d   //Kevin1.22
#define         W99AV_DM_ECCEDC_FLAG            0x00ee0
#define         W99AV_DM_CHNO                   0x00ee0
#define         W99AV_DM_FREQ_MP3               0x007d0  //Kevin0.86, 28 uses 0x07a8; 908 uses 0x07d0         
#define         W99AV_DM_SVCD_DOWN_SAMPLE       0x01081
#define         W99AV_DM_FREQ_VCD               0x010bf
#define         W99AV_DM_EDC_STAT               0x01733

//Kevin1.08, AC
#define         W99AV_DM_JPEG_OR_MP3_BS_ac         0x01755 // 1->MP3 ;0->JPEG //Kevin0.84
#define         W99AV_DM_MODE_DETECTION_ac         0x0177A  // Chuan0.83a, 0: auto-detect data type, else: bypass data
#define         W99AV_DM_ENABLE_CDDA_CDG_RESEEK_ac 0x0177C // 1->enable CDG parsing and reseek process; 0->normal play ( just like that in CT9928A )
//Kevin1.08, AD
#define         W99AV_DM_JPEG_OR_MP3_BS_ad         0x0174f // 1->MP3 ;0->JPEG //Kevin0.84
#define         W99AV_DM_MODE_DETECTION_ad         0x01750  // Chuan0.83a, 0: auto-detect data type, else: bypass data
#define         W99AV_DM_ENABLE_CDDA_CDG_RESEEK_ad 0x01752 // 1->enable CDG parsing and reseek process; 0->normal play ( just like that in CT9928A )

//Kevin2.37, HDCD
#define         W99AV_DM_HDCD_OCTRL             0x0fe6   
#define         W99AV_DM_HDCD_ENABLE            0x09f5

//Kevin1.08, ProLogic 
#define         W99AV_DM_PROLOGIC_ENABLE        0x0175c // 1:enable  0:disable (If src > 2 ch, enable will be of no use)
#define         W99AV_DM_PROLOGIC_OCFG          0x00de2 
#define         W99AV_DM_PROLOGIC_OCTRL         0x00de4 //default : 0x1b0

//Kevin1.08, WMA
#define         W99AV_DM_FREQ_WMA               0x0097c
#define         W99AV_DM_WMA_TOTAL_SAMPLES      0x00b69 //WMA total samples>>3
#define         W99AV_DM_WMA_BLOCK_ALIGN        0x0088c

//++CoCo.C3-retry
#define         W99AV_DM_HEADER_MIN             0x01780
#define         W99AV_DM_HEADER_SEC             0x01781
#define         W99AV_DM_HEADER_SECTOR          0x01782


#define         W99AV_DM_JPEGBUF_LENGTH         0x01784
#define         W99AV_DM_JPEGBUF_ADR            0x01785

//LJY1.10, CDG buffer 
#define         W99AV_DM_CDGBUF_LENGTH          W99AV_DM_JPEGBUF_LENGTH
#define         W99AV_DM_CDGBUF_START_ADDR      W99AV_DM_JPEGBUF_ADR   
// wyc1.07, add new DM address for control doing CRC or not.
//Kevin1.07aMP3FF, modify
//#define         W99AV_DM_ENABLE_CRC             0x0178a
#define         W99AV_DM_MP3_FF_SPEED           0x0178a // 0:normal play 1:play 10 frames and skip 10 frames 2:play 10 frames and skip 20 frames, etc.
// Brian1.22-2, add DM to maintain audio threshold for PAUSE/STEP command
#define         W99AV_DM_PAUSE_THRESHOLD        0x0178b // DSP will skip audio buffer to threshold 0x1000 when issue PAUSE/STEP command to DSP
#define         W99AV_DM_SIBUF_ADR              0x0178d
#define         W99AV_DM_SIBUF_LENGTH           0x0178e
#define         W99AV_DM_ABUF2_LENGTH           0x0178f
#define         W99AV_DM_ABUF2_ADR              0x01790
#define         W99AV_DM_SKIP_THRESHOLD         0x01791      // ** TCH1.00-1-908; The threshold for the usage of Video Master mode
#define         W99AV_DM_C3_ERR_MAX             0x01793
#define         W99AV_DM_ECC_EN                 0x01795
#define         W99AV_DM_SECTCNTR               0x01796
#define         W99AV_DM_C3_MODE                0x01797
#define         W99AV_DM_OUTDRAMBASE            0x01798
#define         W99AV_DM_AFTER_SOFT_RESET       0x01799
#define         W99AV_DM_PACKET_WPTR            0x017a4
#define         W99AV_DM_PACKET_RPTR            0x017a5
#define         W99AV_DM_SKIP_FRAME             0x017b0
//LJY1.23, LJY1.11b-2, added for anti-shock
#define         W99AV_DM_AUDIO_SKIP_THRESHOLD_REFERENCED       0x178b
#define         W99AV_DM_PCMBUF_ADR             0x017bf
#define         W99AV_DM_ABUF_ADR               0x017c6
#define         W99AV_DM_ABUF_LENGTH            0x017c7
//Kevin0.81, add
#define         W99AV_DM_ABUF2_ADR              0x01790
#define         W99AV_DM_ABUF2_LENGTH           0x0178f

#define         W99AV_DM_CRC_ENABLE             0x017c8
#define         W99AV_DM_ERROR_CONCEALMENT      0x017c9
#define         W99AV_DM_DIV_CLK                0x017ca
#define         W99AV_DM_FS88                   0x017cb
#define         W99AV_DM_FS96                   0x017cc
#define         W99AV_DM_FS176                  0x017cd
#define         W99AV_DM_FS192                  0x017ce
#define         W99AV_DM_FS32                   0x017cf
#define         W99AV_DM_FS44                   0x017d0
#define         W99AV_DM_FS48                   0x017d1
#define         W99AV_DM_QPARA0                 0x017d3
#define         W99AV_DM_QPARA1                 0x017d4
#define         W99AV_DM_FRAME_COUNT            0x017d5
#define         W99AV_DM_MUTE_COUNTER           0x017d9 //mute counter
#define         W99AV_DM_LPCM_FREQ              0x017da
#define         W99AV_DM_ARST                   0x017db
#define         W99AV_DM_MIC_CLAMPING_FACTOR    0x017dc
#define         W99AV_DM_PCMBUF2_ADR            0x017dd
#define         W99AV_DM_DOWNMIX_MODE           0x017df //0: LoRo; otherwise: LtRt
#define         W99AV_DM_PROL_SUR_DELAY         0x017eb //mode 0 & 3: 1; otherwise 0
#define         W99AV_DM_VIDEO_FRAME_TIME       0x17ed  //Kevin1.24
#define         W99AV_DM_AUDIO_SKIP_THRESHOLD   0x17ee  //LJY1.24, DSP uses min(DM[0x17ee], A1-Rem) as the skip threshold for Pause command
#define         W99AV_DM_SCMS                   0x017f0
#define         W99AV_DM_CONTROL_6CH            0x17f3
#define         W99AV_DM_UPSAMPLE_CONTROL       0x17f4
#define         W99AV_DM_CURRENT_FREQ           0x017f5
#define         W99AV_DM_MPEG_SAMPLE_NUM        0x017f6
#define         W99AV_DM_MIC_EN                 0x017ff //0/1: disable/enable mixing MIC input to audio decoded data (Note: mix will decrease audio by -3dB to avoid saturation) 
#define         W99AV_DM_ECHO_CR0               0x0ec00
#define         W99AV_DM_ECHO_CR1               0x0ed00
#define         W99AV_DM_ECHO_OUT               0x0ee00
#define         W99AV_DM_PCM_SCALE              0x0fa00
#define         W99AV_DM_AUDIO2_REMAIN          0x0f901
#define         W99AV_DM_MIC_WS_DIV             0x0ffc5 
#define         W99AV_DM_DIV_CLK_REG            0x0ffd9

// ** TCH1.00-908; begin... 
// For Ac3 and DVD DTS, firmware needs to initialize dm(0x1789)=1 and dm(0x17d2)=0.
// For CD-DTS, firmware needs to initialize dm(0x7a7)=0 and dm(0x17d2)=1.
#define         W99AV_DM_VIDEO_MASTER           0x7a7  
#define         W99AV_DM_RISC_UPDATE_STC        0x17d2
// ** TCH1.00-908; end... 

// define this to disable MIC control, i.e. we can not mute/de-mute the MIC by F/W
//#define       DISABLE_MIC_MUTE_CONTROL

//CoCo.jpeg
#define         W99AV_DM_JPEG_REAL_HEIGHT       0x0001
#define         W99AV_DM_JPEG_REAL_WIDTH        0x0002
#define         W99AV_DM_JPEG_SAMPLING_FACTOR_Y 0x0003
#define         W99AV_DM_JPEG_SAMPLING_FACTOR_U 0x0004
#define         W99AV_DM_JPEG_SAMPLING_FACTOR_V 0x0005
#define         W99AV_DM_JPEG_STATUS            0x0090
#define         W99AV_DM_JPEG_SHOW              0x0091
#define         W99AV_DM_JPEG_DOWNSAMPLE        0x0092
#define         W99AV_DM_JPEG_CMD               0x0093
#define         W99AV_DM_JPEG_DECODE_STATUS     0x0100  // LLY.276p-4, 0x0094
#define         W99AV_DM_JPEG_WIDTH             0x00A1
#define         W99AV_DM_JPEG_HEIGHT            0x00A2
#define         W99AV_DM_JPEG_DISPLAY_WIDTH     0x00A3
#define         W99AV_DM_JPEG_DISPLAY_HEIGHT    0x00A4
#define         W99AV_DM_JPEG_CROP_WIDTH        0x00A5
#define         W99AV_DM_JPEG_CROP_HEIGHT       0x00A6

#define         W99AV_DM_DEST_ADDR              0x0000  // Chuan1.20, Add
#define         W99AV_DM_GZIP_STATUS            0x0001  // Chuan1.20, Add
#define         W99AV_DM_STEPSIZE	                0x6     //Chuan2.27     
//*****************************************************


#endif //__RAMDEF_H__

⌨️ 快捷键说明

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