mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
lib/handsum: renumber quality from 0..=3 to 1..=4
This commit is contained in:
1 parent
5db6a08b6a
commit
979a9d898c
24 files changed
+107
-127
No files matched your search
+13
-13
@@ -66,7 +66,7 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the
|
||||
// ---------------- Handsum Tests
|
||||
|
||||
const char* //
|
||||
test_wuffs_handsum_decode_interface_c1q0() {
|
||||
test_wuffs_handsum_decode_interface_c1q1() {
|
||||
CHECK_FOCUS(__func__);
|
||||
wuffs_handsum__decoder dec;
|
||||
CHECK_STATUS("initialize",
|
||||
@@ -75,11 +75,11 @@ test_wuffs_handsum_decode_interface_c1q0() {
|
||||
WUFFS_INITIALIZE__LEAVE_INTERNAL_BUFFERS_UNINITIALIZED));
|
||||
return do_test__wuffs_base__image_decoder(
|
||||
wuffs_handsum__decoder__upcast_as__wuffs_base__image_decoder(&dec),
|
||||
"test/data/bricks-gray.c1q0.handsum", 0, SIZE_MAX, 16, 12, 0xFF040404);
|
||||
"test/data/bricks-gray.c1q1.handsum", 0, SIZE_MAX, 16, 12, 0xFF040404);
|
||||
}
|
||||
|
||||
const char* //
|
||||
test_wuffs_handsum_decode_interface_c1q2() {
|
||||
test_wuffs_handsum_decode_interface_c1q3() {
|
||||
CHECK_FOCUS(__func__);
|
||||
wuffs_handsum__decoder dec;
|
||||
CHECK_STATUS("initialize",
|
||||
@@ -88,11 +88,11 @@ test_wuffs_handsum_decode_interface_c1q2() {
|
||||
WUFFS_INITIALIZE__LEAVE_INTERNAL_BUFFERS_UNINITIALIZED));
|
||||
return do_test__wuffs_base__image_decoder(
|
||||
wuffs_handsum__decoder__upcast_as__wuffs_base__image_decoder(&dec),
|
||||
"test/data/bricks-gray.c1q2.handsum", 0, SIZE_MAX, 16, 12, 0xFF101010);
|
||||
"test/data/bricks-gray.c1q3.handsum", 0, SIZE_MAX, 16, 12, 0xFF101010);
|
||||
}
|
||||
|
||||
const char* //
|
||||
test_wuffs_handsum_decode_interface_c3q1() {
|
||||
test_wuffs_handsum_decode_interface_c3q2() {
|
||||
CHECK_FOCUS(__func__);
|
||||
wuffs_handsum__decoder dec;
|
||||
CHECK_STATUS("initialize",
|
||||
@@ -101,11 +101,11 @@ test_wuffs_handsum_decode_interface_c3q1() {
|
||||
WUFFS_INITIALIZE__LEAVE_INTERNAL_BUFFERS_UNINITIALIZED));
|
||||
return do_test__wuffs_base__image_decoder(
|
||||
wuffs_handsum__decoder__upcast_as__wuffs_base__image_decoder(&dec),
|
||||
"test/data/bricks-color.c3q1.handsum", 0, SIZE_MAX, 16, 12, 0xFF313D58);
|
||||
"test/data/bricks-color.c3q2.handsum", 0, SIZE_MAX, 16, 12, 0xFF313D58);
|
||||
}
|
||||
|
||||
const char* //
|
||||
test_wuffs_handsum_decode_interface_c3q3() {
|
||||
test_wuffs_handsum_decode_interface_c3q4() {
|
||||
CHECK_FOCUS(__func__);
|
||||
wuffs_handsum__decoder dec;
|
||||
CHECK_STATUS("initialize",
|
||||
@@ -114,7 +114,7 @@ test_wuffs_handsum_decode_interface_c3q3() {
|
||||
WUFFS_INITIALIZE__LEAVE_INTERNAL_BUFFERS_UNINITIALIZED));
|
||||
return do_test__wuffs_base__image_decoder(
|
||||
wuffs_handsum__decoder__upcast_as__wuffs_base__image_decoder(&dec),
|
||||
"test/data/bricks-color.c3q3.handsum", 0, SIZE_MAX, 16, 12, 0xFF0B337D);
|
||||
"test/data/bricks-color.c3q4.handsum", 0, SIZE_MAX, 16, 12, 0xFF0B337D);
|
||||
}
|
||||
|
||||
const char* //
|
||||
@@ -158,7 +158,7 @@ test_wuffs_handsum_decode_frame_config() {
|
||||
wuffs_base__io_buffer src = ((wuffs_base__io_buffer){
|
||||
.data = g_src_slice_u8,
|
||||
});
|
||||
CHECK_STRING(read_file(&src, "test/data/mona-lisa.21x32.c3q3.handsum"));
|
||||
CHECK_STRING(read_file(&src, "test/data/mona-lisa.21x32.c3q4.handsum"));
|
||||
|
||||
CHECK_STATUS("decode_frame_config #0",
|
||||
wuffs_handsum__decoder__decode_frame_config(&dec, &fc, &src));
|
||||
@@ -203,10 +203,10 @@ test_wuffs_handsum_decode_frame_config() {
|
||||
proc g_tests[] = {
|
||||
|
||||
test_wuffs_handsum_decode_frame_config,
|
||||
test_wuffs_handsum_decode_interface_c1q0,
|
||||
test_wuffs_handsum_decode_interface_c1q2,
|
||||
test_wuffs_handsum_decode_interface_c3q1,
|
||||
test_wuffs_handsum_decode_interface_c3q3,
|
||||
test_wuffs_handsum_decode_interface_c1q1,
|
||||
test_wuffs_handsum_decode_interface_c1q3,
|
||||
test_wuffs_handsum_decode_interface_c3q2,
|
||||
test_wuffs_handsum_decode_interface_c3q4,
|
||||
test_wuffs_handsum_decode_truncated_input,
|
||||
|
||||
#ifdef WUFFS_MIMIC
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1 +0,0 @@
|
||||
þ׆¼“‡§ŠˆHˆ—˜›‰¨˜uxºh{ixHކ{xwv‰»§†¬˜†©Y—§SV´§v
|
||||
@@ -1 +1 @@
|
||||
ţ×+UÚ‡7ź…¦�h�š†Ô{ĽC—‡Dy§´›z¦Šwe“şÔŐ‡&mYćRi�‰h噋Sz¶úk¦»{śTÚęIÍpoŐ¨ăSË6…đb
|
||||
þ׆¼“‡§ŠˆHˆ—˜›‰¨˜uxºh{ixHކ{xwv‰»§†¬˜†©Y—§SV´§v
|
||||
@@ -1 +1 @@
|
||||
ţ×KUÚ‡��7ź…‡h¦�h‰‡�š†i‰Ô{ĽŞ‡C—‡™�Dy§‰š´›z†x¦Šw��e“ş—yÔŐ‡�‰&mYx�ćRi™‡�‰hx�噋†–Sz¶�yúk¦gZ»{§—śTÚÇ‹ęIÍe•poş·Ő¨ăK�SË6Y“…đb‡o
|
||||
ţ×+UÚ‡7ź…¦�h�š†Ô{ĽC—‡Dy§´›z¦Šwe“şÔŐ‡&mYćRi�‰h噋Sz¶úk¦»{śTÚęIÍpoŐ¨ăSË6…đb
|
||||
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
|
||||
�ヨsャ迫ヲzx(汚剱汚冱wケx及x(合休ww�
|
||||
@@ -1 +1 @@
|
||||
ўж+cк�%����x���в{Ыa��RyЈВ�zЃ�wR�ЊТХw4lhдSh��xг�{ayЇ
|
||||
�ヨsャ迫ヲzx(汚剱汚冱wケx及x(合休ww�
|
||||
@@ -1 +1 @@
|
||||
ţÖKcÚ‡�‡%ꔆh“�x‰�‚š‡x�Ň{ËŞ‡a—�™�Ry¨‰š˛‹z‡xىw��R“Ş—yÂĹw�‰4lhx�ÔSh����xx�Ó™{‡–ay§�y
|
||||
ўж+cк�%����x���в{Ыa��RyЈВ�zЃ�wR�ЊТХw4lhдSh��xг�{ayЇ
|
||||
@@ -1 +1 @@
|
||||
þÖkrMø©ðr45‚8¶ƒ9«b)ªs8{¡—ôˆ€(…‰�&{‘(vt˜¡(Öq‰ƒ)™¡(Tƒ(šrDD’©hˆ¤!MQKÉ”[qІH®€ˆ¥«�(bt,I�—
|
||||
ţÖKcÚ‡�‡%ꔆh“�x‰�‚š‡x�Ň{ËŞ‡a—�™�Ry¨‰š˛‹z‡xىw��R“Ş—yÂĹw�‰4lhx�ÔSh����xx�Ó™{‡–ay§�y
|
||||
@@ -0,0 +1 @@
|
||||
þÖkrMø©ðr45‚8¶ƒ9«b)ªs8{¡—ôˆ€(…‰�&{‘(vt˜¡(Öq‰ƒ)™¡(Tƒ(šrDD’©hˆ¤!MQKÉ”[qІH®€ˆ¥«�(bt,I�—
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -4,10 +4,10 @@ OK. c3528d19 test/data/49.bn4.nie
|
||||
OK. c3528d19 test/data/49.bn8.nie
|
||||
OK. e3bae566 test/data/49.bp4.nie
|
||||
OK. c3528d19 test/data/49.bp8.nie
|
||||
OK. bf3fd567 test/data/49.c3q1.handsum
|
||||
OK. 7cac72e5 test/data/49.c3q3.handsum
|
||||
OK. b8e18bd1 test/data/49.c4q1.handsum
|
||||
OK. 295c387a test/data/49.c4q3.handsum
|
||||
OK. bf3fd567 test/data/49.c3q2.handsum
|
||||
OK. 7cac72e5 test/data/49.c3q4.handsum
|
||||
OK. b8e18bd1 test/data/49.c4q2.handsum
|
||||
OK. 295c387a test/data/49.c4q4.handsum
|
||||
OK. f2a0a3f6 test/data/49.png
|
||||
OK. d3bb0beb test/data/DCI-P3-D65.icc
|
||||
OK. 646e081a test/data/animated-red-blue.000000.nie
|
||||
@@ -56,10 +56,10 @@ OK. 27a6e456 test/data/artificial-thumbhash/VggKDYAW6lZvdYd6d2iZh_p4GE_k.th
|
||||
OK. d9ce0e57 test/data/artificial-thumbhash/YJqGPQw7sFlslqhFafSE-Q6oJ1h2iHB2Rw.png
|
||||
OK. 4965134c test/data/artificial-thumbhash/YJqGPQw7sFlslqhFafSE-Q6oJ1h2iHB2Rw.th
|
||||
OK. 076cb375 test/data/bricks-color.bmp
|
||||
OK. 1bb2c55a test/data/bricks-color.c3q0.handsum
|
||||
OK. 74bb07e1 test/data/bricks-color.c3q1.handsum
|
||||
OK. 43dd4660 test/data/bricks-color.c3q2.handsum
|
||||
OK. 79b8bd57 test/data/bricks-color.c3q3.handsum
|
||||
OK. 1bb2c55a test/data/bricks-color.c3q1.handsum
|
||||
OK. 74bb07e1 test/data/bricks-color.c3q2.handsum
|
||||
OK. 43dd4660 test/data/bricks-color.c3q3.handsum
|
||||
OK. 79b8bd57 test/data/bricks-color.c3q4.handsum
|
||||
OK. bdbbfadb test/data/bricks-color.etc1.pkm
|
||||
OK. 41e6110e test/data/bricks-color.etc1s.pkm
|
||||
OK. 5670f263 test/data/bricks-color.etc2.pkm
|
||||
@@ -75,11 +75,11 @@ OK. f36c2e80 test/data/bricks-dither.lossless.webp
|
||||
OK. f36c2e80 test/data/bricks-dither.no-ancillary.png
|
||||
OK. f36c2e80 test/data/bricks-dither.png
|
||||
OK. c2bce675 test/data/bricks-gray.bmp
|
||||
OK. 00db551d test/data/bricks-gray.c1q0.handsum
|
||||
OK. 5c979d98 test/data/bricks-gray.c1q1.handsum
|
||||
OK. 23430f55 test/data/bricks-gray.c1q2.handsum
|
||||
OK. 6065d955 test/data/bricks-gray.c1q3.handsum
|
||||
OK. 6065d955 test/data/bricks-gray.c3q3.handsum
|
||||
OK. 00db551d test/data/bricks-gray.c1q1.handsum
|
||||
OK. 5c979d98 test/data/bricks-gray.c1q2.handsum
|
||||
OK. 23430f55 test/data/bricks-gray.c1q3.handsum
|
||||
OK. 6065d955 test/data/bricks-gray.c1q4.handsum
|
||||
OK. 6065d955 test/data/bricks-gray.c3q4.handsum
|
||||
OK. c2bce675 test/data/bricks-gray.gif
|
||||
OK. 3a2478ad test/data/bricks-gray.jpeg
|
||||
OK. c2bce675 test/data/bricks-gray.lossless.webp
|
||||
@@ -141,8 +141,8 @@ OK. dcbb225a test/data/hippopotamus.ppm
|
||||
OK. ed4b78fc test/data/hippopotamus.regular.gif
|
||||
OK. dcbb225a test/data/hippopotamus.regular.png
|
||||
BAD e4c5926b test/data/hippopotamus.regular.truncated.png
|
||||
OK. 57441dc9 test/data/mona-lisa.21x32.c3q0.handsum
|
||||
OK. 39d18fce test/data/mona-lisa.21x32.c3q3.handsum
|
||||
OK. 57441dc9 test/data/mona-lisa.21x32.c3q1.handsum
|
||||
OK. 39d18fce test/data/mona-lisa.21x32.c3q4.handsum
|
||||
OK. f6bb81e2 test/data/mona-lisa.21x32.etc2.pkm
|
||||
OK. 012ce4cf test/data/mona-lisa.21x32.lossless.webp
|
||||
OK. 012ce4cf test/data/mona-lisa.21x32.png
|
||||
@@ -200,3 +200,4 @@ OK. 38cb4cbf test/data/red-blue-gradient.gamma2dot2.png
|
||||
OK. 38cb4cbf test/data/red-blue-gradient.vanilla.png
|
||||
OK. 75060601 test/data/rgb24png.bmp
|
||||
OK. 79ab18b6 test/data/ridiculously-fast.png
|
||||
OK. 4c6d02c3 test/data/transparent-1x1.gif
|
||||
Reference in new issue
Block a user