edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB3d2e08fTahinli7 days ago3929 commits
| 1 | #!/usr/bin/env python3 |
| 2 | """Compare ec-dts output (f32le, interleaved, 24-bit scaled by 2^-23) against |
| 3 | an ffmpeg decode (s32le or f32le, interleaved). |
| 4 | |
| 5 | usage: compare.py ours.f32 ref.raw nch kind [perm [skip]] |
| 6 | kind: s32 (ffmpeg -flags +bitexact, 24-bit << 8) or f32 (ffmpeg default float) |
| 7 | perm: comma list, for each reference channel the index of our channel |
| 8 | skip: samples per channel ours leads the reference by (ffmpeg trims the |
| 9 | start of .dtshd files by 1024) |
| 10 | Exit status 0 when every sample is identical. |
| 11 | """ |
| 12 | |
| 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 | += 1 |
| 39 | |
| 40 | = |
| 41 | |
| 42 | |
| 43 | |
| 44 |