diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-12 11:09:23 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-12 11:09:23 +0000 |
commit | 6b271acc7e88a5c97946d90c1bc17302447fd198 (patch) | |
tree | e178d4661dc5464cab84588949112613d677a0dd /drivers/tdfx_vid.h | |
parent | 555b3f61fed249553250b4264260623127ade64e (diff) | |
download | mpv-6b271acc7e88a5c97946d90c1bc17302447fd198.tar.bz2 mpv-6b271acc7e88a5c97946d90c1bc17302447fd198.tar.xz |
Overlay support (now vo_xtdfx is possible :) and yet another way to
access the mem. Still the same problem than with the page fault handler :(
But it doesn't need a patched agpgart.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9567 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'drivers/tdfx_vid.h')
-rw-r--r-- | drivers/tdfx_vid.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/drivers/tdfx_vid.h b/drivers/tdfx_vid.h index 7fb7b12db2..152f5359e8 100644 --- a/drivers/tdfx_vid.h +++ b/drivers/tdfx_vid.h @@ -80,11 +80,27 @@ typedef struct tdfx_vid_yuv_s { uint16_t stride; } tdfx_vid_yuv_t; +typedef struct tdfx_vid_overlay_s { + uint32_t src[2]; // left and right buffer (2 buffer may be NULL) + uint16_t src_width,src_height; + uint16_t src_stride; + uint32_t format; + + uint16_t dst_width,dst_height; + int16_t dst_x,dst_y; + + uint8_t use_colorkey; + uint32_t colorkey[2]; // min/max + uint8_t invert_colorkey; +} tdfx_vid_overlay_t; + #define TDFX_VID_GET_CONFIG _IOR('J', 1, tdfx_vid_config_t) -#define TDFX_VID_AGP_MOVE _IOR('J', 2, tdfx_vid_agp_move_t) -#define TDFX_VID_BLIT _IOR('J', 3, tdfx_vid_blit_t) -#define TDFX_VID_SET_YUV _IOR('J', 4, tdfx_vid_blit_t) +#define TDFX_VID_AGP_MOVE _IOW('J', 2, tdfx_vid_agp_move_t) +#define TDFX_VID_BLIT _IOW('J', 3, tdfx_vid_blit_t) +#define TDFX_VID_SET_YUV _IOW('J', 4, tdfx_vid_blit_t) #define TDFX_VID_GET_YUV _IOR('J', 5, tdfx_vid_blit_t) - -#define TDFX_VID_BUMP0 _IOR('J', 6, u16) +#define TDFX_VID_BUMP0 _IOW('J', 6, u16) +#define TDFX_VID_SET_OVERLAY _IOW('J', 7, tdfx_vid_overlay_t) +#define TDFX_VID_OVERLAY_ON _IO ('J', 8) +#define TDFX_VID_OVERLAY_OFF _IO ('J', 9) |