On Mon, 8 Mar 2010, Gwenole Beauchesne wrote:

This patch moves vaPutSurface() flags definitions to the common <va/va.h> header.

Rationale:
- They are also useful to VA/GLX headers
- I would like to add more advanced postproc flags + It may be interesting to add a vaQueryPutSurfaceFlags() function?

Sorry, I forgot the patch.
commit ea385f8aa13ba48b70e7f1fd763f904fa9d4eb79
Author: Gwenole Beauchesne <[email protected]>
Date:   Fri Aug 21 11:34:50 2009 +0000

    Move vaPutSurface() flags to <va/va.h> header.

diff --git a/va/va.h b/va/va.h
index 02be829..08294a8 100644
--- a/va/va.h
+++ b/va/va.h
@@ -127,6 +127,22 @@ typedef int VAStatus;	/* Return status type from functions */
 #define VA_STATUS_ERROR_SURFACE_IN_DISPLAYING   0x00000015
 #define VA_STATUS_ERROR_UNKNOWN			0xFFFFFFFF
 
+/* De-interlacing flags for vaPutSurface() */
+#define VA_FRAME_PICTURE        0x00000000 
+#define VA_TOP_FIELD            0x00000001
+#define VA_BOTTOM_FIELD         0x00000002
+
+/*
+ * Clears the drawable with background color.
+ * for hardware overlay based implementation this flag
+ * can be used to turn off the overlay
+ */
+#define VA_CLEAR_DRAWABLE       0x00000008 
+
+/* Color space conversion flags for vaPutSurface() */
+#define VA_SRC_BT601            0x00000010
+#define VA_SRC_BT709            0x00000020
+
 /*
  * Returns a short english description of error_status
  */
diff --git a/va/va_x11.h b/va/va_x11.h
index 3f0a1d6..c6f9670 100644
--- a/va/va_x11.h
+++ b/va/va_x11.h
@@ -23,22 +23,6 @@ VADisplay vaGetDisplay (
  * color space conversion and scaling to the destination
  * rectangle
  */
-/* de-interlacing flags for vaPutSurface */
-#define VA_FRAME_PICTURE	0x00000000 
-#define VA_TOP_FIELD		0x00000001
-#define VA_BOTTOM_FIELD		0x00000002
-
-/* 
- * clears the drawable with background color.
- * for hardware overlay based implementation this flag
- * can be used to turn off the overlay
- */
-#define VA_CLEAR_DRAWABLE	0x00000008 
-
-/* color space conversion flags for vaPutSurface */
-#define VA_SRC_BT601		0x00000010
-#define VA_SRC_BT709		0x00000020
-
 VAStatus vaPutSurface (
     VADisplay dpy,
     VASurfaceID surface,	
_______________________________________________
Libva mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libva

Reply via email to