unichrome_regs.h

来自「君正早期ucos系统(只有早期的才不没有打包成库),MPLAYER,文件系统,图」· C头文件 代码 · 共 636 行 · 第 1/2 页

H
636
字号
#define V3_FIFO_DEPTH32         0x0000001F#define V3_FIFO_DEPTH48         0x0000002F#define V3_FIFO_DEPTH64         0x0000003F   #define V3_FIFO_THRESHOLD8      0x00000800#define V3_FIFO_THRESHOLD12     0x00000C00#define V3_FIFO_THRESHOLD16     0x00001000#define V3_FIFO_THRESHOLD24     0x00001800#define V3_FIFO_THRESHOLD32     0x00002000#define V3_FIFO_THRESHOLD40     0x00002800  #define V3_FIFO_THRESHOLD48     0x00003000   #define V3_FIFO_THRESHOLD56     0x00003800   #define V3_FIFO_THRESHOLD61     0x00003D00   #define V3_FIFO_PRETHRESHOLD10  0x0000000A#define V3_FIFO_PRETHRESHOLD12  0x0000000C#define V3_FIFO_PRETHRESHOLD29  0x0000001d#define V3_FIFO_PRETHRESHOLD40  0x00000028  #define V3_FIFO_PRETHRESHOLD44  0x0000002c#define V3_FIFO_PRETHRESHOLD56  0x00000038   #define V3_FIFO_PRETHRESHOLD61  0x0000003D   #define V3_FIFO_MASK            0x0000007F#define ALPHA_FIFO_DEPTH8       0x00070000#define ALPHA_FIFO_THRESHOLD4   0x04000000#define ALPHA_FIFO_MASK         0xffff0000#define ALPHA_FIFO_PRETHRESHOLD4 0x00040000/* IA2 */#define ColorSpaceValue_1       0x140020f2#define ColorSpaceValue_2       0x0a0a2c00#define ColorSpaceValue_1_3123C0      0x13000DED#define ColorSpaceValue_2_3123C0      0x13171000/* For TV setting */#define ColorSpaceValue_1TV     0x140020f2#define ColorSpaceValue_2TV     0x0a0a2c00/* V_COMPOSE_MODE               0x298 */#define SELECT_VIDEO_IF_COLOR_KEY               0x00000001  /* select video if (color key),otherwise select graphics */#define SELECT_VIDEO3_IF_COLOR_KEY              0x00000020  /* For 3123C0, select video3 if (color key),otherwise select graphics */#define SELECT_VIDEO_IF_CHROMA_KEY              0x00000002  /* 0x0000000a  //select video if (chroma key ),otherwise select graphics */#define ALWAYS_SELECT_VIDEO                     0x00000000  /* always select video,Chroma key and Color key disable */#define COMPOSE_V1_V3           0x00000000  /* V1 on top of V3 */#define COMPOSE_V3_V1           0x00100000  /* V3 on top of V1 */#define COMPOSE_V1_TOP          0x00000000#define COMPOSE_V3_TOP          0x00100000#define V1_COMMAND_FIRE         0x80000000  /* V1 commands fire */#define V3_COMMAND_FIRE         0x40000000  /* V3 commands fire */#define V_COMMAND_LOAD          0x20000000  /* Video register always loaded */#define V_COMMAND_LOAD_VBI      0x10000000  /* Video register always loaded at vbi without waiting source flip */#define V3_COMMAND_LOAD         0x08000000  /* CLE_C0 Video3 register always loaded */#define V3_COMMAND_LOAD_VBI     0x00000100  /* CLE_C0 Video3 register always loaded at vbi without waiting source flip */#define SECOND_DISPLAY_COLOR_KEY_ENABLE         0x00010000/* V3_ZOOM_CONTROL              0x2bc */#define V3_X_ZOOM_ENABLE        0x80000000#define V3_Y_ZOOM_ENABLE        0x00008000/* V3_MINI_CONTROL              0x2c0 */#define V3_X_INTERPOLY          0x00000002  /* X interpolation */#define V3_Y_INTERPOLY          0x00000001  /* Y interpolation */#define V3_YCBCR_INTERPOLY      0x00000004  /* Y, Cb, Cr all interpolation */#define V3_X_DIV_2              0x01000000#define V3_X_DIV_4              0x03000000#define V3_X_DIV_8              0x05000000#define V3_X_DIV_16             0x07000000#define V3_Y_DIV_2              0x00010000#define V3_Y_DIV_4              0x00030000#define V3_Y_DIV_8              0x00050000#define V3_Y_DIV_16             0x00070000/* SUBP_CONTROL_STRIDE              0x3c0 */#define SUBP_HQV_ENABLE             0x00010000#define SUBP_IA44                   0x00020000#define SUBP_AI44                   0x00000000#define SUBP_STRIDE_MASK            0x00001fff#define SUBP_CONTROL_MASK           0x00070000/* RAM_TABLE_CONTROL                0x3c8 */#define RAM_TABLE_RGB_ENABLE        0x00000007/* CAPTURE0_CONTROL                  0x310 */#define C0_ENABLE           		0x00000001#define BUFFER_2_MODE       		0x00000000#define BUFFER_3_MODE       		0x00000004#define BUFFER_4_MODE       		0x00000006#define SWAP_YUYV           		0x00000000 #define SWAP_UYVY           		0x00000100   #define SWAP_YVYU           		0x00000200#define SWAP_VYUY           		0x00000300#define IN_601_8            		0x00000000#define IN_656_8            		0x00000010#define IN_601_16           		0x00000020#define IN_656_16           		0x00000030#define DEINTER_ODD         		0x00000000#define DEINTER_EVEN        		0x00001000   #define DEINTER_ODD_EVEN    		0x00002000#define DEINTER_FRAME       		0x00003000#define VIP_1               		0x00000000 #define VIP_2               		0x00000400#define H_FILTER_2          		0x00010000#define H_FILTER_4          		0x00020000 #define H_FILTER_8_1331     		0x00030000 #define H_FILTER_8_12221    		0x00040000#define VIP_ENABLE          		0x00000008#define EN_FIELD_SIG        		0x00000800  #define VREF_INVERT         		0x00100000#define FIELD_INPUT_INVERSE    		0x00400000#define FIELD_INVERSE       		0x40000000#define C1_H_MINI_EN        		0x00000800#define C0_H_MINI_EN        		0x00000800#define C1_V_MINI_EN        		0x04000000#define C0_V_MINI_EN        		0x04000000#define C1_H_MINI_2         		0x00000400/* CAPTURE1_CONTROL                  0x354 */#define C1_ENABLE           		0x00000001/* V3_CONTROL                   0x2A0 */#define V3_ENABLE               0x00000001#define V3_FULL_SCREEN          0x00000002#define V3_YUV422               0x00000000#define V3_RGB32                0x00000004#define V3_RGB15                0x00000008#define V3_RGB16                0x0000000C#define V3_COLORSPACE_SIGN      0x00000080#define V3_EXPIRE_NUM           0x00040000#define V3_EXPIRE_NUM_F         0x000f0000 #define V3_BOB_ENABLE           0x00400000#define V3_FIELD_BASE           0x00000000#define V3_FRAME_BASE           0x01000000#define V3_SWAP_SW              0x00000000#define V3_SWAP_HW_HQV          0x02000000#define V3_FLIP_HW_CAPTURE0     0x04000000#define V3_FLIP_HW_CAPTURE1     0x06000000/* V3_ALPHA_FETCH_COUNT           0x2B8 */#define V3_FETCH_COUNT          0x3ff00000#define ALPHA_FETCH_COUNT       0x000003ff/* HQV_CONTROL             0x3D0 */#define HQV_RGB32           0x00000000#define HQV_RGB16           0x20000000#define HQV_RGB15           0x30000000#define HQV_YUV422          0x80000000#define HQV_YUV420          0xC0000000#define HQV_ENABLE          0x08000000#define HQV_SRC_SW          0x00000000#define HQV_SRC_MC          0x01000000#define HQV_SRC_CAPTURE0    0x02000000#define HQV_SRC_CAPTURE1    0x03000000#define HQV_FLIP_EVEN       0x00000000#define HQV_FLIP_ODD        0x00000020#define HQV_SW_FLIP         0x00000010   /* Write 1 to flip HQV buffer */#define HQV_DEINTERLACE     0x00010000   /* First line of odd field will be repeated 3 times */#define HQV_FIELD_2_FRAME   0x00020000   /* Src is field. Display each line 2 times */#define HQV_FRAME_2_FIELD   0x00040000   /* Src is field. Display field */#define HQV_FRAME_UV        0x00000000   /* Src is Non-interleaved */#define HQV_FIELD_UV        0x00100000   /* Src is interleaved */#define HQV_IDLE            0x00000008   #define HQV_FLIP_STATUS     0x00000001   #define HQV_DOUBLE_BUFF     0x00000000#define HQV_TRIPLE_BUFF     0x04000000#define HQV_SUBPIC_FLIP     0x00008000#define HQV_FIFO_STATUS     0x00001000  /* HQV_FILTER_CONTROL      0x3E4 */#define HQV_H_LOWPASS_2TAP  0x00000001#define HQV_H_LOWPASS_4TAP  0x00000002#define HQV_H_LOWPASS_8TAP1 0x00000003   /* To be deleted */#define HQV_H_LOWPASS_8TAP2 0x00000004   /* To be deleted */#define HQV_H_HIGH_PASS     0x00000008#define HQV_H_LOW_PASS      0x00000000#define HQV_V_LOWPASS_2TAP  0x00010000#define HQV_V_LOWPASS_4TAP  0x00020000#define HQV_V_LOWPASS_8TAP1 0x00030000#define HQV_V_LOWPASS_8TAP2 0x00040000#define HQV_V_HIGH_PASS     0x00080000#define HQV_V_LOW_PASS      0x00000000#define HQV_H_HIPASS_F1_DEFAULT 0x00000040#define HQV_H_HIPASS_F2_DEFAULT 0x00000000#define HQV_V_HIPASS_F1_DEFAULT 0x00400000#define HQV_V_HIPASS_F2_DEFAULT 0x00000000#define HQV_H_HIPASS_F1_2TAP    0x00000050#define HQV_H_HIPASS_F2_2TAP    0x00000100#define HQV_V_HIPASS_F1_2TAP    0x00500000#define HQV_V_HIPASS_F2_2TAP    0x01000000#define HQV_H_HIPASS_F1_4TAP    0x00000060#define HQV_H_HIPASS_F2_4TAP    0x00000200#define HQV_V_HIPASS_F1_4TAP    0x00600000#define HQV_V_HIPASS_F2_4TAP    0x02000000#define HQV_H_HIPASS_F1_8TAP    0x00000080#define HQV_H_HIPASS_F2_8TAP    0x00000400#define HQV_V_HIPASS_F1_8TAP    0x00800000#define HQV_V_HIPASS_F2_8TAP    0x04000000/* IA2 NEW */#define HQV_V_FILTER2           0x00080000#define HQV_H_FILTER2           0x00000008#define HQV_H_TAP2_11           0x00000041#define HQV_H_TAP4_121          0x00000042#define HQV_H_TAP4_1111         0x00000401#define HQV_H_TAP8_1331         0x00000221#define HQV_H_TAP8_12221        0x00000402#define HQV_H_TAP16_1991        0x00000159#define HQV_H_TAP16_141041      0x0000026A#define HQV_H_TAP32             0x0000015A#define HQV_V_TAP2_11           0x00410000#define HQV_V_TAP4_121          0x00420000#define HQV_V_TAP4_1111         0x04010000#define HQV_V_TAP8_1331         0x02210000#define HQV_V_TAP8_12221        0x04020000#define HQV_V_TAP16_1991        0x01590000#define HQV_V_TAP16_141041      0x026A0000#define HQV_V_TAP32             0x015A0000#define HQV_V_FILTER_DEFAULT    0x00420000#define HQV_H_FILTER_DEFAULT    0x00000040/* HQV_MINI_CONTROL        0x3E8 */#define HQV_H_MINIFY_ENABLE 0x00000800#define HQV_V_MINIFY_ENABLE 0x08000000#define HQV_VDEBLOCK_FILTER 0x80000000#define HQV_HDEBLOCK_FILTER 0x00008000#define CHROMA_KEY_LOW          0x00FFFFFF#define CHROMA_KEY_HIGH         0x00FFFFFF/* V_CAP_STATUS */#define V_ST_UPDATE_NOT_YET     0x00000003#define V1_ST_UPDATE_NOT_YET    0x00000001#define V3_ST_UPDATE_NOT_YET    0x00000008#define VBI_STATUS              0x00000002/* *      Macros for Video MMIO */#ifndef V4L2#define VIDInB(port)            *((volatile CARD8 *)(pVia->VidMapBase + (port)))#define VIDInW(port)            *((volatile CARD16 *)(pVia->VidMapBase + (port)))#define VIDInD(port)            *((volatile CARD32 *)(pVia->VidMapBase + (port)))#define VIDOutB(port, data)     *((volatile CARD8 *)(pVia->VidMapBase + (port))) = (data)#define VIDOutW(port, data)     *((volatile CARD16 *)(pVia->VidMapBase + (port))) = (data)#define VIDOutD(port, data)     *((volatile CARD32 *)(pVia->VidMapBase + (port))) = (data)#define MPGOutD(port, data)     *((volatile CARD32 *)(lpMPEGMMIO +(port))) = (data)#define MPGInD(port)            *((volatile CARD32 *)(lpMPEGMMIO +(port)))#endif /* *      Macros for GE MMIO */#define GEInW(port)             *((volatile CARD16 *)(lpGEMMIO + (port)))#define GEInD(port)             *((volatile CARD32 *)(lpGEMMIO + (port)))#define GEOutW(port, data)      *((volatile CARD16 *)(lpGEMMIO + (port))) = (data)#define GEOutD(port, data)      *((volatile CARD32 *)(lpGEMMIO + (port))) = (data)/* *	MPEG 1/2 Slice Engine (at 0xC00 relative to base) */ #define MPG_CONTROL		0x00#define 	MPG_CONTROL_STRUCT	0x03#define			MPG_CONTROL_STRUCT_TOP		0x01#define			MPG_CONTROL_STRUCT_BOTTOM	0x02#define			MPG_CONTROL_STRUCT_FRAME	0x03		/* Use TOP if interlaced */#define		MPG_CONTROL_TYPE	0x3C#define			MPG_CONTROL_TYPE_I	(0x01 << 2)#define			MPG_CONTROL_TYPE_B	(0x02 << 2)#define			MPG_CONTROL_TYPE_P	(0x03 << 3)#define		MPG_CONTROL_ALTSCAN	0x40#define MPG_BLOCK		0x08		/* Unsure */#define MPG_COMMAND		0x0C#define MPG_DATA1		0x10#define MPG_DATA2		0x14#define MPG_DATA3		0x18#define MPG_DATA4		0x1C#define MPG_YPHYSICAL(x)	(0x20 + 12*(x))#define MPG_CbPHYSICAL(x)	(0x24 + 12*(x))#define MPG_CrPHYSICAL(x)	(0x28 + 12*(x))#define MPG_PITCH		0x50#define MPG_STATUS		0x54#define MPG_MATRIX_IDX		0x5C#define		MPG_MATRIX_IDX_INTRA	0x00#define		MPG_MATRIX_IDX_NON	0x01#define MPG_MATRIX_DATA		0x60#define MPG_SLICE_CTRL_1	0x90#define		MPG_SLICE_MBAMAX		0x2FFF#define		MPG_SLICE_PREDICTIVE_DCT	0x4000#define		MPG_SLICE_TOP_FIRST		0x8000#define 	MPG_SLICE_MACROBLOCK_WIDTH(x)	((x)<<18)	/* in 64's */#define	MPG_SLICE_CTRL_2	0x94#define		MPG_SLICE_CONCEAL_MVEC		0x0000001#define		MPG_SLICE_QSCALE_TYPE		0x0000002#define		MPG_SLICE_DCPRECISION		0x000000C#define		MPG_SLICE_MACROBQUOT		0x0FFFFF0#define		MPG_SLICE_INTRAVLC		0x1000000#define	MPG_SLICE_CTRL_3	0x98#define		MPG_SLICE_FHMVR			0x0000003#define		MPG_SLICE_FVMVR			0x000000C#define		MPG_SLICE_BHMVR			0x0000030#define		MPG_SLICE_BVMVR			0x00000C0#define		MPG_SLICE_SECOND_FIELD		0x0100000#define		MPG_SLICE_RESET			0x0400000#define MPG_SLICE_LENGTH	0x9C#define	MPG_SLICE_DATA		0xA0#endif /* UNICHROME_REGS_H */

⌨️ 快捷键说明

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