📄 hw_at2041_reg.h
字号:
/* set tabstop=4 *//******************************************************************************** * * * Copyright(C) 2002 Penta-Micro * * * * ALL RIGHT RESERVED * * * * This software is the property of Penta-Micro and is furnished under * * license by Penta-Micro. This software may be used only in accordance * * with the terms of said license. This copyright notice may not be * * removed, modified or obliterated without the prior written permission * * of Penta-Micro. * * * * This software may not be copyed, transmitted, provided to or otherwise * * made available to any other person, company, corporation or other entity * * except as specified in the terms of said license. * * * * No right, title, ownership or other interest in the software is hereby * * granted or transferred. * * * * The information contained herein is subject to change without notice and * * should not be construed as a commitment by Penta-Micro. * * * ******************************************************************************** MODULE NAME: AT2041_REG.H DESCRIPTION: This Module contains definition for AT2041 REG define. ...............................................................................*/ #ifndef __AT2041_REG__#define __AT2041_REG__#define ID_FLAG 0x8000 // Rx ID flag#define R_FLAG 0x0000 // Read flag#define W_FLAG 0x0001 // Write flag//#define M_FLAG 0x0001 // Message flag/* group ID */#define GID_GLB 0x0 // global#define GID_ENC 0x1 // encoder#define GID_DEC 0x2 // decoder#define GID_OSD 0x3 // OSD#define GID_EV 0x4 // encoder video#define GID_EVC 0x5 // encoder video channel#define GID_EA 0x6 // encoder audio#define GID_EAC 0x7 // encoder audio channel#define GID_DV 0x8 // decoder video#define GID_DVC 0x9 // decoder video channel#define GID_DA 0xA // decoder audio/* global PID */#define PID_GLB_ACK 0x01 // ack for Tx#define PID_GLB_OP 0x02 // operation mode#define PID_GLB_SDR_SIZE 0x03 // sdram size#define PID_GLB_VID_SIZE 0x04 // video size#define PID_GLB_CH_SIZE 0x05 // channel size#define PID_GLB_GOPM_SIZE 0x06 // GOPM size#define PID_GLB_ENCB_SIZE 0x07 // encoder buffer size#define PID_GLB_DECB_SIZE 0x08 // encoder buffer size#define PID_GLB_SDR_ALLOC 0x09 // encoder buffer size// swpark#define PID_GLB_GIO_MODE 0x12 // set GIO MODE//...#define PID_GLB_HIF_CTRL 0x01 // host interface control#define PID_GLB_SLEEP 0x02 // enter sleep mode//...#define PID_GLB_DIR_A 0x3E // direct access address#define PID_GLB_DIR_D 0x3F // direct access data/* encoder PID */#define PID_ENC_ACK 0x01 // ack for "output data ready message"#define PID_ENC_START 0x02 // encoder start#define PID_ENC_STOP 0x03 // encoder stop#define PID_ENC_STR_FMT 0x04 // output stream format#define PID_ENC_DMAX 0x05 // maximum output data size#define PID_ENC_DATA_RDY_ACK_MODE 0x31/* encoder video PID */#define PID_EV_FMT 0x01 // video input format#define PID_EV_CLK_INV 0x02 // video input clock inversion#define PID_EV_SYNC_M 0x03 // video input sync mode#define PID_EV_VOFF_M 0x04 // video input vertivcal offset mode#define PID_EV_VOFF_V 0x05 // video input vertivcal offset value#define PID_EV_FSYNC_M 0x06 // video input field sync mode#define PID_EV_FSYNC_P 0x07 // video input field sync parameters#define PID_EV_SYNC_POL 0x08 // video input sync polarity#define PID_EV_DATA_SAT 0x09 // video input data saturation value#define PID_EV_PRE_PROC 0x0A // video input pre-processing#define PID_EV_SHR 0x0B // video input shift right#define PID_EV_CID_IF 0x0C // channel ID Interface mode#define PID_EV_WM_EN 0x0D // watermark enable#define PID_EV_WM_LEVEL 0x0E // watermark level#define PID_EV_WM_KEY 0x0F // watermark key#define PID_EV_WM_UPDATA 0x10 // watermark key update#define PID_EV_RP_SELECT 0x11 // reference picture selection//...#define PID_EV_TC 0x20 // time code#define PID_EV_MP12_IQMAT 0x21 // mpeg-1/2 intra Q matrix#define PID_EV_MP12_NQMAT 0x22 // mpeg-1/2 non-intra Q matrix#define PID_EV_MP4_IQMAT 0x23 // mpeg-4/H.263 intra Q matrix#define PID_EV_MP4_NQMAT 0x24 // mpeg-4/H.263 non-intra Q matrix/* encoder video channel PID */#define PID_EVC_RESTART 0x01 // restart#define PID_EVC_PAUSE 0x02 // pause#define PID_EVC_STD 0x03 // standard#define PID_EVC_RC_MODE 0x04 // rate control mode#define PID_EVC_FIX_Q 0x05 // fixed Q value#define PID_EVC_RC_PARM 0x06 // rate control parameters#define PID_EVC_GOP 0x07 // GOP structure#define PID_EVC_FRC_I 0x08 // force I#define PID_EVC_RESYNC_M 0x09 // resync mode#define PID_EVC_RESYNC_I 0x0A // resync interval#define PID_EVC_MPEG_PARM 0x0B // mpeg parameters//...#define PID_EVC_PHY_CID 0x20 // physical channel ID#define PID_EVC_VLOSS_M 0x21 // Video loss recoding mode#define PID_EVC_VSCL_M 0x22 // vertical scale mode#define PID_EVC_REC_RGN 0x23 // recoding region#define PID_EVC_FPS_CTRL 0x24 // frame rate control#define PID_EVC_MD_MODE 0x25 // motion detection mode#define PID_EVC_MD_PARM 0x26 // motion detection parameters#define PID_EVC_MD_AREA 0x27 // motion detection area bitmap/* encoder audio PID */#define PID_EA_STD 0x01 // audio encoding standard#define PID_EA_CH_SIZE 0x02 // audio input channel size#define PID_EA_FMT 0x03 // audio input format#define PID_EA_CLK_INV 0x04 // audio clock inversion#define PID_EA_IF_MODE 0x05 // audio interface mode#define PID_EA_FSYNC_WIDTH 0x06 // audio frame sync width/* encoder audio channel PID */#define PID_EAC_RESTART 0x01 // restart#define PID_EAC_PAUSE 0x02 // pause#define PID_EAC_PHY_CID 0x03 // physical channel ID/* decoder PID */#define PID_DEC_ACK 0x01 // ack for "data request message"#define PID_DEC_START 0x02 // decoder start#define PID_DEC_STOP 0x03 // encoder stop#define PID_DEC_RESUME 0x04 // encoder resume#define PID_DEC_PAUSE 0x05 // encoder pause#define PID_DEC_STR_FMT 0x06 // input stream format#define PID_DEC_SLOCK_NUM 0x07 // sync lock counting number#define PID_DEC_ISB0_EN 0x08 // input stream buffer 0 enable#define PID_DEC_ISB1_EN 0x09 // input stream buffer 1 enable#define PID_DEC_ISB2_EN 0x0A // input stream buffer 2 enable#define PID_DEC_ISB3_EN 0x0B // input stream buffer 3 enable#define PID_DEC_ISB0_CTRL 0x0C // input stream buffer 0 control parameters#define PID_DEC_ISB1_CTRL 0x0D // input stream buffer 1 control parameters#define PID_DEC_ISB2_CTRL 0x0E // input stream buffer 2 control parameters#define PID_DEC_ISB3_CTRL 0x0F // input stream buffer 3 control parameters#define PID_DEC_MODE 0x10 // decoding mode/* decoder video PID */#define PID_DV_FMT 0x01 // output video format#define PID_DV_CLK_INV 0x02 // output video clock inversion#define PID_DV_SLAVE 0x03 // output video slave mode#define PID_DV_VOFF 0x04 // output video vertical offset#define PID_DV_FSYNC_M 0x05 // output video field sync mode#define PID_DV_FSYNC_P 0x06 // output video field sync parameter#define PID_DV_HSYNC_CTRL 0x07 // output video horizontal sync control parameter#define PID_DV_VSYNC_CTRL 0x08 // output video vertical sync control parameter#define PID_DV_FSYNC_CTRL 0x09 // output video field sync control parameter#define PID_DV_SYNC_POL 0x0A // output video sync polarity#define PID_DV_DATA_SAT 0x0B // output video data saturation//...#define PID_DV_ZOOM_IN 0x10 // x2 zoom-in#define PID_DV_ZOOM_OFF 0x11 // partial display offset, zoom offset#define PID_DV_DINT_EN 0x12 // deinterlace enable#define PID_DV_FLD_RPT 0x13 // field repeat enable#define PID_DV_VBI_MODE 0x14 // VBI encoding mode#define PID_DV_COLOR_BAR 0x15 // color bar enable#define PID_DV_BL_EN 0x16 // border line enable#define PID_DV_BL_COLOR 0x17 // border line color#define PID_DV_BC_EN 0x18 // background color enable#define PID_DV_BC_COLOR 0x19 // background color#define PID_DV_FG_WINDOW 0x1A // forground window#define PID_DV_BI_DN_STT 0x1B // background image download start#define PID_DV_BI_DN_FIN 0x1C // background image download finish#define PID_DV_BI_CAP 0x1D // background image capture#define PID_DV_BI_MODE 0x1E // background image mode#define PID_DV_BI_MCID 0x1F // background image monitor channel ID// 2004.10.21 pentamicro#define PID_DV_BC_COLOR_MODE1 0x20 // background color mode1#if 1//new cmd add#define PID_DV_APLY_PRM 0x22 // apply next param #endif//...#define PID_DV_STEP 0x30 // background image monitor channel ID/* decoder video channel PID */#define PID_DVC_STD 0x01 // standard#define PID_DVC_STR_ID 0x02 // stream ID#define PID_DVC_FREEZE 0x03 // freeze#define PID_DVC_DISP 0x04 // display on / off// #define PID_DVC_DISP_PRIORITY 0x05 // display priority//...#define PID_DVC_SCL_DN 0x10 // scale down mode ( current not use )#define PID_DVC_MB_OFF 0x11 // display MB offset#define PID_DVC_NXT_MB_OFF 0x12 // horizontal 2-pel unit offset#if 1//new cmd add#define PID_DVC_DISP_MODE 0x13 // display mode#define PID_DVC_NXT_DISP_MODE 0x14 // next display mode#endif//...#define PID_DVC_EQ_ON 0x20 // EQ on / off#define PID_DVC_EQ_PARM 0x21 // EQ parameters#define PID_DVC_ENH_ON 0x22 // enhancement on / off#define PID_DVC_BRIGHT 0x23 // brightness control/* decoder audio PID */#define PID_DA_STD 0x01 // audio encoding standard#define PID_DA_STR_ID 0x02 // stream ID#define PID_DA_FMT 0x03 // audio input format#define PID_DA_CLK_INV 0x04 // audio clock inversion#define PID_DA_IF_MODE 0x05 // audio interface mode#define PID_DA_FSYNC_WIDTH 0x06 // audio frame sync width#define PID_DA_CID 0x07 /* OSD PID */#define PID_OSD_ON 0x01 // OSD on / off control#define PID_OSD_PALETTE 0x02 // OSD color palette#define PID_OSD_DISPLAY_FONT 0x12 // display OSD FONT#define PID_OSD_FILL_SCREEN_FONT 0x13 // fill screen font#define PID_OSD_FILL_LINE_FONT 0x14 // fill line font#define PID_OSD_LOAD_FONT 0x20 // OSD load font data#define PID_OSD_SET_FONT 0x21 // OSD set font#define PID_OSD_DISP_STR 0x22 // OSD display string#define PID_OSD_LOAD_IMG 0x24 // OSD load image data#define PID_OSD_DISP_IMG 0x25 // OSD display image data#define PID_OSD_SAVE_IMG 0x26 // OSD save image#define PID_OSD_RESTORE_IMG 0x27 // OSD restore image#define PID_OSD_FILL_RECT 0x28 // OSD fill rectangular/* global MID */#define MID_GLB_RDY 0x01 // global ready message/* encoder MID */#define MID_ENC_DRDY 0x01 // encoder data ready message/* decoder MID */#define MID_DEC_DREQ 0x01 // decoder data request message#define RxID(GID,CID,PID,WF) (ID_FLAG | (GID << 11) | (CID << 7) | (PID << 1) | WF)#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -