edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | |
| 2 | |
| 3 | use fuzz_target; |
| 4 | |
| 5 | /// Harness caps (see lanes/fuzz1hvideo.report.md): at most 8 IVF frames per input, and the |
| 6 | /// stream is cut before the first key frame with luma above 128x128. |
| 7 | const MAX_DIM: u32 = 128; |
| 8 | const MAX_FRAMES: usize = 8; |
| 9 | const IVF_HEADER: usize = 32; |
| 10 | const IVF_FRAME_HEADER: usize = 12; |
| 11 | |
| 12 | fuzz_target! |
| 13 | |
| 14 | |
| 15 | ; |
| 16 | |
| 17 | /// The prefix of `data` that holds at most `MAX_FRAMES` IVF frames and no oversized key frame. |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | /// Size of a key frame from its frame tag and start code (RFC 6386 9.1), or `None` for |
| 40 | /// inter frames and frames too short to hold the header. |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 |