4 ms·
When I need them I usually implement the codec used in MKV format: https://www.rfc-editor.org/rfc/rfc8794.html https://www.rfc-editor.org/rfc/rfc8794.html Simi
by Const-me 2y ago
When I need them I usually implement the codec used in MKV format: https://www.rfc-editor.org/rfc/rfc8794.html https://www.rfc-editor.org/rfc/rfc8794.html
Similar performance characteristics, i.e. just the first byte tells the encoded length, no need to test every byte. Luckily, most programming languages have intrinsic functions for BSWAP instruction.
- repelsteeltje 2y agoMkv (and av1, vp8, vp9) use the leb128 format which the article mentions is inefficient parse for off the shelf CPUs. Leb128 is relatively efficient in bitstream and sidesteps potential mpeg-la patent issues. (H264, maybe 14496 part 14)
- Const-me 2y agoI don't think they do. These formats are based on EBML, see the RFC link in my previous comment. That VINT encoding is not LEB128, it's better. BTW I once implemented my own parser in C#, see that source file: https://github.com/Const-me/Vrmac/blob/master/VrmacVideo/Containers/MKV/Primitives.cs https://github.com/Const-me/Vrmac/blob/master/VrmacVideo/Con...