Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRC Huffman encoding missing root in code bitstream #490

Open
t3dr0 opened this issue Nov 12, 2024 · 0 comments
Open

PRC Huffman encoding missing root in code bitstream #490

t3dr0 opened this issue Nov 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't correct PRC ISO 14739-1:2014

Comments

@t3dr0
Copy link

t3dr0 commented Nov 12, 2024

PRC Huffman missing a code bit representing the tree's root
ISO 14739-1:2014 Table 345 Encoding shows "value", "code", "code length".
It appears these codes leave out the root.

A proposed solution is to amend this table to:

Value Code Code Length
3 100 3
7 101 3
5 110 3
1 1110 4
9 1111 4

where the highest bit in the code represents the root of the table.

@t3dr0 t3dr0 added the bug Something isn't correct label Nov 12, 2024
@petervwyatt petervwyatt added the PRC ISO 14739-1:2014 label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't correct PRC ISO 14739-1:2014
Projects
None yet
Development

No branches or pull requests

3 participants