mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 17:01:35 +01:00
base: add magic numbers for LZMA, XZ
This commit is contained in:
1 parent
6184059c05
commit
2f5108978d
3 files changed
+10
No files matched your search
@@ -160,10 +160,13 @@ wuffs_base__magic_number_guess_fourcc(wuffs_base__slice_u8 prefix_data,
|
||||
{+0x4E50424D, "\x02\x50\x35\x0A"}, // NPBM (P5; *.pgm)
|
||||
{+0x4E50424D, "\x02\x50\x36\x0A"}, // NPBM (P6; *.ppm)
|
||||
{-0x52494646, "\x03\x52\x49\x46\x46"}, // RIFF
|
||||
{+0x4C5A4D41, "\x04\x5D\x00\x10\x00\x00"}, // LZMA
|
||||
{+0x4C5A4D41, "\x02\x5D\x00\x00"}, // LZMA
|
||||
{+0x4E494520, "\x02\x6E\xC3\xAF"}, // NIE
|
||||
{+0x514F4920, "\x03\x71\x6F\x69\x66"}, // QOI
|
||||
{+0x5A4C4942, "\x01\x78\x9C"}, // ZLIB
|
||||
{+0x504E4720, "\x03\x89\x50\x4E\x47"}, // PNG
|
||||
{+0x585A2020, "\x04\xFD\x37\x7A\x58\x5A"}, // XZ
|
||||
{+0x4A504547, "\x01\xFF\xD8"}, // JPEG
|
||||
};
|
||||
static const size_t table_len = sizeof(table) / sizeof(table[0]);
|
||||
|
||||
@@ -55,6 +55,7 @@ var FourCCs = [...][2]string{
|
||||
{"KVPK", "Key-Value Pair (Key)"},
|
||||
{"KVPV", "Key-Value Pair (Value)"},
|
||||
{"LZ4 ", "Lempel–Ziv 4"},
|
||||
{"LZMA", "Lempel–Ziv Markov-chain Algorithm"},
|
||||
{"MD ", "Markdown"},
|
||||
{"MTIM", "Modification Time"},
|
||||
{"MP3 ", "MPEG-1 Audio Layer III"},
|
||||
|
||||
@@ -731,6 +731,9 @@ typedef struct wuffs_base__transform__output__struct {
|
||||
// Lempel–Ziv 4.
|
||||
#define WUFFS_BASE__FOURCC__LZ4 0x4C5A3420
|
||||
|
||||
// Lempel–Ziv Markov-chain Algorithm.
|
||||
#define WUFFS_BASE__FOURCC__LZMA 0x4C5A4D41
|
||||
|
||||
// Markdown.
|
||||
#define WUFFS_BASE__FOURCC__MD 0x4D442020
|
||||
|
||||
@@ -18015,10 +18018,13 @@ wuffs_base__magic_number_guess_fourcc(wuffs_base__slice_u8 prefix_data,
|
||||
{+0x4E50424D, "\x02\x50\x35\x0A"}, // NPBM (P5; *.pgm)
|
||||
{+0x4E50424D, "\x02\x50\x36\x0A"}, // NPBM (P6; *.ppm)
|
||||
{-0x52494646, "\x03\x52\x49\x46\x46"}, // RIFF
|
||||
{+0x4C5A4D41, "\x04\x5D\x00\x10\x00\x00"}, // LZMA
|
||||
{+0x4C5A4D41, "\x02\x5D\x00\x00"}, // LZMA
|
||||
{+0x4E494520, "\x02\x6E\xC3\xAF"}, // NIE
|
||||
{+0x514F4920, "\x03\x71\x6F\x69\x66"}, // QOI
|
||||
{+0x5A4C4942, "\x01\x78\x9C"}, // ZLIB
|
||||
{+0x504E4720, "\x03\x89\x50\x4E\x47"}, // PNG
|
||||
{+0x585A2020, "\x04\xFD\x37\x7A\x58\x5A"}, // XZ
|
||||
{+0x4A504547, "\x01\xFF\xD8"}, // JPEG
|
||||
};
|
||||
static const size_t table_len = sizeof(table) / sizeof(table[0]);
|
||||
|
||||
Reference in new issue
Block a user