diff options
author | Martin Storsjö <martin@martin.st> | 2022-02-18 14:35:31 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2022-02-25 11:01:17 +0200 |
commit | c523724c693ee031d8b5351aff6232a1f7d86876 (patch) | |
tree | 3c34f199ea1c65e39084593afc9c69c793b8ff87 /tests/ref | |
parent | 8a00caf309bf248863f10e78b6836f1f537ee28b (diff) | |
download | ffmpeg-c523724c693ee031d8b5351aff6232a1f7d86876.tar.gz |
swscale: Take the destination range into account for yuv->rgb->yuv conversions
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@martin.st>
Diffstat (limited to 'tests/ref')
-rw-r--r-- | tests/ref/fate/sws-yuv-colorspace | 6 | ||||
-rw-r--r-- | tests/ref/fate/sws-yuv-range | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/ref/fate/sws-yuv-colorspace b/tests/ref/fate/sws-yuv-colorspace new file mode 100644 index 0000000000..bcf3c4b89c --- /dev/null +++ b/tests/ref/fate/sws-yuv-colorspace @@ -0,0 +1,6 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 352x288 +#sar 0: 0/1 +0, 0, 0, 1, 152064, 0xcbcb97b9 diff --git a/tests/ref/fate/sws-yuv-range b/tests/ref/fate/sws-yuv-range new file mode 100644 index 0000000000..5b6f93b225 --- /dev/null +++ b/tests/ref/fate/sws-yuv-range @@ -0,0 +1,6 @@ +#tb 0: 1/25 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 352x288 +#sar 0: 0/1 +0, 0, 0, 1, 152064, 0xe75c71a9 |