info->framerate_num = vinfo.fps_n;
info->framerate_denom = vinfo.fps_d;
- info->interlaced = (vinfo.flags & GST_VIDEO_FLAG_INTERLACED) != 0;
+ info->interlaced =
+ vinfo.interlace_mode != GST_VIDEO_INTERLACE_MODE_PROGRESSIVE;
}
if (gst_structure_id_has_field (st, _TAGS_QUARK)) {
goto format_mismatch;
/* if present, these must match too */
- if ((in_info->flags & GST_VIDEO_FLAG_INTERLACED) !=
- (out_info->flags & GST_VIDEO_FLAG_INTERLACED))
+ if (in_info->interlace_mode != out_info->interlace_mode)
goto format_mismatch;
space->from_spec = in_spec;
space->to_spec = out_spec;
- interlaced = (in_info->flags & GST_VIDEO_FLAG_INTERLACED) != 0;
+ interlaced = GST_VIDEO_INFO_IS_INTERLACED (in_info);
space->convert =
videoconvert_convert_new (GST_VIDEO_INFO_FORMAT (out_info), out_spec,
GST_DEBUG_OBJECT (pool, "adding GstVideoMeta");
/* these are just the defaults for now */
- meta = gst_buffer_add_video_meta (ximage, 0, GST_VIDEO_INFO_FORMAT (info),
- priv->padded_width, priv->padded_height);
+ meta = gst_buffer_add_video_meta (ximage, GST_VIDEO_INFO_FORMAT (info),
+ GST_VIDEO_FRAME_FLAG_NONE, 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, 0, GST_VIDEO_INFO_FORMAT (info),
- priv->padded_width, priv->padded_height);
+ meta = gst_buffer_add_video_meta (xvimage, GST_VIDEO_INFO_FORMAT (info),
+ GST_VIDEO_FRAME_FLAG_NONE, priv->padded_width, priv->padded_height);
if (priv->need_alignment) {
meta->width = GST_VIDEO_INFO_WIDTH (&priv->info);