History

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.

Ramiro Polla committed 2 years ago

Commit d1acd681 parent a8ef1fa1 file · +4 −4Browse files

Unified · Split

tests/checkasm/sw_range_convert.c+4−4
@@ -46,8 +46,8 @@ static void check_lumConvertRange(int from) · 45 unmodified lines
4646 fail();
4747
4848 c = sws_internal(sws);
49− c->srcFormat = from ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P;
50− c->dstFormat = from ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P;
49+ c->srcFormat = AV_PIX_FMT_YUV444P;
50+ c->dstFormat = AV_PIX_FMT_YUV444P;
5151 c->srcRange = from;
5252 c->dstRange = !from;
5353
@@ -92,8 +92,8 @@ static void check_chrConvertRange(int from) · 38 unmodified lines
9292 fail();
9393
9494 c = sws_internal(sws);
95− c->srcFormat = from ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P;
96− c->dstFormat = from ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P;
95+ c->srcFormat = AV_PIX_FMT_YUV444P;
96+ c->dstFormat = AV_PIX_FMT_YUV444P;
9797 c->srcRange = from;
9898 c->dstRange = !from;
9999

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t