Skip to content

Commit 0e5f8dc

Browse files
robUx4rcombs
andcommitted
Add zstd compression
Based on ietf-wg-cellar#423. Co-authored-by: rcombs <[email protected]>
1 parent 5fa462b commit 0e5f8dc

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

ebml_matroska.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,9 @@ Each block **MUST** be decompressable, even if no previous block is available in
12021202
<enum value="3" label="Header Stripping">
12031203
<documentation lang="en" purpose="definition">Octets in `ContentCompSettings` ((#contentcompsettings-element)) have been stripped from each frame.</documentation>
12041204
</enum>
1205+
<enum value="4" label="Zstandard" minver="5">
1206+
<documentation lang="en" purpose="definition">Zstandard (zstd) compression [@!RFC8878].</documentation>
1207+
</enum>
12051208
</restriction>
12061209
<extension type="stream copy" keep="1"/>
12071210
</element>

matroska5_body.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,11 @@ definition:
129129
: One language corresponding to the EditionString,
130130
in the form defined in [@!RFC5646]; see [@!RFC9559, section 12] on language codes.
131131

132+
# Zstandard Compression
133+
134+
This document adds value "4" to the `ContentCompAlgo` element ([@RFC9559, section 5.1.4.1.31.6]).
135+
It corresponds to the Zstandard (zstd) compression algorithm [@!RFC8878].
136+
137+
When the Zstandard compression algorithm is used, the `ContentCompSettings` element ([@RFC9559, section 5.1.4.1.31.7])
138+
**MAY** optionally contain a dictionary to improve compression efficiency.
139+

matroska5_iana.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22

33
## Matroska Element IDs Registry Additions
44

5+
## Matroska Compression Algorithms Registry Additions
6+
7+
This document adds value "4" to the "Matroska Compression Algorithms" registry.
8+
It corresponds to the Zstandard compression algorithm described in section (#zstandard-compression).

0 commit comments

Comments
 (0)