edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiBc2943bbTahinli3 months ago647 commits
| 1 | //! Dump decoded frames as PPM for visual inspection. |
| 2 | //! Usage: cargo run -p engine --release --example dump_frame -- <video.mp4> <frame_index> <out.ppm> [seek] |
| 3 | //! |
| 4 | //! With `seek` the frame is reached the way a scrub reaches it -- restart at the |
| 5 | //! random access point at or before it -- instead of by decoding the file from |
| 6 | //! its start. The two must be the same picture, byte for byte, which is what |
| 7 | //! makes a `cmp` of the two dumps a check that seeking into an open GOP decodes |
| 8 | //! the frame it claims and not a smear of missing references. |
| 9 | |
| 10 | use env; |
| 11 | use File; |
| 12 | use ; |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 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 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 |