edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | //! Decode one AV1 OBU stream (low-overhead, `ffmpeg -f obu`) and report the |
| 2 | //! decode rate, for the 1080p30 realtime criterion in DONE.md. |
| 3 | //! |
| 4 | //! ```text |
| 5 | //! cargo run --release -p ec-av1 --example decode_bench -- s.obu [--threads N] |
| 6 | //! cargo run --release -p ec-av1 --example decode_bench -- s.obu --threads N --raw | md5sum |
| 7 | //! ``` |
| 8 | //! |
| 9 | //! Without `--threads` the decoder's own default is used (`EC_AV1_THREADS`, or |
| 10 | //! the core-count default). `--raw` writes every shown frame as 8-bit planar |
| 11 | //! YUV to stdout instead of timing only, so its md5 can be compared with |
| 12 | //! `ffmpeg -i s.obu -f rawvideo -pix_fmt yuv420p - | md5sum`. Timing goes to |
| 13 | //! stderr in both modes. |
| 14 | use Write; |
| 15 | use Instant; |
| 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 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 |