mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
metavideo: add flags and a define for the API
This commit is contained in:
parent
7a1f60ed9c
commit
e7f56a7817
2 changed files with 15 additions and 2 deletions
|
@ -26,7 +26,7 @@ gst_meta_video_get_info (void)
|
|||
static const GstMetaInfo *meta_video_info = NULL;
|
||||
|
||||
if (meta_video_info == NULL) {
|
||||
meta_video_info = gst_meta_register ("GstMetaVideo", "GstMetaVideo",
|
||||
meta_video_info = gst_meta_register (GST_META_API_VIDEO, "GstMetaVideo",
|
||||
sizeof (GstMetaVideo),
|
||||
(GstMetaInitFunction) NULL,
|
||||
(GstMetaFreeFunction) NULL,
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_META_API_VIDEO "GstMetaVideo"
|
||||
#define GST_META_INFO_VIDEO (gst_meta_video_get_info())
|
||||
|
||||
#define GST_VIDEO_MAX_PLANES 4
|
||||
|
@ -36,11 +37,23 @@ typedef struct _GstMetaVideoPlane GstMetaVideoPlane;
|
|||
/**
|
||||
* GstMetaVideoFlags:
|
||||
* @GST_META_VIDEO_FLAG_NONE: no flags
|
||||
* @GST_META_VIDEO_FLAG_INTERLACED:
|
||||
* @GST_META_VIDEO_FLAG_TTF:
|
||||
* @GST_META_VIDEO_FLAG_RFF:
|
||||
* @GST_META_VIDEO_FLAG_ONEFIELD:
|
||||
* @GST_META_VIDEO_FLAG_TELECINE:
|
||||
* @GST_META_VIDEO_FLAG_PROGRESSIVE:
|
||||
*
|
||||
* Extra video flags
|
||||
*/
|
||||
typedef enum {
|
||||
GST_META_VIDEO_FLAG_NONE = 0
|
||||
GST_META_VIDEO_FLAG_NONE = 0,
|
||||
GST_META_VIDEO_FLAG_INTERLACED = (1 << 0),
|
||||
GST_META_VIDEO_FLAG_TTF = (1 << 1),
|
||||
GST_META_VIDEO_FLAG_RFF = (1 << 2),
|
||||
GST_META_VIDEO_FLAG_ONEFIELD = (1 << 3),
|
||||
GST_META_VIDEO_FLAG_TELECINE = (1 << 4),
|
||||
GST_META_VIDEO_FLAG_PROGRESSIVE = (1 << 5)
|
||||
} GstMetaVideoFlags;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue