summaryrefslogtreecommitdiff
path: root/src/sna/sna_video.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/sna_video.h')
-rw-r--r--src/sna/sna_video.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/sna/sna_video.h b/src/sna/sna_video.h
index 2e7144ec..d39fa5f2 100644
--- a/src/sna/sna_video.h
+++ b/src/sna/sna_video.h
@@ -50,6 +50,8 @@ THE USE OR OTHER DEALINGS IN THE SOFTWARE.
}
struct sna_video {
+ struct sna *sna;
+
int brightness;
int contrast;
int saturation;
@@ -95,10 +97,19 @@ struct sna_video_frame {
BoxRec src;
};
+static inline XvScreenPtr to_xv(ScreenPtr screen)
+{
+ return dixLookupPrivate(&screen->devPrivates, XvGetScreenKey());
+}
+
void sna_video_init(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);
+void sna_video_textured_setup(struct sna *sna, ScreenPtr screen);
+
+XvAdaptorPtr sna_xv_adaptor_alloc(struct sna *sna);
+int sna_xv_alloc_port(unsigned long port, XvPortPtr in, XvPortPtr *out);
+int sna_xv_free_port(XvPortPtr port);
#define FOURCC_XVMC (('C' << 24) + ('M' << 16) + ('V' << 8) + 'X')