mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-14 11:00:08 +01:00
checkasm/sw_range_convert: use YUV pixel formats instead of YUVJ
We are already setting the range, so we can use regular YUV pixel formats instead of YUVJ.
This commit is contained in:
@@ -46,8 +46,8 @@ static void check_lumConvertRange(int from)
|
|||||||
fail();
|
fail();
|
||||||
|
|
||||||
c = sws_internal(sws);
|
c = sws_internal(sws);
|
||||||
c->srcFormat = from ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P;
|
c->srcFormat = AV_PIX_FMT_YUV444P;
|
||||||
c->dstFormat = from ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P;
|
c->dstFormat = AV_PIX_FMT_YUV444P;
|
||||||
c->srcRange = from;
|
c->srcRange = from;
|
||||||
c->dstRange = !from;
|
c->dstRange = !from;
|
||||||
|
|
||||||
@@ -92,8 +92,8 @@ static void check_chrConvertRange(int from)
|
|||||||
fail();
|
fail();
|
||||||
|
|
||||||
c = sws_internal(sws);
|
c = sws_internal(sws);
|
||||||
c->srcFormat = from ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P;
|
c->srcFormat = AV_PIX_FMT_YUV444P;
|
||||||
c->dstFormat = from ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P;
|
c->dstFormat = AV_PIX_FMT_YUV444P;
|
||||||
c->srcRange = from;
|
c->srcRange = from;
|
||||||
c->dstRange = !from;
|
c->dstRange = !from;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user