dmeta->buffer = dest;
GST_DEBUG ("copy video metadata");
+ dmeta->flags = smeta->flags;
dmeta->format = smeta->format;
- dmeta->frame_flags = smeta->frame_flags;
dmeta->id = smeta->id;
dmeta->width = smeta->width;
dmeta->height = smeta->height;
/**
* gst_buffer_add_video_meta:
* @buffer: a #GstBuffer
+ * @flags: #GstVideoFrameFlags
* @format: a #GstVideoFormat
- * @frame_flags: #GstVideoFrameFlags
* @width: the width
* @height: the height
*
*/
GstVideoMeta *
gst_buffer_add_video_meta (GstBuffer * buffer,
- GstVideoFormat format, GstVideoFrameFlags frame_flags, guint width,
- guint height)
+ GstVideoFrameFlags flags, GstVideoFormat format, guint width, guint height)
{
GstVideoMeta *meta;
GstVideoInfo info;
gst_video_info_set_format (&info, format, width, height);
meta =
- gst_buffer_add_video_meta_full (buffer, format, frame_flags, width,
+ gst_buffer_add_video_meta_full (buffer, flags, format, width,
height, info.finfo->n_planes, info.offset, info.stride);
return meta;
/**
* gst_buffer_add_video_meta_full:
* @buffer: a #GstBuffer
+ * @flags: #GstVideoFrameFlags
* @format: a #GstVideoFormat
- * @frame_flags: #GstVideoFrameFlags
* @width: the width
* @height: the height
* @n_planes: number of planes
*/
GstVideoMeta *
gst_buffer_add_video_meta_full (GstBuffer * buffer,
- GstVideoFormat format, GstVideoFrameFlags frame_flags, guint width,
+ GstVideoFrameFlags flags, GstVideoFormat format, guint width,
guint height, guint n_planes, gsize offset[GST_VIDEO_MAX_PLANES],
gint stride[GST_VIDEO_MAX_PLANES])
{
meta =
(GstVideoMeta *) gst_buffer_add_meta (buffer, GST_VIDEO_META_INFO, NULL);
+ meta->flags = flags;
meta->format = format;
- meta->frame_flags = frame_flags;
meta->id = 0;
meta->width = width;
meta->height = height;
GstBuffer *buffer;
+ GstVideoFrameFlags flags;
GstVideoFormat format;
- GstVideoFrameFlags frame_flags;
gint id;
guint width;
guint height;
#define gst_buffer_get_video_meta(b) ((GstVideoMeta*)gst_buffer_get_meta((b),GST_VIDEO_META_API_TYPE))
GstVideoMeta * gst_buffer_get_video_meta_id (GstBuffer *buffer, gint id);
-GstVideoMeta * gst_buffer_add_video_meta (GstBuffer *buffer, GstVideoFormat format,
- GstVideoFrameFlags frame_flags, guint width, guint height);
-GstVideoMeta * gst_buffer_add_video_meta_full (GstBuffer *buffer, GstVideoFormat format,
- GstVideoFrameFlags frame_flags, guint width, guint height,
+GstVideoMeta * gst_buffer_add_video_meta (GstBuffer *buffer, GstVideoFrameFlags flags,
+ GstVideoFormat format, guint width, guint height);
+GstVideoMeta * gst_buffer_add_video_meta_full (GstBuffer *buffer, GstVideoFrameFlags flags,
+ GstVideoFormat format, guint width, guint height,
guint n_planes, gsize offset[GST_VIDEO_MAX_PLANES],
gint stride[GST_VIDEO_MAX_PLANES]);
if (priv->add_videometa) {
GST_DEBUG_OBJECT (pool, "adding GstVideoMeta");
- gst_buffer_add_video_meta_full (*buffer, GST_VIDEO_INFO_FORMAT (info),
- GST_VIDEO_FRAME_FLAG_NONE,
+ gst_buffer_add_video_meta_full (*buffer, GST_VIDEO_FRAME_FLAG_NONE,
+ GST_VIDEO_INFO_FORMAT (info),
GST_VIDEO_INFO_WIDTH (info), GST_VIDEO_INFO_HEIGHT (info),
GST_VIDEO_INFO_N_PLANES (info), info->offset, info->stride);
}
frame->info.width = meta->width;
frame->info.height = meta->height;
frame->id = meta->id;
- frame->frame_flags = meta->frame_flags;
+ frame->flags = meta->flags;
for (i = 0; i < info->finfo->n_planes; i++)
gst_video_meta_map (meta, i, &frame->map[i], &frame->data[i],
goto no_metadata;
frame->id = id;
- frame->frame_flags = 0;
+ frame->flags = 0;
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_TFF))
- frame->frame_flags |= GST_VIDEO_FRAME_FLAG_TFF;
+ frame->flags |= GST_VIDEO_FRAME_FLAG_TFF;
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_RFF))
- frame->frame_flags |= GST_VIDEO_FRAME_FLAG_RFF;
+ frame->flags |= GST_VIDEO_FRAME_FLAG_RFF;
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_VIDEO_BUFFER_FLAG_ONEFIELD))
- frame->frame_flags |= GST_VIDEO_FRAME_FLAG_ONEFIELD;
+ frame->flags |= GST_VIDEO_FRAME_FLAG_ONEFIELD;
gst_buffer_map (buffer, &frame->map[0], flags);
*/
struct _GstVideoFrame {
GstVideoInfo info;
- GstVideoFrameFlags frame_flags;
+ GstVideoFrameFlags flags;
GstBuffer *buffer;
gpointer meta;
GST_DEBUG_OBJECT (pool, "adding GstVideoMeta");
/* these are just the defaults for now */
- meta = gst_buffer_add_video_meta (ximage, GST_VIDEO_INFO_FORMAT (info),
- GST_VIDEO_FRAME_FLAG_NONE, priv->padded_width, priv->padded_height);
+ meta = gst_buffer_add_video_meta (ximage, GST_VIDEO_FRAME_FLAG_NONE,
+ GST_VIDEO_INFO_FORMAT (info), priv->padded_width, priv->padded_height);
if (priv->need_alignment) {
gint vpad, hpad, pstride;
GST_DEBUG_OBJECT (pool, "adding GstVideoMeta");
/* these are just the defaults for now */
- meta = gst_buffer_add_video_meta (xvimage, GST_VIDEO_INFO_FORMAT (info),
- GST_VIDEO_FRAME_FLAG_NONE, priv->padded_width, priv->padded_height);
+ meta = gst_buffer_add_video_meta (xvimage, GST_VIDEO_FRAME_FLAG_NONE,
+ GST_VIDEO_INFO_FORMAT (info), priv->padded_width, priv->padded_height);
if (priv->need_alignment) {
meta->width = GST_VIDEO_INFO_WIDTH (&priv->info);