mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Replace RAC's Brotli Short Codec value by LZ4
RAC still supports Brotli (as a Long Codec, not a Short Codec). It's just no longer given a dedicated Short Codec value (and therefore less likely to be supported out-of-the-box by cmd/ractool). Brotli occupies a similar position to Zstandard on the speed versus size frontier. LZ4 occupies a noticably different position, faster but larger.
This commit is contained in:
1 parent
4006157f9f
commit
84878498ef
4 files changed
+17
-15
No files matched your search
+2
-2
@@ -83,7 +83,7 @@ func (c Codec) name() string {
|
||||
case 1:
|
||||
return "Zlib"
|
||||
case 2:
|
||||
return "Brotli"
|
||||
return "LZ4"
|
||||
case 4:
|
||||
return "Zstandard"
|
||||
}
|
||||
@@ -98,7 +98,7 @@ func parentChildCodecsValid(parent Codec, child Codec, parentHasMixBit bool) boo
|
||||
const (
|
||||
CodecZeroes = Codec(0x00 << 56)
|
||||
CodecZlib = Codec(0x01 << 56)
|
||||
CodecBrotli = Codec(0x02 << 56)
|
||||
CodecLZ4 = Codec(0x02 << 56)
|
||||
CodecZstandard = Codec(0x04 << 56)
|
||||
|
||||
codecMixBit = Codec(1 << 62)
|
||||
|
||||
Reference in new issue
Block a user