Comment out the correct #endif directive.
[mplayer/greg.git] / drivers / tdfx_vid.h
blob152f5359e89980e5a30e36169bcef97c953a3efc
3 #define TDFX_VID_VERSION 1
5 #define TDFX_VID_MOVE_2_PACKED 0
6 #define TDFX_VID_MOVE_2_YUV 1
7 #define TDFX_VID_MOVE_2_3D 2
8 #define TDFX_VID_MOVE_2_TEXTURE 3
10 #define TDFX_VID_SRC_COLORKEY 0x1
11 #define TDFX_VID_DST_COLORKEY 0x2
13 #define TDFX_VID_ROP_COPY 0xcc // src
14 #define TDFX_VID_ROP_INVERT 0x55 // NOT dst
15 #define TDFX_VID_ROP_XOR 0x66 // src XOR dst
16 #define TDFX_VID_ROP_OR 0xee // src OR dst
18 #define TDFX_VID_FORMAT_BGR1 (('B'<<24)|('G'<<16)|('R'<<8)|1)
19 #define TDFX_VID_FORMAT_BGR8 (('B'<<24)|('G'<<16)|('R'<<8)|8)
20 #define TDFX_VID_FORMAT_BGR15 (('B'<<24)|('G'<<16)|('R'<<8)|15)
21 #define TDFX_VID_FORMAT_BGR16 (('B'<<24)|('G'<<16)|('R'<<8)|16)
22 #define TDFX_VID_FORMAT_BGR24 (('B'<<24)|('G'<<16)|('R'<<8)|24)
23 #define TDFX_VID_FORMAT_BGR32 (('B'<<24)|('G'<<16)|('R'<<8)|32)
25 #define TDFX_VID_FORMAT_YUY2 (('2'<<24)|('Y'<<16)|('U'<<8)|'Y')
26 #define TDFX_VID_FORMAT_UYVY (('Y'<<24)|('V'<<16)|('Y'<<8)|'U')
28 #define TDFX_VID_FORMAT_YV12 0x32315659
29 #define TDFX_VID_FORMAT_IYUV (('I'<<24)|('Y'<<16)|('U'<<8)|'V')
30 #define TDFX_VID_FORMAT_I420 (('I'<<24)|('4'<<16)|('2'<<8)|'0')
32 #define TDFX_VID_YUV_STRIDE (1024)
33 #define TDFX_VID_YUV_PLANE_SIZE (0x0100000)
36 typedef struct tdfx_vid_blit_s {
37 uint32_t src;
38 uint32_t src_stride;
39 uint16_t src_x,src_y;
40 uint16_t src_w,src_h;
41 uint32_t src_format;
43 uint32_t dst;
44 uint32_t dst_stride;
45 uint16_t dst_x,dst_y;
46 uint16_t dst_w,dst_h;
47 uint32_t dst_format;
49 uint32_t src_colorkey[2];
50 uint32_t dst_colorkey[2];
52 uint8_t colorkey;
53 uint8_t rop[4];
54 } tdfx_vid_blit_t;
56 typedef struct tdfx_vid_config_s {
57 uint16_t version;
58 uint16_t card_type;
59 uint32_t ram_size;
60 uint16_t screen_width;
61 uint16_t screen_height;
62 uint16_t screen_stride;
63 uint32_t screen_format;
64 uint32_t screen_start;
65 } tdfx_vid_config_t;
67 typedef struct tdfx_vid_agp_move_s {
68 uint16_t move2;
69 uint16_t width,height;
71 uint32_t src;
72 uint32_t src_stride;
74 uint32_t dst;
75 uint32_t dst_stride;
76 } tdfx_vid_agp_move_t;
78 typedef struct tdfx_vid_yuv_s {
79 uint32_t base;
80 uint16_t stride;
81 } tdfx_vid_yuv_t;
83 typedef struct tdfx_vid_overlay_s {
84 uint32_t src[2]; // left and right buffer (2 buffer may be NULL)
85 uint16_t src_width,src_height;
86 uint16_t src_stride;
87 uint32_t format;
89 uint16_t dst_width,dst_height;
90 int16_t dst_x,dst_y;
92 uint8_t use_colorkey;
93 uint32_t colorkey[2]; // min/max
94 uint8_t invert_colorkey;
95 } tdfx_vid_overlay_t;
97 #define TDFX_VID_GET_CONFIG _IOR('J', 1, tdfx_vid_config_t)
98 #define TDFX_VID_AGP_MOVE _IOW('J', 2, tdfx_vid_agp_move_t)
99 #define TDFX_VID_BLIT _IOW('J', 3, tdfx_vid_blit_t)
100 #define TDFX_VID_SET_YUV _IOW('J', 4, tdfx_vid_blit_t)
101 #define TDFX_VID_GET_YUV _IOR('J', 5, tdfx_vid_blit_t)
102 #define TDFX_VID_BUMP0 _IOW('J', 6, u16)
103 #define TDFX_VID_SET_OVERLAY _IOW('J', 7, tdfx_vid_overlay_t)
104 #define TDFX_VID_OVERLAY_ON _IO ('J', 8)
105 #define TDFX_VID_OVERLAY_OFF _IO ('J', 9)