summaryrefslogtreecommitdiff
path: root/src/sna/sna_video.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-03-28 18:59:26 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-03-28 22:53:17 +0100
commit6142232fa0feeb39412cda85ca727cc770eaa042 (patch)
treeb80821243df9b076b0dddf4c322a43d54c32f220 /src/sna/sna_video.h
parentae8aa172a7330439a8e6dda41f5e33eb257a139b (diff)
sna: Add video sprite support for ILK+
Based on the work by Jesse Barnes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video.h')
-rw-r--r--src/sna/sna_video.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sna/sna_video.h b/src/sna/sna_video.h
index 47ddab0f..687fbe1a 100644
--- a/src/sna/sna_video.h
+++ b/src/sna/sna_video.h
@@ -51,6 +51,7 @@ struct sna_video {
uint32_t gamma5;
int color_key;
+ int color_key_changed;
/** YUV data buffers */
struct kgem_bo *old_buf[2];
@@ -58,6 +59,7 @@ struct sna_video {
Bool textured;
Rotation rotation;
+ int plane;
int SyncToVblank; /* -1: auto, 0: off, 1: on */
};
@@ -78,10 +80,9 @@ struct sna_video_frame {
};
void sna_video_init(struct sna *sna, ScreenPtr screen);
-XF86VideoAdaptorPtr sna_video_overlay_setup(struct sna *sna,
- ScreenPtr screen);
-XF86VideoAdaptorPtr sna_video_textured_setup(struct sna *sna,
- ScreenPtr screen);
+XF86VideoAdaptorPtr sna_video_overlay_setup(struct sna *sna, ScreenPtr screen);
+XF86VideoAdaptorPtr sna_video_sprite_setup(struct sna *sna, ScreenPtr screen);
+XF86VideoAdaptorPtr sna_video_textured_setup(struct sna *sna, ScreenPtr screen);
#define FOURCC_XVMC (('C' << 24) + ('M' << 16) + ('V' << 8) + 'X')