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

📄 video_hw.h

📁 最新MTK手机软件源码
💻 H
📖 第 1 页 / 共 3 页
字号:
   #define MP4_VOP_STRUC2_START_YPOS_BITCNT  8
   #define MP4_VOP_STRUC2_MBCOUNT_BITCNT	   16
   
   /*MP4_VOP_STRUC3*/
   #define MP4_VOP_STRUC3_CURR_XPOS_MASK     0x001f    
   #define MP4_VOP_STRUC3_CURR_YPOS_MASK     0x1f00    
   #define MP4_VOP_STRUC3_MBCOUNT_MASK	      0x01ff0000
   #define MP4_VOP_STRUC3_CURR_XPOS_BITCNT   0
   #define MP4_VOP_STRUC3_CURR_YPOS_BITCNT   8
   #define MP4_VOP_STRUC3_MBCOUNT_BITCNT	   16
   
   /*MP4_MB_STRUC0*/
   #define MP4_MB_STRUC0_CODEC	            0x0001
   #define MP4_MB_STRUC0_TYPE_MASK           0x00e0
   #define MP4_MB_STRUC0_PATTERN_MASK	      0x03f0
   #define MP4_MB_STRUC0_DQUANT_MASK	      0x0c00
   #define MP4_MB_STRUC0_AC		            0x1000
   #define MP4_MB_STRUC0_DCVLC_MASK	         0x2000
   #define MP4_MB_STRUC0_QUANTIZER_MASK	   0x0007c000
   #define MP4_MB_STRUC0_CODEC_BITCNT	      0
   #define MP4_MB_STRUC0_TYPE_BITCNT	      1
   #define MP4_MB_STRUC0_PATTERN_BITCNT	   5
   #define MP4_MB_STRUC0_DQUANT_BITCNT	      10
   #define MP4_MB_STRUC0_AC_BITCNT		      12
   #define MP4_MB_STRUC0_DCVLC_BITCNT	      13
   #define MP4_MB_STRUC0_QUANTIZER_BITCNT	   14
   
   /*MP4_VLC_COMD*/
   #define MP4_VLC_COMD_START	               0x0001
   #define MP4_VLC_COMD_STOP	               0x0002
   #define MP4_VLC_COMD_FLUSH	               0x0004
   #define MP4_VLC_COMD_RELOAD	            0x0008
   
   /*MP4_VLC_LIMIT*/
   #define MP4_VLC_LIMIT_MASK                0x0000ffff

#else /* !(MT6219, MT6226, MT6226M, MT6227), MT6228, MT6229, MT6230 */

   #define MP4_CODEC_COMD                    (MP4_base+0x0) /*RW*/
   #define MP4_VLC_DMA_COMD                  (MP4_base+0x4) /*WO*/
   /*ENC register*/
   #define MP4_ENC_CODEC_CONF                (MP4_base+0x100) /*RW*/
   #define MP4_ENC_STS                       (MP4_base+0x104) /*RO*/
   #define MP4_ENC_IRQ_MASK                  (MP4_base+0x108) /*RW*/
   #define MP4_ENC_IRQ_STS                   (MP4_base+0x10c) /*RO*/
   #define MP4_ENC_IRQ_ACK			            (MP4_base+0x110) /*WC*/
   #define MP4_ENC_CONF			               (MP4_base+0x114) /*R/W*/
   #define MP4_ENC_CODEC_BASE		            (MP4_base+0x120) /*R/W*/
   #define MP4_ENC_VOP_ADDR	               (MP4_base+0x124) /*RW*/
   #define MP4_ENC_REF_ADDR			         (MP4_base+0x128) /*RW*/
   #define MP4_ENC_REC_ADDR			         (MP4_base+0x12C) /*RW*/
   #define MP4_ENC_STORE_ADDR			         (MP4_base+0x130) /*RW*/
   #define MP4_ENC_DACP_ADDR			         (MP4_base+0x134) /*RW*/
   #define MP4_ENC_MVP_ADDR			         (MP4_base+0x138) /*RW, new*/
   #define MP4_ENC_VOP_STRUC0                (MP4_base+0x140) /*R/W*/
   #define MP4_ENC_VOP_STRUC1                (MP4_base+0x144) /*R/W*/
   #define MP4_ENC_VOP_STRUC2                (MP4_base+0x148) /*R/W*/
   #define MP4_ENC_VOP_STRUC3                (MP4_base+0x14c) /*R/W*/
   #define MP4_ENC_MB_STRUC0                 (MP4_base+0x150) /*R/W*/
   #define MP4_ENC_VLC_ADDR                  (MP4_base+0x160) /*WO*/
   #define MP4_ENC_VLC_BIT                   (MP4_base+0x164) /*WO*/
   #define MP4_ENC_VLC_LIMIT                 (MP4_base+0x168) /*R/W*/
   #define MP4_ENC_VLC_WORD                  (MP4_base+0x16c) /*RO*/
   #define MP4_ENC_VLC_BITCNT                (MP4_base+0x170) /*RO*/
   #define MP4_ENC_RESYNC_CONF0              (MP4_base+0x180) /*RO*/
   #define MP4_ENC_RESYNC_CONF1              (MP4_base+0x184) /*RO*/
   #define MP4_ENC_TIME_BASE                 (MP4_base+0x188) /*RO*/
   /*DEC register*/
   #define MP4_DEC_CODEC_CONF                (MP4_base+0x200) /*RW*/
   #define MP4_DEC_STS                       (MP4_base+0x204) /*RO*/
   #define MP4_DEC_IRQ_MASK                  (MP4_base+0x208) /*RW*/
   #define MP4_DEC_IRQ_STS                   (MP4_base+0x20c) /*RO*/
   #define MP4_DEC_IRQ_ACK			            (MP4_base+0x210) /*WC*/
   #define MP4_DEC_CODEC_BASE		            (MP4_base+0x220) /*R/W*/
   #define MP4_DEC_REF_ADDR			         (MP4_base+0x224) /*RW*/
   #define MP4_DEC_REC_ADDR			         (MP4_base+0x228) /*RW*/
   #define MP4_DEC_DEBLOCK_ADDR		         (MP4_base+0x22c) /*RW*/
   #define MP4_DEC_STORE_ADDR			         (MP4_base+0x230) /*RW*/
   #define MP4_DEC_DACP_ADDR			         (MP4_base+0x234) /*RW*/
   #define MP4_DEC_MVP_ADDR			         (MP4_base+0x238) /*RW, new*/
   #define MP4_DEC_VOP_STRUC0                (MP4_base+0x240) /*R/W*/
   #define MP4_DEC_VOP_STRUC1                (MP4_base+0x244) /*R/W*/
   #define MP4_DEC_VOP_STRUC2                (MP4_base+0x248) /*R/W*/
   #define MP4_DEC_MB_STRUC0                 (MP4_base+0x24c) /*R/W*/
   #define MP4_DEC_VLC_ADDR                  (MP4_base+0x260) /*WO*/
   #define MP4_DEC_VLC_BIT                   (MP4_base+0x264) /*WO*/
   #define MP4_DEC_VLC_LIMIT                 (MP4_base+0x268) /*R/W*/
   #define MP4_DEC_VLC_WORD                  (MP4_base+0x26c) /*RO*/
   #define MP4_DEC_VLC_BITCNT                (MP4_base+0x270) /*RO*/
   /*Core*/
   #define MP4_CORE_CONF                     (MP4_base+0x300) /*RW*/
   #define MP4_CORE_CODEC_CONF               (MP4_base+0x304) /*RW, ENC*/
   #define MP4_CORE_DUPLEX_STS               (MP4_base+0x308) /*RO*/
   #define MP4_CORE_CODEC_BASE		         (MP4_base+0x310) /*R/W*/
   #define MP4_CORE_VOP_ADDR	               (MP4_base+0x314) /*RW*/
   #define MP4_CORE_REF_ADDR			         (MP4_base+0x318) /*RW*/
   #define MP4_CORE_REC_ADDR			         (MP4_base+0x31c) /*RW*/
   #define MP4_CORE_DEBLOCK_ADDR		         (MP4_base+0x320) /*RW*/
   #define MP4_CORE_STORE_ADDR		         (MP4_base+0x324) /*RW*/
   #define MP4_CORE_DACP_ADDR			         (MP4_base+0x328) /*RW*/
   #define MP4_CORE_MVP_ADDR			         (MP4_base+0x32c) /*RW, new*/
   #define MP4_CORE_VOP_STRUC0               (MP4_base+0x330) /*R/W*/
   #define MP4_CORE_VOP_STRUC1               (MP4_base+0x334) /*R/W*/
   #define MP4_CORE_VOP_STRUC2               (MP4_base+0x338) /*R/W*/
   #define MP4_CORE_VOP_STRUC3               (MP4_base+0x33c) /*R/W*/
   #define MP4_CORE_MB_STRUC0                (MP4_base+0x340) /*R/W*/
   #define MP4_CORE_MB_STRUC1                (MP4_base+0x344) /*R/W*/
   #define MP4_CORE_MB_STRUC2                (MP4_base+0x348) /*R/W*/
   #define MP4_CORE_MB_STRUC3                (MP4_base+0x34c) /*R/W*/
   #define MP4_CORE_MB_STRUC4                (MP4_base+0x350) /*R/W*/
   #define MP4_CORE_MB_STRUC5                (MP4_base+0x354) /*R/W*/
   #define MP4_CORE_MB_STRUC6                (MP4_base+0x358) /*R/W*/
   #define MP4_CORE_MB_STRUC7                (MP4_base+0x35c) /*R/W*/
   #define MP4_CORE_VLC_STS                  (MP4_base+0x370) /*RO*/
   #define MP4_CORE_VLE_STS                  (MP4_base+0x374) /*RO*/
   #define MP4_CORE_VLC_ADDR                 (MP4_base+0x378) /*WO*/
   #define MP4_CORE_VLC_BIT                  (MP4_base+0x37c) /*WO*/
   #define MP4_CORE_VLC_LIMIT                (MP4_base+0x380) /*R/W*/
   #define MP4_CORE_VLC_WORD                 (MP4_base+0x384) /*RO*/
   #define MP4_CORE_VLC_BITCNT               (MP4_base+0x388) /*RO*/
   #define MP4_CORE_SVLD_COMD                (MP4_base+0x400)
   #define MP4_CORE_SVLD_BITCNT              (MP4_base+0x404)
   #define MP4_CORE_SVLD_MARK                (MP4_base+0x408)
   #define MP4_CORE_SVLD_CODE                (MP4_base+0x40C)
   #define MP4_CORE_SAD_Y				         (MP4_base+0x500)
   #define MP4_CORE_SAD_U		               (MP4_base+0x504)
   #define MP4_CORE_SAD_V				         (MP4_base+0x508)
   #define MP4_CORE_RESYNC_CONF0             (MP4_base+0x600) /*R/W*/
   #define MP4_CORE_RESYNC_CONF1             (MP4_base+0x604) /*R/W*/
   #define MP4_CORE_TIME_BASE                (MP4_base+0x60c) /*R/W*/
   
   /*Common, MP4_CODEC_COMD*/
   #define MP4_CODEC_COMD_CORE_RST                    0x0001
   #define MP4_CODEC_COMD_ENC_RST                     0x0002
   #define MP4_CODEC_COMD_DEC_RST                     0x0004
   #define MP4_CODEC_COMD_ENC_START                   0x0008
   #define MP4_CODEC_COMD_DEC_START                   0x0010
   /*Common, MP4_VLC_DMA_COMD*/
   #define MP4_VLC_DMA_COMD_STOP                      0x0001
   #define MP4_VLC_DMA_COMD_RELOAD                    0x0002
   
   /*Encoder, MP4_ENC_CODEC_CONF*/
   #define MP4_ENC_CODEC_CONF_ENC		               0x0001
   #define MP4_ENC_CODEC_CONF_IRQ		               0x0002
   #define MP4_ENC_CODEC_CONF_DCT		               0x0004
   #define MP4_ENC_CODEC_CONF_VPGOB	                  0x0008
   #define MP4_ENC_CODEC_CONF_STEP	                  0x0010
   #define MP4_ENC_CODEC_CONF_STEP_MASK               0x00f0
   #define MP4_ENC_CODEC_CONF_HALF	                  0x0100
   #define MP4_ENC_CODEC_CONF_FME		               0x0200
   #define MP4_ENC_CODEC_CONF_DQUAN	                  0x0400
   #define MP4_ENC_CODEC_CONF_PMV                     0x0800
   #define MP4_ENC_CODEC_CONF_MC_BURST                0x1000
   #define MP4_ENC_CODEC_CONF_ME_BURST                0x2000
   #define MP4_ENC_CODEC_CONF_CHECK_TV                0x10000
   #define MP4_ENC_CODEC_CONF_STEP_BITCNT             4
   #define MP4_ENC_CODEC_CONF_STEP_COUNT              2
   #define MP4_ENC_CODEC_CONF_STEP_VALUE              (MP4_ENC_CODEC_CONF_STEP_COUNT << MP4_ENC_CODEC_CONF_STEP_BITCNT)
   /*Encoder, MP4_ENC_IRQ_MASK*/
   #define MP4_ENC_IRQ_MASK_ENC	                     0x0001
   #define MP4_ENC_IRQ_MASK_BLOCK	                  0x0002
   #define MP4_ENC_IRQ_MASK_PACK    	               0x0004
   #define MP4_ENC_IRQ_MASK_DMA	                     0x0008
   /*Encoder, MP4_ENC_IRQ_STS*/
   #define MP4_ENC_IRQ_STS_ENC	                     0x0001
   #define MP4_ENC_IRQ_STS_BLOCK	                     0x0002
   #define MP4_ENC_IRQ_STS_PACK    	                  0x0004
   #define MP4_ENC_IRQ_STS_DMA	                     0x0008
   /*Encoder, MP4_ENC_IRQ_ACK*/
   #define MP4_ENC_IRQ_ACK_ENC	                     0x0001
   #define MP4_ENC_IRQ_ACK_BLOCK	                     0x0002
   #define MP4_ENC_IRQ_ACK_PACK    	                  0x0004
   #define MP4_ENC_IRQ_ACK_DMA	                     0x0008
   /*Encoder, MP4_ENC_CONF*/
   #define MP4_ENC_CONF_SKIP_MASK                     0x0000003f
   #define MP4_ENC_CONF_INTRA_MASK                    0x00003f00
   #define MP4_ENC_CONF_PACK	                        0x00010000
   #define MP4_ENC_CONF_PCAKCNT_MASK	               0x07fe0000
   #define MP4_ENC_CONF_SKIP_BITCNT                   0
   #define MP4_ENC_CONF_INTRA_BITCNT                  8
   /*Encoder, MP4_ENC_VOP_STRUC0*/ /*MP4_VOP_STRUC0_XXX = (1 << MP4_VOP_STRUC0_XXX_BITCNT)*/
   #define MP4_ENC_VOP_STRUC0_TYPE	                  0x0001
   #define MP4_ENC_VOP_STRUC0_DATA	                  0x0002
   #define MP4_ENC_VOP_STRUC0_RVLC      	            0x0004
   #define MP4_ENC_VOP_STRUC0_SHORT                   0x0010
   #define MP4_ENC_VOP_STRUC0_FCODE_MASK              0x00e0
   #define MP4_ENC_VOP_STRUC0_QUANT_MASK              0x1f00
   #define MP4_ENC_VOP_STRUC0_VLCTHR_MASK             0xe000
   #define MP4_ENC_VOP_STRUC0_ROUND	                  0x00010000
   #define MP4_ENC_VOP_STRUC0_TYPE_BITCNT	            0
   #define MP4_ENC_VOP_STRUC0_DATA_BITCNT	            1
   #define MP4_ENC_VOP_STRUC0_RVLC_BITCNT	            2
   #define MP4_ENC_VOP_STRUC0_SHORT_BITCNT	         4
   #define MP4_ENC_VOP_STRUC0_FCODE_BITCNT	         5
   #define MP4_ENC_VOP_STRUC0_QUANT_BITCNT	         8
   #define MP4_ENC_VOP_STRUC0_VLCTHR_BITCNT	         13
   #define MP4_ENC_VOP_STRUC0_ROUND_BITCNT	         16
   /*Encoder, MP4_ENC_VOP_STRUC1*/
   #define MP4_ENC_VOP_STRUC1_XLIMIT_MASK	            0x001f
   #define MP4_ENC_VOP_STRUC1_YLIMIT_MASK	            0x1f00
   #define MP4_ENC_VOP_STRUC1_MBLENGTH_MASK	         0x000f0000
   #define MP4_ENC_VOP_STRUC1_HEADERBIT_MASK          0x1f000000
   #define MP4_ENC_VOP_STRUC1_XLIMIT_BITCNT	         0
   #define MP4_ENC_VOP_STRUC1_YLIMIT_BITCNT	         8
   #define MP4_ENC_VOP_STRUC1_MBLENGTH_BITCNT	      16
   #define MP4_ENC_VOP_STRUC1_HEADERBIT_BITCNT        24
   /*Encoder, MP4_ENC_VOP_STRUC2*/
   #define MP4_ENC_VOP_STRUC2_START_XPOS_MASK         0x001f
   #define MP4_ENC_VOP_STRUC2_START_YPOS_MASK         0x1f00
   #define MP4_ENC_VOP_STRUC2_MBCOUNT_MASK	         0x01ff0000
   #define MP4_ENC_VOP_STRUC2_START_XPOS_BITCNT       0
   #define MP4_ENC_VOP_STRUC2_START_YPOS_BITCNT       8
   #define MP4_ENC_VOP_STRUC2_MBCOUNT_BITCNT	         16
   /*Encoder, MP4_ENC_VOP_STRUC3*/
   #define MP4_ENC_VOP_STRUC3_CURR_XPOS_MASK          0x001f    
   #define MP4_ENC_VOP_STRUC3_CURR_YPOS_MASK          0x1f00    
   #define MP4_ENC_VOP_STRUC3_MBCOUNT_MASK	         0x01ff0000

⌨️ 快捷键说明

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