mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
d3d11convert: Don't passthrough if colorimetry conversion is required
Different input/output colorimetry requires conversion Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2581>
This commit is contained in:
parent
f3f905b491
commit
3a44d14ac8
1 changed files with 3 additions and 1 deletions
|
@ -1778,7 +1778,9 @@ gst_d3d11_base_convert_set_info (GstD3D11BaseFilter * filter,
|
||||||
|
|
||||||
if (in_info->width == out_info->width && in_info->height == out_info->height
|
if (in_info->width == out_info->width && in_info->height == out_info->height
|
||||||
&& in_info->finfo == out_info->finfo && self->borders_w == 0 &&
|
&& in_info->finfo == out_info->finfo && self->borders_w == 0 &&
|
||||||
self->borders_h == 0) {
|
self->borders_h == 0 &&
|
||||||
|
gst_video_colorimetry_is_equal (&in_info->colorimetry,
|
||||||
|
&out_info->colorimetry)) {
|
||||||
gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (filter), TRUE);
|
gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (filter), TRUE);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue