sis_regs.h
来自「君正早期ucos系统(只有早期的才不没有打包成库),MPLAYER,文件系统,图」· C头文件 代码 · 共 414 行 · 第 1/2 页
H
414 行
/* Pitch for Y, UV Planes, unit=word */#define Index_VI_Disp_Y_Buf_Pitch_Low 0x10#define Index_VI_Disp_UV_Buf_Pitch_Low 0x11#define Index_VI_Disp_Y_UV_Buf_Pitch_Middle 0x12/* What is this ? */#define Index_VI_Disp_Y_Buf_Preset_Low 0x13#define Index_VI_Disp_Y_Buf_Preset_Middle 0x14#define Index_VI_UV_Buf_Preset_Low 0x15#define Index_VI_UV_Buf_Preset_Middle 0x16#define Index_VI_Disp_Y_UV_Buf_Preset_High 0x17/* Scaling control registers */#define Index_VI_Hor_Post_Up_Scale_Low 0x18#define Index_VI_Hor_Post_Up_Scale_High 0x19#define Index_VI_Ver_Up_Scale_Low 0x1A#define Index_VI_Ver_Up_Scale_High 0x1B#define Index_VI_Scale_Control 0x1C/* Playback line buffer control */#define Index_VI_Play_Threshold_Low 0x1D#define Index_VI_Play_Threshold_High 0x1E#define Index_VI_Line_Buffer_Size 0x1F/* Destination color key */#define Index_VI_Overlay_ColorKey_Red_Min 0x20#define Index_VI_Overlay_ColorKey_Green_Min 0x21#define Index_VI_Overlay_ColorKey_Blue_Min 0x22#define Index_VI_Overlay_ColorKey_Red_Max 0x23#define Index_VI_Overlay_ColorKey_Green_Max 0x24#define Index_VI_Overlay_ColorKey_Blue_Max 0x25/* Source color key, YUV color space */#define Index_VI_Overlay_ChromaKey_Red_Y_Min 0x26#define Index_VI_Overlay_ChromaKey_Green_U_Min 0x27#define Index_VI_Overlay_ChromaKey_Blue_V_Min 0x28#define Index_VI_Overlay_ChromaKey_Red_Y_Max 0x29#define Index_VI_Overlay_ChromaKey_Green_U_Max 0x2A#define Index_VI_Overlay_ChromaKey_Blue_V_Max 0x2B/* Contrast enhancement and brightness control */#define Index_VI_Contrast_Factor 0x2C /* obviously unused/undefined */#define Index_VI_Brightness 0x2D#define Index_VI_Contrast_Enh_Ctrl 0x2E#define Index_VI_Key_Overlay_OP 0x2F#define Index_VI_Control_Misc0 0x30#define Index_VI_Control_Misc1 0x31#define Index_VI_Control_Misc2 0x32/* TW: Subpicture registers */#define Index_VI_SubPict_Buf_Start_Low 0x33#define Index_VI_SubPict_Buf_Start_Middle 0x34#define Index_VI_SubPict_Buf_Start_High 0x35/* TW: What is this ? */#define Index_VI_SubPict_Buf_Preset_Low 0x36#define Index_VI_SubPict_Buf_Preset_Middle 0x37/* TW: Subpicture pitch, unit=16 bytes */#define Index_VI_SubPict_Buf_Pitch 0x38/* TW: Subpicture scaling control */#define Index_VI_SubPict_Hor_Scale_Low 0x39#define Index_VI_SubPict_Hor_Scale_High 0x3A#define Index_VI_SubPict_Vert_Scale_Low 0x3B#define Index_VI_SubPict_Vert_Scale_High 0x3C#define Index_VI_SubPict_Scale_Control 0x3D/* (0x40 = enable/disable subpicture) *//* TW: Subpicture line buffer control */#define Index_VI_SubPict_Threshold 0x3E/* TW: What is this? */#define Index_VI_FIFO_Max 0x3F/* TW: Subpicture palette; 16 colors, total 32 bytes address space */#define Index_VI_SubPict_Pal_Base_Low 0x40#define Index_VI_SubPict_Pal_Base_High 0x41/* I wish I knew how to use these ... */#define Index_MPEG_Read_Ctrl0 0x60 /* MPEG auto flip */#define Index_MPEG_Read_Ctrl1 0x61 /* MPEG auto flip */#define Index_MPEG_Read_Ctrl2 0x62 /* MPEG auto flip */#define Index_MPEG_Read_Ctrl3 0x63 /* MPEG auto flip *//* TW: MPEG AutoFlip scale */#define Index_MPEG_Ver_Up_Scale_Low 0x64#define Index_MPEG_Ver_Up_Scale_High 0x65#define Index_MPEG_Y_Buf_Preset_Low 0x66#define Index_MPEG_Y_Buf_Preset_Middle 0x67#define Index_MPEG_UV_Buf_Preset_Low 0x68#define Index_MPEG_UV_Buf_Preset_Middle 0x69#define Index_MPEG_Y_UV_Buf_Preset_High 0x6A/* TW: The following registers only exist on the 310/325 series *//* TW: Bit 16:24 of Y_U_V buf start address (?) */#define Index_VI_Y_Buf_Start_Over 0x6B#define Index_VI_U_Buf_Start_Over 0x6C#define Index_VI_V_Buf_Start_Over 0x6D#define Index_VI_Disp_Y_Buf_Pitch_High 0x6E#define Index_VI_Disp_UV_Buf_Pitch_High 0x6F/* Hue and saturation */#define Index_VI_Hue 0x70#define Index_VI_Saturation 0x71#define Index_VI_SubPict_Start_Over 0x72#define Index_VI_SubPict_Buf_Pitch_High 0x73#define Index_VI_Control_Misc3 0x74/* TW: Bits (and helpers) for Index_VI_Control_Misc0 */#define VI_Misc0_Enable_Overlay 0x02#define VI_Misc0_420_Plane_Enable 0x04 /* Select Plane or Packed mode */#define VI_Misc0_422_Enable 0x20 /* Select 422 or 411 mode */#define VI_Misc0_Fmt_YVU420P 0x0C /* YUV420 Planar (I420, YV12) */#define VI_Misc0_Fmt_YUYV 0x28 /* YUYV Packed (YUY2) */#define VI_Misc0_Fmt_UYVY 0x08 /* (UYVY) *//* TW: Bits for Index_VI_Control_Misc1 *//* #define VI_Misc1_? 0x01 */#define VI_Misc1_BOB_Enable 0x02#define VI_Misc1_Line_Merge 0x04#define VI_Misc1_Field_Mode 0x08/* #define VI_Misc1_? 0x10 */#define VI_Misc1_Non_Interleave 0x20 /* 300 series only? */#define VI_Misc1_Buf_Addr_Lock 0x20 /* 310 series only? *//* #define VI_Misc1_? 0x40 *//* #define VI_Misc1_? 0x80 *//* TW: Bits for Index_VI_Control_Misc2 */#define VI_Misc2_Select_Video2 0x01#define VI_Misc2_Video2_On_Top 0x02/* #define VI_Misc2_? 0x04 */#define VI_Misc2_Vertical_Interpol 0x08#define VI_Misc2_Dual_Line_Merge 0x10#define VI_Misc2_All_Line_Merge 0x20 /* 310 series only? */#define VI_Misc2_Auto_Flip_Enable 0x40 /* 300 series only? */#define VI_Misc2_Video_Reg_Write_Enable 0x80 /* 310 series only? *//* TW: Bits for Index_VI_Control_Misc3 */#define VI_Misc3_Submit_Video_1 0x01 /* AKA "address ready" */#define VI_Misc3_Submit_Video_2 0x02 /* AKA "address ready" */#define VI_Misc3_Submit_SubPict 0x04 /* AKA "address ready" *//* TW: Values for Index_VI_Key_Overlay_OP (0x2F) */#define VI_ROP_Never 0x00#define VI_ROP_DestKey 0x03#define VI_ROP_Always 0x0F/* * CRT_2 function control register --------------------------------- */#define Index_CRT2_FC_CONTROL 0x00#define Index_CRT2_FC_SCREEN_HIGH 0x04#define Index_CRT2_FC_SCREEN_MID 0x05#define Index_CRT2_FC_SCREEN_LOW 0x06#define Index_CRT2_FC_ENABLE_WRITE 0x24#define Index_CRT2_FC_VR 0x25#define Index_CRT2_FC_VCount 0x27#define Index_CRT2_FC_VCount1 0x28#define Index_310_CRT2_FC_VR 0x30 /* d[1] = vertical retrace */#define Index_310_CRT2_FC_RT 0x33 /* d[7] = retrace in progress *//* video attributes - these should probably be configurable on the fly * so users with different desktop sizes can keep * captured data off the desktop */#define _VINWID 704#define _VINHGT _VINHGT_NTSC#define _VINHGT_NTSC 240#define _VINHGT_PAL 290#define _VIN_WINDOW (704 * 291 * 2)#define _VBI_WINDOW (704 * 64 * 2)#define _VIN_FIELD_EVEN 1#define _VIN_FIELD_ODD 2#define _VIN_FIELD_BOTH 4/* i2c registers (TW; not on 300/310/325 series) */#define X_INDEXREG 0x14#define X_PORTREG 0x15#define X_DATA 0x0f#define I2C_SCL 0x00#define I2C_SDA 0x01#define I2C_DELAY 10/* mmio registers for video */#define REG_PRIM_CRT_COUNTER 0x8514/* TW: MPEG MMIO registers (630 and later) ----------------------------*//* Not public (yet?) */#endif /* VIDIX_SIS_REGS_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?