mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
vapostproc: Check for colorimetry changes.
It uses what's merged in https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2765 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2777>
This commit is contained in:
parent
fed0dfdd46
commit
ce7070bf5b
1 changed files with 8 additions and 4 deletions
|
@ -527,8 +527,14 @@ gst_va_vpp_set_info (GstVaBaseTransform * btrans, GstCaps * incaps,
|
|||
}
|
||||
}
|
||||
|
||||
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_is_equal (in_info, out_info)) {
|
||||
self->op_flags &= ~VPP_CONVERT_FORMAT & ~VPP_CONVERT_SIZE;
|
||||
} else {
|
||||
if ((GST_VIDEO_INFO_FORMAT (in_info) != GST_VIDEO_INFO_FORMAT (out_info))
|
||||
|| !gst_video_colorimetry_is_equivalent (&GST_VIDEO_INFO_COLORIMETRY
|
||||
(in_info), GST_VIDEO_INFO_COMP_DEPTH (in_info, 0),
|
||||
&GST_VIDEO_INFO_COLORIMETRY (out_info),
|
||||
GST_VIDEO_INFO_COMP_DEPTH (out_info, 0)))
|
||||
self->op_flags |= VPP_CONVERT_FORMAT;
|
||||
else
|
||||
self->op_flags &= ~VPP_CONVERT_FORMAT;
|
||||
|
@ -539,8 +545,6 @@ gst_va_vpp_set_info (GstVaBaseTransform * btrans, GstCaps * incaps,
|
|||
self->op_flags |= VPP_CONVERT_SIZE;
|
||||
else
|
||||
self->op_flags &= ~VPP_CONVERT_SIZE;
|
||||
} else {
|
||||
self->op_flags &= ~VPP_CONVERT_FORMAT & ~VPP_CONVERT_SIZE;
|
||||
}
|
||||
|
||||
infeat = gst_caps_get_features (incaps, 0);
|
||||
|
|
Loading…
Reference in a new issue