Move GstVaapiSurfaceRenderFlags to gstvaapisurface.h since this will

also be useful for e.g. a gstvaapitexture.h.
This commit is contained in:
gb 2010-03-21 08:22:46 +00:00
parent 27307a6c1b
commit 6179b6495e
3 changed files with 29 additions and 12 deletions

View file

@ -213,6 +213,7 @@ GST_VAAPI_IMAGE_GET_CLASS
<SECTION>
<FILE>gstvaapisurface</FILE>
GstVaapiChromaType
GstVaapiSurfaceRenderFlags
<TITLE>GstVaapiSurface</TITLE>
GstVaapiSurface
GstVaapiSurfaceClass

View file

@ -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())

View file

@ -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())