[File] [PATCH 2/3] Parse whether a WebP file is lossless
Emmanuel Gil Peyrot
linkmauve at linkmauve.fr
Fri Apr 5 12:39:47 UTC 2024
This is the Simple File Format (Lossless) part of the specification.
I couldn’t figure out how to parse packed 14-bit values for width and
height so I left these out for now.
---
magic/Magdir/riff | 3 +++
1 file changed, 3 insertions(+)
diff --git a/magic/Magdir/riff b/magic/Magdir/riff
index ec9289c7..b86502d3 100644
--- a/magic/Magdir/riff
+++ b/magic/Magdir/riff
@@ -158,6 +158,9 @@
>>>>>15 byte&0x80 =0x80 \b, bad color specification
>>>>>15 byte&0x40 =0x40 \b, no clamping required
>>>>>15 byte&0x40 =0x00 \b, decoders should clamp
+>0 string VP8L
+>>8 byte 0x2f \b, lossless
+>>>11 byte &0x01 \b, with alpha
>0 string VP8X
>>4 lelong 0x0a
>>>8 byte &0x02 \b, animated
--
2.44.0
More information about the File
mailing list