[FFmpeg-devel] [PATCH] swscale: Take the destination range into account for yuv->rgb->yuv conversions
Michael Niedermayer
michael at niedermayer.cc
Sat Feb 19 17:48:31 EET 2022
On Fri, Feb 18, 2022 at 04:45:46PM +0200, Martin Storsjö wrote:
> The range parameters need to be set up before calling
> sws_init_context (which selects which fastpaths can be used;
> this gets called by sws_getContext); solely passing them via
> sws_setColorspaceDetails isn't enough.
>
> This fixes producing full range YUV range output when doing
> YUV->YUV conversions between different YUV color spaces.
>
> Signed-off-by: Martin Storsjö <martin at martin.st>
> ---
> libswscale/utils.c | 11 ++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
Probably ok
please add a fate test for this
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Modern terrorism, a quick summary: Need oil, start war with country that
has oil, kill hundread thousand in war. Let country fall into chaos,
be surprised about raise of fundamantalists. Drop more bombs, kill more
people, be surprised about them taking revenge and drop even more bombs
and strip your own citizens of their rights and freedoms. to be continued
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220219/8f7ff970/attachment.sig>
More information about the ffmpeg-devel
mailing list