[FFmpeg-devel] [PATCH v2 05/16] checkasm/sw_range_convert: use YUV pixel formats instead of YUVJ
Ramiro Polla
ramiro.polla at gmail.com
Fri Sep 27 15:52:30 EEST 2024
We are already setting the range, so we can use regular YUV pixel
formats instead of YUVJ.
---
tests/checkasm/sw_range_convert.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c
index 1f04988097..8c8af995e7 100644
--- a/tests/checkasm/sw_range_convert.c
+++ b/tests/checkasm/sw_range_convert.c
@@ -44,8 +44,8 @@ static void check_lumConvertRange(int from)
if (sws_init_context(ctx, NULL, NULL) < 0)
fail();
- ctx->srcFormat = from ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P;
- ctx->dstFormat = from ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P;
+ ctx->srcFormat = AV_PIX_FMT_YUV444P;
+ ctx->dstFormat = AV_PIX_FMT_YUV444P;
ctx->srcRange = from;
ctx->dstRange = !from;
@@ -88,8 +88,8 @@ static void check_chrConvertRange(int from)
if (sws_init_context(ctx, NULL, NULL) < 0)
fail();
- ctx->srcFormat = from ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P;
- ctx->dstFormat = from ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P;
+ ctx->srcFormat = AV_PIX_FMT_YUV444P;
+ ctx->dstFormat = AV_PIX_FMT_YUV444P;
ctx->srcRange = from;
ctx->dstRange = !from;
--
2.30.2
More information about the ffmpeg-devel
mailing list