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
46 fail();46 fail();
47 47
48 c = sws_internal(sws);48 c = sws_internal(sws);
49 c->srcFormat = from ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P;49 c->srcFormat = AV_PIX_FMT_YUV444P;
50 c->dstFormat = from ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P;50 c->dstFormat = AV_PIX_FMT_YUV444P;
51 c->srcRange = from;51 c->srcRange = from;
52 c->dstRange = !from;52 c->dstRange = !from;
53 53
@@ -92,8 +92,8 @@ static void check_chrConvertRange(int from) · 38 unmodified lines
92 fail();92 fail();
93 93
94 c = sws_internal(sws);94 c = sws_internal(sws);
95 c->srcFormat = from ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P;95 c->srcFormat = AV_PIX_FMT_YUV444P;
96 c->dstFormat = from ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P;96 c->dstFormat = AV_PIX_FMT_YUV444P;
97 c->srcRange = from;97 c->srcRange = from;
98 c->dstRange = !from;98 c->dstRange = !from;
99 99

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