feat(av1): palette reconstruction on 1:4 and sub-16 rect intra strips
Lifts two refusals: "a 1:4 rect strip that actually uses a palette
(reconstruction is not ported at this shape)" and "a palette block on a
HORZ/VERT intra strip below 16x16 (reconstruction not ported)".
decode_block_rect4 (32x8/8x32) and decode_rect4_16 (16x4/4x16) passed
palette: None into read_intra_mode_rect, so they read palette_y_mode off
CDF row 0 and every colour off an EMPTY cache, then refused on use. They
now pass the block's real palette mode ctx and merged above/left colour
cache and reconstruct through set_palette_pred (whole block, per split
transform unit, and the pair's chroma), as decode_block_rect already did
one aspect ratio up; decode_leaf_rect (16x8/8x16) gets the same.
Three further defects found on the way:
* the chroma colour-index map is av1_get_plane_block_size (ss_size_lookup)
-- BLOCK_16X4 -> BLOCK_8X4, BLOCK_4X16 -> BLOCK_4X8 -- not bw/2 x bh/2,
so a 1:4 strip's chroma palette read half its symbols;
* av1_get_palette_cache's superblock-top-row exclusion (pred_common.c:76)
is keyed on the block's own pixel row, not the 16-px cell, so a strip
8 px into the cell dropped its real above neighbour
(palette_ctx_and_cache_mi / palette_uv_cache_mi);
* the coarse cell arrays alias all four strips of a HORZ_4 onto one entry,
so record_strip_palette writes the split axis only until the closing
strip -- stamping both handed strip i+1 strip i's colours as its left
(above) neighbour, same bit count, wrong pixels.
Gate: stream.rs::a_real_aomenc_rect_strip_palette_decodes_pixel_exact, 3
arms x {8,10} bit. Arm 0 reproduces the r3 pinned 10-bit testsrc2 256x192
cq59 cpu0 stream byte for byte (md5 e5f033d8fe34e4418d8cca3ac9d2b595),
which stopped on the first refusal at r3 and now decodes whole-frame
pixel-exact against ffmpeg on every plane of every decode-order frame.
Hard asserts a rect-strip palette counter delta and
out_of_scope_mismatch == 0; a named "unsupported" refusal is counted and
printed, never a pass.