feat(av1): hidden-frame pixel oracle -- EC_AV1_FINAL_DUMP on both sides + the repo's first alt-ref gate
Every pixel gate here compared decode_stream's output against ffmpeg/aomdec
y4m, and both emit SHOWN frames only, so a hidden (show_frame=0) alt-ref
frame -- which his films are full of, aomenc's default --lag-in-frames --
was decoded, stored into a reference slot and never compared to anything
(class gate-blind-to-hidden-frames).
- scripts/instrument-aom-oracle.sh rung 12: EC_AV1_FINAL_DUMP=<prefix> in the
instrumented aomdec -> <prefix>.f<N> per DECODED frame (decode order, hidden
included), after CDEF+superres+loop restoration, i.e. the frame as stored
into the reference buffer; Y/U/V crop-sized rows, 8-bit u8 / high bitdepth
u16 LE (bit-depth correct, unlike the u16->u8 narrowing debug dumps).
- ec-av1 stream.rs: matching EC_AV1_FINAL_DUMP at the ref-slot store site,
same layout; prefix from a thread-local (set_final_dump_prefix) falling back
to the env var so a gate cannot race a sibling test's decode.
- test helper decode_all_frames_vs_oracle() + gate
a_real_aomenc_altref_sequence_hidden_frames_decode_pixel_exact: aomenc
--auto-alt-ref=1 --lag-in-frames=25 --arnr-maxframes=0 on moving content,
8-bit and 10-bit, hard assert hidden >= 2, byte-exact per decode-order
frame. Result: 43 frames / 3 hidden each depth, all pixel-exact.
--arnr-maxframes=0 is load-bearing and measured: with libaom's temporal
alt-ref filter on, the same recipe emits 0 hidden frames (vacuous gate).