vapostproc: Negotiate interlaced.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1109>
This commit is contained in:
parent
60be3dbd2a
commit
a2aa2cda42
@ -1033,12 +1033,9 @@ gst_va_filter_enable_cropping (GstVaFilter * self, gboolean cropping)
|
|||||||
static inline GstCaps *
|
static inline GstCaps *
|
||||||
_create_base_caps (GstVaFilter * self)
|
_create_base_caps (GstVaFilter * self)
|
||||||
{
|
{
|
||||||
/* XXX(victor): remove interlace-mode when deinterlacing is
|
|
||||||
* supported */
|
|
||||||
return gst_caps_new_simple ("video/x-raw", "width", GST_TYPE_INT_RANGE,
|
return gst_caps_new_simple ("video/x-raw", "width", GST_TYPE_INT_RANGE,
|
||||||
self->min_width, self->max_width, "height", GST_TYPE_INT_RANGE,
|
self->min_width, self->max_width, "height", GST_TYPE_INT_RANGE,
|
||||||
self->min_height, self->max_height, "interlace-mode", G_TYPE_STRING,
|
self->min_height, self->max_height, NULL);
|
||||||
"progressive", NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GstCaps *
|
GstCaps *
|
||||||
|
@ -392,6 +392,12 @@ gst_va_vpp_set_info (GstVaBaseTransform * btrans, GstCaps * incaps,
|
|||||||
GstVaVpp *self = GST_VA_VPP (btrans);
|
GstVaVpp *self = GST_VA_VPP (btrans);
|
||||||
GstCapsFeatures *infeat, *outfeat;
|
GstCapsFeatures *infeat, *outfeat;
|
||||||
|
|
||||||
|
if (GST_VIDEO_INFO_INTERLACE_MODE (in_info) !=
|
||||||
|
GST_VIDEO_INFO_INTERLACE_MODE (out_info)) {
|
||||||
|
GST_ERROR_OBJECT (self, "input and output formats do not match");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (!gst_video_info_is_equal (in_info, out_info)) {
|
if (!gst_video_info_is_equal (in_info, out_info)) {
|
||||||
if (GST_VIDEO_INFO_FORMAT (in_info) != GST_VIDEO_INFO_FORMAT (out_info))
|
if (GST_VIDEO_INFO_FORMAT (in_info) != GST_VIDEO_INFO_FORMAT (out_info))
|
||||||
self->op_flags |= VPP_CONVERT_FORMAT;
|
self->op_flags |= VPP_CONVERT_FORMAT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user