Skip to content

Commit

Permalink
Add zstd compression
Browse files Browse the repository at this point in the history
Based on #423.

Co-authored-by: rcombs <rcombs@rcombs.me>
  • Loading branch information
robUx4 and rcombs committed Oct 24, 2024
1 parent 5fa462b commit 0e5f8dc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ebml_matroska.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,9 @@ Each block **MUST** be decompressable, even if no previous block is available in
<enum value="3" label="Header Stripping">
<documentation lang="en" purpose="definition">Octets in `ContentCompSettings` ((#contentcompsettings-element)) have been stripped from each frame.</documentation>
</enum>
<enum value="4" label="Zstandard" minver="5">
<documentation lang="en" purpose="definition">Zstandard (zstd) compression [@!RFC8878].</documentation>
</enum>
</restriction>
<extension type="stream copy" keep="1"/>
</element>
Expand Down
8 changes: 8 additions & 0 deletions matroska5_body.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,11 @@ definition:
: One language corresponding to the EditionString,
in the form defined in [@!RFC5646]; see [@!RFC9559, section 12] on language codes.

# Zstandard Compression

This document adds value "4" to the `ContentCompAlgo` element ([@RFC9559, section 5.1.4.1.31.6]).
It corresponds to the Zstandard (zstd) compression algorithm [@!RFC8878].

When the Zstandard compression algorithm is used, the `ContentCompSettings` element ([@RFC9559, section 5.1.4.1.31.7])
**MAY** optionally contain a dictionary to improve compression efficiency.

4 changes: 4 additions & 0 deletions matroska5_iana.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@

## Matroska Element IDs Registry Additions

## Matroska Compression Algorithms Registry Additions

This document adds value "4" to the "Matroska Compression Algorithms" registry.
It corresponds to the Zstandard compression algorithm described in section (#zstandard-compression).

0 comments on commit 0e5f8dc

Please sign in to comment.