From: gb Date: Sun, 21 Mar 2010 08:22:46 +0000 (+0000) Subject: Move GstVaapiSurfaceRenderFlags to gstvaapisurface.h since this will X-Git-Tag: accepted/trunk/20120822.173359~673 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6179b6495e18743164c6552c1c47ddeb01f9953b;p=profile%2Fivi%2Fgstreamer-vaapi.git Move GstVaapiSurfaceRenderFlags to gstvaapisurface.h since this will also be useful for e.g. a gstvaapitexture.h. --- diff --git a/docs/reference/libs/libs-sections.txt b/docs/reference/libs/libs-sections.txt index ff1aef0..890b4a9 100644 --- a/docs/reference/libs/libs-sections.txt +++ b/docs/reference/libs/libs-sections.txt @@ -213,6 +213,7 @@ GST_VAAPI_IMAGE_GET_CLASS
gstvaapisurface GstVaapiChromaType +GstVaapiSurfaceRenderFlags GstVaapiSurface GstVaapiSurface GstVaapiSurfaceClass diff --git a/gst-libs/gst/vaapi/gstvaapisurface.h b/gst-libs/gst/vaapi/gstvaapisurface.h index 3f81aa7..f1a14b5 100644 --- a/gst-libs/gst/vaapi/gstvaapisurface.h +++ b/gst-libs/gst/vaapi/gstvaapisurface.h @@ -27,6 +27,7 @@ G_BEGIN_DECLS typedef enum _GstVaapiChromaType GstVaapiChromaType; +typedef enum _GstVaapiSurfaceRenderFlags GstVaapiSurfaceRenderFlags; /** * GstVaapiChromaType: @@ -42,6 +43,33 @@ enum _GstVaapiChromaType { GST_VAAPI_CHROMA_TYPE_YUV444 }; +/** + * GstVaapiSurfaceRenderFlags + * @GST_VAAPI_PICTURE_STRUCTURE_TOP_FIELD: + * selects the top field of the surface + * @GST_VAAPI_PICTURE_STRUCTURE_BOTTOM_FIELD: + * selects the bottom field of the surface + * @GST_VAAPI_PICTURE_STRUCTURE_FRAME: + * selects the entire surface + * @GST_VAAPI_COLOR_STANDARD_ITUR_BT_601: + * uses ITU-R BT.601 standard for color space conversion + * @GST_VAAPI_COLOR_STANDARD_ITUR_BT_709: + * uses ITU-R BT.709 standard for color space conversion + * + * The set of all render flags for gst_vaapi_window_put_surface(). + */ +enum _GstVaapiSurfaceRenderFlags { + GST_VAAPI_PICTURE_STRUCTURE_TOP_FIELD = 1 << 0, + GST_VAAPI_PICTURE_STRUCTURE_BOTTOM_FIELD = 1 << 1, + GST_VAAPI_PICTURE_STRUCTURE_FRAME = + ( + GST_VAAPI_PICTURE_STRUCTURE_TOP_FIELD | + GST_VAAPI_PICTURE_STRUCTURE_BOTTOM_FIELD + ), + GST_VAAPI_COLOR_STANDARD_ITUR_BT_601 = 1 << 2, + GST_VAAPI_COLOR_STANDARD_ITUR_BT_709 = 1 << 3, +}; + #define GST_VAAPI_TYPE_SURFACE \ (gst_vaapi_surface_get_type()) diff --git a/gst-libs/gst/vaapi/gstvaapiwindow.h b/gst-libs/gst/vaapi/gstvaapiwindow.h index 6138170..82011af 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow.h +++ b/gst-libs/gst/vaapi/gstvaapiwindow.h @@ -27,18 +27,6 @@ G_BEGIN_DECLS -enum { - GST_VAAPI_PICTURE_STRUCTURE_TOP_FIELD = 1 << 0, - GST_VAAPI_PICTURE_STRUCTURE_BOTTOM_FIELD = 1 << 1, - GST_VAAPI_PICTURE_STRUCTURE_FRAME = - ( - GST_VAAPI_PICTURE_STRUCTURE_TOP_FIELD | - GST_VAAPI_PICTURE_STRUCTURE_BOTTOM_FIELD - ), - GST_VAAPI_COLOR_STANDARD_ITUR_BT_601 = 1 << 2, - GST_VAAPI_COLOR_STANDARD_ITUR_BT_709 = 1 << 3, -}; - #define GST_VAAPI_TYPE_WINDOW \ (gst_vaapi_window_get_type())