edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB052d1d3Tahinli2 months ago3627 commits
| 1 | #!/usr/bin/env bash |
| 2 | # Provision the libaom oracle the ec-av1 gates and every decode-verification |
| 3 | # claim depend on: the C source (read as ground truth) plus aomenc/aomdec. |
| 4 | # |
| 5 | # It lives under ~/.cache, NOT /tmp: on 2026-08-30 a tmpfs reclaim wiped |
| 6 | # /tmp/libaom-src and all 20 aomenc gates in crates/ec-av1/src/stream.rs |
| 7 | # started SKIPping, leaving a green-but-vacuous suite. Re-run this whenever |
| 8 | # `cargo test -p ec-av1` prints "SKIP ...: no aomenc at ...". |
| 9 | # |
| 10 | # Needs an assembler (nasm or yasm) for the SIMD build. Without one it falls |
| 11 | # back to AOM_TARGET_CPU=generic (C only) automatically -- decode is normative |
| 12 | # so aomdec stays bit-exact either way, but encode is slower, which matters |
| 13 | # because every gate shells out to aomenc 40 times. Install nasm for speed. |
| 14 | |
| 15 | |
| 16 | VERSION="" |
| 17 | ROOT="" |
| 18 | SRC="/src" |
| 19 | BUILD="/build" |
| 20 | |
| 21 | if [; then |
| 22 | |
| 23 | fi |
| 24 | |
| 25 | # A cmake build tree bakes in its own absolute path and its source's, so a |
| 26 | # build dir that was produced elsewhere and then moved cannot regenerate |
| 27 | # (`ninja: error: rebuilding build.ninja`) -- which silently costs you the |
| 28 | # ability to re-instrument aomdec later. Never stage a build under one name |
| 29 | # and rename it; configure it where it will live. If the cache disagrees with |
| 30 | # where we are now, drop it and reconfigure in place. |
| 31 | if [ && |
| 32 | ; then |
| 33 | |
| 34 | |
| 35 | |
| 36 | fi |
| 37 | |
| 38 | CPU_ARGS=() |
| 39 | if [; then |
| 40 | CPU_ARGS=(-DAOM_TARGET_CPU="") |
| 41 | elif ! && ; then |
| 42 | |
| 43 | CPU_ARGS=(-DAOM_TARGET_CPU=generic) |
| 44 | fi |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 |