mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
video-converter: disable fastpath when scaling and gamma
Disable the fastpath when scaling and doing gamma remap.
This commit is contained in:
parent
bf916a244d
commit
cb5ec197da
1 changed files with 4 additions and 2 deletions
|
@ -4282,11 +4282,13 @@ video_converter_lookup_fastpath (GstVideoConverter * convert)
|
|||
/* we don't do gamma conversion in fastpath */
|
||||
in_transf = convert->in_info.colorimetry.transfer;
|
||||
out_transf = convert->out_info.colorimetry.transfer;
|
||||
if (CHECK_GAMMA_REMAP (convert) && in_transf != out_transf)
|
||||
return FALSE;
|
||||
|
||||
same_size = (width == convert->out_width && height == convert->out_height);
|
||||
|
||||
/* fastpaths don't do gamma */
|
||||
if (CHECK_GAMMA_REMAP (convert) && (!same_size || in_transf != out_transf))
|
||||
return FALSE;
|
||||
|
||||
in_format = GST_VIDEO_INFO_FORMAT (&convert->in_info);
|
||||
out_format = GST_VIDEO_INFO_FORMAT (&convert->out_info);
|
||||
|
||||
|
|
Loading…
Reference in a new issue