mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
std/handsum: redo Handsum image file format
This commit is contained in:
1 parent
32b741db7f
commit
f8c6b35ff5
25 files changed
+1795
-901
No files matched your search
@@ -39,7 +39,7 @@ See example/convert-to-nia and example/imageviewer in the Wuffs repository for
|
||||
examples of using its C and C++ APIs.
|
||||
|
||||
Coming back to this program, pass the -demo flag to decode six versions of the
|
||||
same image of the Mona Lisa, in Thumbhash, Handsum (HVXC), Handsum (HVPC),
|
||||
same image of the Mona Lisa, in Thumbhash, Handsum (q=0), Handsum (q=3),
|
||||
PKM/ETC2, JPEG and PNG formats. Only the last one is lossless.
|
||||
|
||||
As of April 2026, the actual STB Image implementation only decodes two out of
|
||||
@@ -230,30 +230,30 @@ const uint8_t g_src_ptr__mona_lisa_21_32_th[] = {
|
||||
};
|
||||
const size_t g_src_len__mona_lisa_21_32_th = 24;
|
||||
|
||||
const uint8_t g_src_ptr__mona_lisa_21_32_hvxc_handsum[] = {
|
||||
0xfe, 0xd7, 0x74, 0x17, 0x6f, 0xef, 0x00, 0x08, 0xa9, 0xfb, 0x6a, 0xf0,
|
||||
0x1d, 0xff, 0xf0, 0xa0, 0xcb, 0xe2, 0x04, 0x4f, 0xad, 0xfa, 0xfb, 0x0c,
|
||||
0x2e, 0x26, 0xf9, 0x8a, 0x6f, 0xac, 0x9f, 0xbf, 0xc8, 0x67, 0x90, 0xc9,
|
||||
0x7b, 0x89, 0x77, 0x88, 0x96, 0x6a, 0x75, 0x75, 0x87, 0x87, 0x88, 0xa9,
|
||||
const uint8_t g_src_ptr__mona_lisa_21_32_r0_handsum[] = {
|
||||
0xfe, 0xd7, 0x9a, 0x76, 0x8b, 0x9a, 0x76, 0x58, 0x88, 0x99, 0x68, 0xb6,
|
||||
0x79, 0xaa, 0xa6, 0x86, 0x99, 0x97, 0x63, 0x7b, 0x89, 0x98, 0xb9, 0x59,
|
||||
0x79, 0x28, 0xb8, 0x88, 0x8a, 0x89, 0x8a, 0x99, 0x98, 0x77, 0x94, 0x98,
|
||||
0x79, 0x88, 0x88, 0x88, 0x97, 0x79, 0x87, 0x77, 0x88, 0x88, 0x88, 0x98,
|
||||
};
|
||||
const size_t g_src_len__mona_lisa_21_32_hvxc_handsum = 48;
|
||||
const size_t g_src_len__mona_lisa_21_32_r0_handsum = 48;
|
||||
|
||||
const uint8_t g_src_ptr__mona_lisa_21_32_hvpc_handsum[] = {
|
||||
0xfe, 0xd7, 0xf4, 0x87, 0x7a, 0xa8, 0x87, 0x7b, 0x87, 0xa7, 0x84, 0x59,
|
||||
0x47, 0x95, 0x98, 0xa4, 0x56, 0x78, 0x54, 0x77, 0x2a, 0x94, 0x59, 0x87,
|
||||
0x93, 0x88, 0xfd, 0x96, 0x76, 0xa8, 0x97, 0x7b, 0xb8, 0x14, 0x5b, 0x2f,
|
||||
0xb8, 0x97, 0x87, 0x14, 0x25, 0x7c, 0xa5, 0x66, 0x58, 0x18, 0x3e, 0xb8,
|
||||
0xc4, 0x66, 0xa8, 0xb5, 0x48, 0x64, 0xb3, 0x66, 0x0a, 0x73, 0x36, 0x98,
|
||||
0x83, 0x2b, 0x87, 0x71, 0x27, 0x6a, 0xa6, 0x66, 0x76, 0x81, 0x18, 0x79,
|
||||
0x82, 0x14, 0x58, 0x34, 0x30, 0x88, 0x92, 0x48, 0x6b, 0x81, 0x17, 0x78,
|
||||
0x91, 0x38, 0x7a, 0x63, 0x2a, 0x97, 0x81, 0x27, 0x8a, 0x71, 0x07, 0x78,
|
||||
0x90, 0x18, 0x79, 0x87, 0x68, 0x77, 0x87, 0x79, 0x88, 0x87, 0x77, 0x85,
|
||||
0xb7, 0x76, 0x78, 0x87, 0x79, 0xa7, 0x98, 0x8a, 0x97, 0x78, 0x79, 0xc8,
|
||||
0x98, 0x9a, 0x88, 0x88, 0x99, 0xaa, 0x78, 0x89, 0x98, 0x88, 0x99, 0x8a,
|
||||
0x69, 0x89, 0x98, 0x89, 0x97, 0x78, 0x88, 0x97, 0x79, 0x98, 0x98, 0x68,
|
||||
0x89, 0x87, 0x89,
|
||||
const uint8_t g_src_ptr__mona_lisa_21_32_r3_handsum[] = {
|
||||
0xfe, 0xd7, 0xfa, 0x87, 0x76, 0x68, 0x87, 0x75, 0x89, 0x77, 0x8c, 0xb7,
|
||||
0xc7, 0x9b, 0x78, 0x64, 0x5a, 0x98, 0xb4, 0x79, 0xe6, 0x75, 0x57, 0x8a,
|
||||
0x84, 0x88, 0x03, 0x86, 0x7a, 0x68, 0x87, 0x76, 0x68, 0xf4, 0x55, 0xe2,
|
||||
0x68, 0x9a, 0x89, 0xf4, 0x3b, 0x94, 0x75, 0x6a, 0xb8, 0xf8, 0x32, 0x68,
|
||||
0x55, 0x6a, 0x78, 0x55, 0x48, 0xac, 0x53, 0x6b, 0xf6, 0x93, 0x3b, 0x78,
|
||||
0x83, 0x25, 0x99, 0x92, 0x29, 0xb6, 0x66, 0x6a, 0x9a, 0x81, 0x19, 0x97,
|
||||
0x92, 0x2c, 0xb9, 0xd5, 0x3f, 0x88, 0x82, 0x48, 0xa6, 0x91, 0x19, 0x98,
|
||||
0x71, 0x38, 0x96, 0xa3, 0x26, 0x79, 0x81, 0x29, 0x97, 0x91, 0x1a, 0x98,
|
||||
0x81, 0x19, 0x97, 0x95, 0x58, 0xbb, 0x86, 0x57, 0x98, 0x96, 0x5a, 0x9e,
|
||||
0x26, 0x6c, 0x99, 0x87, 0x76, 0x4a, 0x78, 0x84, 0x6a, 0xa9, 0x67, 0x08,
|
||||
0x78, 0x94, 0x88, 0x88, 0x97, 0x45, 0xa8, 0x86, 0x78, 0x89, 0xa5, 0x85,
|
||||
0xba, 0x86, 0x58, 0x8a, 0x9a, 0xa8, 0x89, 0x9a, 0xa7, 0x79, 0xa9, 0xc8,
|
||||
0x99, 0x8b, 0x87,
|
||||
};
|
||||
const size_t g_src_len__mona_lisa_21_32_hvpc_handsum = 147;
|
||||
const size_t g_src_len__mona_lisa_21_32_r3_handsum = 147;
|
||||
|
||||
const uint8_t g_src_ptr__mona_lisa_21_32_etc2_pkm[] = {
|
||||
0x50, 0x4b, 0x4d, 0x20, 0x32, 0x30, 0x00, 0x01, 0x00, 0x18, 0x00, 0x20,
|
||||
@@ -1110,14 +1110,14 @@ main(int argc, char** argv) {
|
||||
g_src_len__mona_lisa_21_32_th,
|
||||
},
|
||||
{
|
||||
"«demo»/mona-lisa.21x32.hvxc.handsum",
|
||||
g_src_ptr__mona_lisa_21_32_hvxc_handsum,
|
||||
g_src_len__mona_lisa_21_32_hvxc_handsum,
|
||||
"«demo»/mona-lisa.21x32.r0.handsum",
|
||||
g_src_ptr__mona_lisa_21_32_r0_handsum,
|
||||
g_src_len__mona_lisa_21_32_r0_handsum,
|
||||
},
|
||||
{
|
||||
"«demo»/mona-lisa.21x32.hvpc.handsum",
|
||||
g_src_ptr__mona_lisa_21_32_hvpc_handsum,
|
||||
g_src_len__mona_lisa_21_32_hvpc_handsum,
|
||||
"«demo»/mona-lisa.21x32.r3.handsum",
|
||||
g_src_ptr__mona_lisa_21_32_r3_handsum,
|
||||
g_src_len__mona_lisa_21_32_r3_handsum,
|
||||
},
|
||||
{
|
||||
"«demo»/mona-lisa.21x32.etc2.pkm",
|
||||
|
||||
Reference in new issue
Block a user