edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | #!/usr/bin/env bash |
| 2 | # Provision an aomenc that can emit AFFINE global motion. |
| 3 | # |
| 4 | # Stock libaom NEVER writes a 6-parameter (AFFINE) global-motion model: its |
| 5 | # encoder-side model search is pinned to ROTZOOM, |
| 6 | # |
| 7 | # av1/encoder/global_motion_facade.c:24 |
| 8 | # #define FIRST_GLOBAL_TRANS_TYPE ROTZOOM |
| 9 | # #define LAST_GLOBAL_TRANS_TYPE ROTZOOM |
| 10 | # |
| 11 | # so no `--enable-global-motion=1` recipe over any content can produce the |
| 12 | # AFFINE case the decoder must still handle (the *bitstream* allows it, the |
| 13 | # spec's `global_motion_params` reads 6 params, and ffmpeg decodes it). This |
| 14 | # builds a side copy of the oracle source with that search range widened to |
| 15 | # AFFINE -- decode-normative output, still ordinary libaom, still verified |
| 16 | # against ffmpeg -- into its own prefix so the shared oracle at |
| 17 | # ~/.cache/aom-oracle (used by every other gate) is untouched. |
| 18 | # |
| 19 | # Used by the `a_real_affine_global_motion_stream_decodes_pixel_exact` gate in |
| 20 | # crates/ec-av1/src/stream.rs. |
| 21 | |
| 22 | |
| 23 | ROOT="" |
| 24 | ORACLE_SRC="/src" |
| 25 | SRC="/src" |
| 26 | BUILD="/build" |
| 27 | |
| 28 | if [; then |
| 29 | |
| 30 | |
| 31 | fi |
| 32 | |
| 33 | if [; then |
| 34 | |
| 35 | |
| 36 | fi |
| 37 | |
| 38 | facade="/av1/encoder/global_motion_facade.c" |
| 39 | |
| 40 | || |
| 41 | { ; ; } |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 |