edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | //! Entry points the fuzz targets reach below the public API: the EBML walk, lacing, |
| 2 | //! block headers, `Tracks` (with `CodecPrivate` and `ContentEncodings`), and the |
| 3 | //! `Cues`/`SeekHead` index. Each function is a thin call into the module that owns |
| 4 | //! the parser. Hidden from the docs; not a stable interface. |
| 5 | |
| 6 | use Range; |
| 7 | |
| 8 | use ; |
| 9 | |
| 10 | use crate::; |
| 11 | |
| 12 | /// How deep [`ebml_walk`] descends into nested masters. |
| 13 | const WALK_DEPTH: u32 = 8; |
| 14 | |
| 15 | /// Walks `buf` as EBML: the head element, then every child of every master up to |
| 16 | /// [`WALK_DEPTH`], each payload read as an unsigned, float and string. Returns the |
| 17 | /// number of elements visited. |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | /// `buf` as the payload of a laced block with the given lacing (1 Xiph, 2 fixed, |
| 43 | /// 3 EBML). Returns the frame ranges. |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | /// `buf` as a whole `SimpleBlock` or `Block` body: track number, timecode, flags and |
| 49 | /// the lace. Returns the number of frames it holds. |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | /// `buf` as a `Tracks` body, with `scale_ns` as the file's `TimestampScale`. Returns |
| 55 | /// the number of streams that resolve. |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | /// `buf` as a `Cues` body in a segment that starts at `segment`. Returns the cue |
| 62 | /// points that resolve. |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | /// `buf` as a `SeekHead` body. Returns the entries that resolve. |
| 68 | |
| 69 | |
| 70 |