forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on b978eaaa330c18a8b9c8cac7bbfdea0053c37dd2Filtered to crates/ec-av1/src/encode.rsClear filter

2026-09-07

feat(av1): filter intra as an intra-search candidateAhmet Kaan Gümüş · b978eaa
feat(av1): filter intra as an intra-search candidate

Threads the sequence header's `enable_filter_intra` through the raw inter
tile decode entry points and the gates that decode the encoder's own tiles
(stale-header class: five hard-coded `false`s), writes
`filter_intra_mode_info` at all five intra write sites between the palette
colour lists and the colour-index maps, and offers the five recursive
filter-intra modes as RD-priced candidates after the mode/tx-depth/palette
searches. `EC_AV1_FILTER_INTRA=0` restores the previous streams.
Merge branch 'lane-av1libdet' (3b42e286): the screen detector probed against the whole real library; zero camera rows fire, constants unchangedAhmet Kaan Gümüş · ed9607d
Merge branch 'lane-av1libdet' (3b42e286): the screen detector probed against the whole real library; zero camera rows fire, constants unchanged

The premise that a real film of his was classified as screen was false: the
ec-bench "real film" h264 source is a desktop recording, so the flat verdict
was right. probe_screen_library walks the manifest at three offsets.
test(av1): probe the screen detector against the whole real libraryAhmet Kaan Gümüş · 1a055ad
test(av1): probe the screen detector against the whole real library

A new --ignored probe walks every video row of the real-library manifest
(plus the two colour-bar fixtures as anchors), decodes four frames at
10/50/90% of each duration at native size or a 1920x1080 centred crop,
and prints per file and offset the share of qualifying 16x16 blocks, the
screen_content verdict and a content hint (mean luma, luma sd, inter
MAD), then sweeps the colour bound against the variance floor over the
whole library.

Result: no camera or film row fires the detector anywhere -- 0 of ~400
rows, worst share 6.8% against the shipped one-tenth-of-frame threshold
-- so the premise that a real film of his is coded flat with the screen
tools on does not hold, and the constants are left alone. The one row
that does fire is a desktop capture by its own content.

2026-09-06

feat(av1): directional luma winners search their angle_delta_y, off screen framesAhmet Kaan Gümüş · a005252
feat(av1): directional luma winners search their angle_delta_y, off screen frames

tile.rs coded ANGLE_DELTA_ZERO at all four luma sites because nothing ever
searched a delta. The luma search now refines the winning directional mode
over delta -3..=3 through the decoder's own predictor (its `angle_delta`
argument; `enable_intra_edge_filter` stays off in this encoder's sequence
header, so both sides gather the same edge samples), prices the symbol as a
difference from ZERO, and threads the delta through `trial`/`trial_typed`/
`code_tx_depth` so a transform-depth trial re-predicts at the same angle.

Screen frames are excluded: measured, the refinement is +0.7/+0.3 the wrong
way on the screen capture (synthetic edges sit on the base angles, so a
delta buys a symbol and no prediction) while the film rows gain.

5-row native gate, EC_AV1_ANGLE=0 -> default (both with CfL on):
  bars 1080p +0.3/-15.5 -> +0.2/-15.5, bars 2160p +16.8/-6.5 -> +16.9/-6.5,
  film A +67.7/+36.3 -> +67.7/+36.3, film B +99.6/+61.2 -> +99.0/+60.6,
  screen +50.4/-15.1 -> +50.4/-15.1 (byte-identical).
feat(av1): the chroma search offers UV_CFL_PRED, alpha searched and codedAhmet Kaan Gümüş · f944910
feat(av1): the chroma search offers UV_CFL_PRED, alpha searched and coded

The encoder never coded chroma-from-luma: every intra block's chroma came
off DC/V/H/SMOOTH*/PAETH while the decoder has read `cfl_alpha_signs` and
scaled the luma AC since lane-cfl. The chroma search now builds the
decoder's own CfL candidate -- `cfl_ac_q3_at` (the shared body behind
`cfl_ac_q3`/`cfl_ac_q3_rect`) over the committed luma reconstruction, the
decoder's `cfl_scaled` nudge on a DC_PRED base -- picks each plane's
alpha_q3 from the least-squares optimum and its two neighbours, and prices
the three sign combinations against the best ordinary chroma mode and the
chroma palette. Offered only where `is_cfl_allowed` does (<=32x32).

The writer codes `uv_mode = UV_CFL_PRED` plus the joint sign and magnitude
symbols at all four uv_mode sites; the three intra-in-inter sites needed it
too (without them the inter path desynced at picture 8).

5-row native gate, EC_AV1_CFL=0 -> default:
  bars 1080p +15.6/-1.7 -> +0.3/-15.5, bars 2160p +46.5/+18.8 -> +16.8/-6.5,
  film A +69.0/+37.5 -> +67.7/+36.3, film B +100.0/+61.5 -> +99.6/+61.2,
  screen +51.0/-14.5 -> +50.4/-15.1.
test(av1): re-take the byte pins under the default pyramid; zip the rate census in coding orderAhmet Kaan Gümüş · ef22613
test(av1): re-take the byte pins under the default pyramid; zip the rate census in coding order

EncodedSequence now carries coding_order, the map from coding order (what a
per-coded-frame census counts) to the display-order frames.
feat(av1): encode_sequence codes the content-gated pyramid by defaultAhmet Kaan Gümüş · 534fad0
feat(av1): encode_sequence codes the content-gated pyramid by default

The mini-GOP driver is the facade's own (Av1Encoder::encode_sequence_pyramid),
so the two paths cannot drift: encode_sequence hands its pictures to the
facade under Pyramid::from_env() (default 4:-16:8, EC_AV1_PYRAMID=0 for the
flat A/B) unless the content gate reads the first picture as screen, and
returns the frames in display order. The identity gate now pins both content
classes -- film-like (reordered, hidden ALTREF) and screen-like (gated flat,
identical frame by frame).
feat(av1): the coding pyramid is gated on content -- a screen-content stream codes the flat bytesAhmet Kaan Gümüş · 47529de
feat(av1): the coding pyramid is gated on content -- a screen-content stream codes the flat bytes

The pyramid lost on the OBS capture in every sweep and won on both real
films; the screen detector is 0/48 on the films and 48/48 on the capture,
so it is the signal. Av1Encoder::encode_frames decides once, on the first
picture, and drops a screen stream back to the flat path (byte-identical
to the pre-pyramid encoder). The BD gate prints the requested and the
EFFECTIVE pyramid per row.
perf(av1): re-judge the encoder's rate weight and var-tx depth on real filmAhmet Kaan Gümüş · 70ddd6a
perf(av1): re-judge the encoder's rate weight and var-tx depth on real film

Every decision constant in encode.rs was swept on the native gate's
testsrc2 COLOUR BARS rows, ~90% of whose cells have no intra cost. The
gate now carries two real film crops, and three of those decisions
invert on them (BD-rate vs libaom / vs rav1e, film A / film B):

  LAMBDA_SCALE 0.05 -> 0.0275   +69.0/+37.5 +100.0/+61.5 -> the bowl on
    real film bottoms at half the bars' weight; 0.02 breaks the capture
  tx32_depth_search default ON  three bars rejections; -1.1/-3.4 here
  compound_var_tx default ON    a further -2.4/-2.1 on top

Stacked: film A +62.8/+32.5, film B +86.3/+50.5, screen +50.1/-15.4
(all five rows in the doc tables). The 32x32 depth search fires on
42-46% of single-reference 32x32 blocks on film, and on ~0 of the bars.
Rejected again on real film: OBMC (flat/worse), pyramid 4:-16:8 and
2:-16:8 (film A -9.9 but the capture +4.3), SPLIT_RD 0.0625/0.25,
LEAF_SECOND 0.8/1.6, MV_DIST_SCALE 0.25/1.0.

Pins re-taken; the streams moved by construction.
fix(av1): the screen-content detector needs libaom's variance termAhmet Kaan Gümüş · 47036af
fix(av1): the screen-content detector needs libaom's variance term

Without it a smooth dark film frame is all few-colour 16x16 blocks, so
both real films of the native gate classified as screen content on 48/48
frames: palette search ran over film and every coefficient was priced
against the default CDFs instead of the frame's real tables.

probe_screen_detect now sweeps the colour bound against a per-block
variance floor on all five native gate rows (native_gate_clips, shared
with the gate) at both the native crop and the 640x384 gate's scale.
16 colours / var > 16 / an eighth of the frame separates them: every
non-screen row at most 9.6% of blocks, the OBS capture 17.9-23.6%.
Merge branch 'lane-av1realfilm' (b9e1cb62): the native BD gate scores two real films from the user's library; the testsrc2 rows are labelled "bars"Ahmet Kaan Gümüş · 1aa39c7
Merge branch 'lane-av1realfilm' (b9e1cb62): the native BD gate scores two real films from the user's library; the testsrc2 rows are labelled "bars"

Real-film rows on this tree: film A (1920x768 crop) +69.5% vs libaom
cpu-used 6 / +37.7% vs rav1e speed 6; film B (1920x1024 crop of the 2160p
HDR source) +102.4% / +63.4%. The bar rows had read +15.6/-1.7 and
+46.5/+18.8. Finding: screen_content classifies both films as screen on
48/48 frames (detector constants were swept on bars).
test(av1): the native BD gate scores two real AV1 films, and the testsrc2 rows say barsAhmet Kaan Gümüş · 5aa054a
test(av1): the native BD gate scores two real AV1 films, and the testsrc2 rows say bars

The two 'film' rows of both BD gates are ffmpeg testsrc2 COLOUR BARS that
scripts/gen-fixtures.sh generates, so every film BD number in this file
was measured on a bar generator. They now print as 'bars 1080p' /
'bars 2160p' in the native gate, the 640x384 gate and the tpl
denominator histogram, and the native gate gains two rows of real
content: native crops out of the two AV1 sources the real-library
manifest names (selected by codec and coded width, so no title and no
home path enters the source), at a pinned seek on a moving, non-black
window, SKIPped when the file is absent.

Measured on this commit, 12 frames, four-quantizer ladder, three-way
sample-exact: bars 1080p +15.6/-1.7, bars 2160p +46.5/+18.8, film A
+69.5/+37.7, film B +102.4/+63.4, screen +51.0/-14.5 (vs libaom / vs
rav1e). The real film rows are far off the frontier the bars rows
report.
Merge branch 'lane-av1cap2' (74e32723): the LR-recode decode is replaced by a restoration replay on the final replay's planes; all-zero CDEF candidates keep their deblocked planes as the cacheAhmet Kaan Gümüş · 8497549
Merge branch 'lane-av1cap2' (74e32723): the LR-recode decode is replaced by a restoration replay on the final replay's planes; all-zero CDEF candidates keep their deblocked planes as the cache

Byte-identical on all three gate clips x 4 q; 4K 4x2/8 threads 1.43 ->
1.51 fps (capture-decode bucket 152 -> 7 ms, plane copies 235 -> 204 ms).
A per-unit CDEF scratch is not provably exact (write coverage is per-unit
variance dependent) and stays deferred with its unblocker.
feat(av1): the propagating tpl map ships on, formed per superblock and read through log2 betaAhmet Kaan Gümüş · 853042e
feat(av1): the propagating tpl map ships on, formed per superblock and read through log2 beta

The map's denominator is a 16x16 cell's MAD from its own DC, and on the
gate's synthetic film clips ~90% of all cells have a MAD of exactly zero,
so a per-cell dependence ratio is a large number over 1 wherever the
lookahead window leans on a flat area. Summing intra and mc_dep over the
64x64 superblock first (libaom's granularity) and reading the ratio
through log2(1+r) (libaom's compressed beta) is the only arm that is down
on two gate rows and flat on the third, so it becomes the default at
k=0.5, window 8, p=0.5. EC_AV1_TPL_PROP=0 restores the one-frame map;
EC_AV1_TPL_SB=0 / EC_AV1_TPL_LOG=0 take either half back out. Pins move.
feat(av1): three shape knobs for the propagating tpl map plus its denominator histogramAhmet Kaan Gümüş · d30c5a4
feat(av1): three shape knobs for the propagating tpl map plus its denominator histogram

EC_AV1_TPL_FLOOR floors the per-cell intra denominator at a fraction of
the frame mean, EC_AV1_TPL_SB forms the dependence ratio over the 64x64
superblock (libaom's granularity) and EC_AV1_TPL_LOG reads the ratio
through log2(1+r). All three default off, so the shipped map's bytes are
unchanged. tpl_intra_denominator_histogram prints the denominator's
distribution on the two film gate clips.
Merge branch 'lane-av1tpl2' (d6ef3909): a propagating multi-frame tpl map behind EC_AV1_TPL_PROP; the facade queue depth follows tpl_depthAhmet Kaan Gümüş · 7169554
Merge branch 'lane-av1tpl2' (d6ef3909): a propagating multi-frame tpl map behind EC_AV1_TPL_PROP; the facade queue depth follows tpl_depth

The propagating map is non-flat (0.25..1.12 over 7680 cells) but loses on
the 2160p film at every k/D/p, so the one-frame map stays the default and
bytes are identical to main. OBMC / tx32 depth / compound var-tx re-judged
on the best map: none flips.
perf(av1): the loop-restoration stage replays the decoder's own kernel instead of decoding the re-coded tileAhmet Kaan Gümüş · 34dfd1e
perf(av1): the loop-restoration stage replays the decoder's own kernel instead of decoding the re-coded tile

The chosen Wiener units used to be realised by DECODING the re-coded tile
(5.6% of a 4K frame), purely to reach the restored reference frame. Loop
restoration reads nothing of that tile beyond the per-unit filters the
stage just chose, so the final replay now keeps its post-CDEF luma plus
the TRUE post-deblock stripe-border rows (plane_snapshot, exactly the
rows restoration::lr_src_row substitutes) and runs
apply_loop_restoration_plane on them. Chroma restores nothing, so only
luma moves; the wide-margin stash's luma is refreshed in place.

Pinned by encoder::tests::filter_replay_final_matches_the_capture_decode,
which now also decodes the re-coded tile and asserts picture, chroma and
wide-margin luma identical (fired on 8 frames of the gate clip).
measure(av1): the propagating map ships OFF -- every arm is up on the 4K film rowAhmet Kaan Gümüş · 4655c5a
measure(av1): the propagating map ships OFF -- every arm is up on the 4K film row

Nine (k, D) arms plus three of the sqrt-compressed form: the best of them
(k=0.5, D=8, p=0.5) is 0.4 down on both film 1080p columns and 0.4/0.2
down on screen, but 0.2/0.3 UP on film 2160p, and the weakest arms that
are nearly flat there give up the gain. No arm is at least flat on every
row, so the default goes back to the one-frame area map -- byte-identical
to what the gate's numbers were measured on, pins unmoved -- and the
propagating map sits behind EC_AV1_TPL_PROP with its table.
perf(av1): the filter stage's capture decode replaced by one more filter replayAhmet Kaan Gümüş · 2d19659
perf(av1): the filter stage's capture decode replaced by one more filter replay

The stage decoded the coded tile a SECOND time after the search -- 10% of a
4K frame's encode -- only to reach the post-CDEF plane the loop restoration
search reads and the picture the stage splices back. Both come out of one
more replay of the winning deblock/CDEF parameters on the pre-filter planes
the search already captured: the same two kernels, on the same input, in the
same order. The re-coded tile still carries the cdef_idx literals, which the
replay is handed directly.

Also gates the per-trial stage timers on par::stage_times: two Instant::now()
ran per transform trial and per mc::predict call in every cfg(test) build
whether or not anyone read the breakdown.
Merge branch 'lane-av1speed2' (e65b15a0): zero-residual short-circuits and stack intra trial buffers, byte-exactAhmet Kaan Gümüş · 1cc5362
Merge branch 'lane-av1speed2' (e65b15a0): zero-residual short-circuits and stack intra trial buffers, byte-exact

-1.30% instructions at 1080p, 4K 4x2/8 threads 1.37 -> 1.41 fps. Fresh
threaded profile: tile search 72% (1080p) / 55% (4K), filter search 19% /
28%, capture decode 3.6% / 10.4%; top symbols write_coeffs, intra::predict,
symbol_fixed, the forward transform family.
feat(av1): a propagating lookahead lambda map -- mc_dep chained back through a D-frame windowAhmet Kaan Gümüş · 65f3164
feat(av1): a propagating lookahead lambda map -- mc_dep chained back through a D-frame window

The one-frame area map only knew how much of this frame the next one
lands on; it was flat by construction. This walks a window of D source
frames back to front, accumulating max(intra - inter, 0) + mc_dep along
each cell's coarse motion chain, and turns the accumulated dependence
into a per-16x16 lambda factor applied at 32x32 (the finest granularity
at which the whole-vs-split RD comparison stays self-consistent).

The streaming facade queues D-1 pictures so its window is the one the
sequence path builds; both read tpl_depth(), so they cannot disagree.
perf(av1): the intra trial path stops allocating and over-zeroing per modeAhmet Kaan Gümüş · 09d0739
perf(av1): the intra trial path stops allocating and over-zeroing per mode

The per-block edges were a Vec each -- a malloc and a free per mode of
every block -- and intra_predict_u8 zeroed a 32x32 scratch to predict a
4x4. Edges now land in the caller's stack buffers (an edge is at most
2 * BLOCK samples) and the prediction scratch is sized to the block.

-0.47% instructions:u at 1920x1080 (61.741e9 -> 61.447e9, ABAB x2,
enc_probe 4 frames q120). Byte pins green and the FNV sets over the
three gate clips at q150/120/90/60 are unchanged.
perf(av1): skip the all-zero re-inflate and the pricer's table restoreAhmet Kaan Gümüş · 8e31689
perf(av1): skip the all-zero re-inflate and the pricer's table restore

60% of an inter stream's transform units carry no coefficient. Two places
paid full price for them anyway: the square dequant/inverse entry point
re-inflated the empty all-zero marker into side*side zeros (an allocate
and memset per trial) only for the reconstruction sum to add them to the
prediction, and coeff_bits restored the eight coefficient tables
write_coeffs might touch (~800 bytes of copies) before pricing what is
one all-zero flag and nothing else.

Both stay byte-exact: clamp(p + 0) is p for a u8, and the restored
txb_skip row the flag is priced against is the pristine row it was copied
from. Byte pins and the enc_probe FNV sets over the three gate clips at
q150/120/90/60 are identical.
feat(av1): the streaming facade codes what the gate measures -- one frame of lookahead delayAhmet Kaan Gümüş · 921a9a8
feat(av1): the streaming facade codes what the gate measures -- one frame of lookahead delay

The facade passed lookahead=None, so every inter frame the editor's
export coded missed the per-superblock temporal lambda map the BD gate's
numbers were measured with. encode_frames now holds a picture back and
codes it with the NEXT one as its lookahead, exactly as encode_sequence
does; flush codes the last one. encode() keeps its Result<Packet> shape,
returning the previous picture's packet (empty data on the first call).

A new gate pins the facade's bytes identical to encode_sequence's over
12 frames at the gate's own size, and EC_AV1_GATE_FACADE=1 runs the BD
ladder through the facade.
test(av1): re-judge both var-tx rebuilds at the halved rate weight -- neither keepsAhmet Kaan Gümüş · 8137f07
test(av1): re-judge both var-tx rebuilds at the halved rate weight -- neither keeps

32x32 tx-depth search (EC_AV1_TX32_DEPTH): native film 1080p +16.6/-0.5,
2160p +46.6/+18.8, screen +50.9/-14.3 against +16.2/-1.1, +46.6/+18.8,
+51.3/-14.4 off. Fires on 53-71% of 32x32 blocks and the pricer census
clears the split units (Luma16Inter within 1.4% from two non-zeros up, its
zero bucket +30.1% i.e. biased against splitting), so the loss is ladder
bytes, not blindness or mis-pricing.

Compound var-tx at the leaves (EC_AV1_COMP_VARTX): +16.0/-1.1, +46.6/+18.8,
+51.4/-14.4 -- one row 0.2 down, two flat, short of the keep rule. Both
knobs stay off; measurements recorded at their call sites.
feat(av1): rebuild the 32x32 inter tx-depth search and the compound var-tx trial set behind knobsAhmet Kaan Gümüş · 7d0a80d
feat(av1): rebuild the 32x32 inter tx-depth search and the compound var-tx trial set behind knobs

Both were measured and removed at LAMBDA_SCALE 0.1; the lambda lane halved
the rate weight, so they need rebuilding to be re-judged. commit_inter_luma
now takes an optional second reference (mc_trial_compound predicts each
half-side unit from both), and search_inter_block routes its 32x32 winner
through it instead of coding tx_depth 0 blind. EC_AV1_TX32_DEPTH and
EC_AV1_COMP_VARTX, both off; the var-tx census is keyed by block class.
feat(av1): local warp on by default and a looser second-reference margin, re-judged at the new rate weightAhmet Kaan Gümüş · 70b0f42
feat(av1): local warp on by default and a looser second-reference margin, re-judged at the new rate weight

Halving LAMBDA_SCALE re-opened every decision constant taken at the old
weight. Re-measured on the native gate, one run per arm:

- local warp (EC_AV1_WARP) KEPT ON: +16.7/-0.5, +47.0/+19.1, +51.3/-14.3
  against the base's +17.0/-0.3, +47.0/+19.2, +51.6/-14.2 -- two rows down
  on both columns, one flat. Fires on 5.4/3.3/3.3% of motion_mode blocks;
  clean under EC_COMP_MISMATCH=1 and under EC_AV1_TILES=2:2.
- LEAF_SECOND_NEW_MARGIN 0.8 -> 1.2, the floor of a re-swept bowl
  (0.6/0.8/1.2/1.6/never = +16.9/+16.7/+16.2/+16.4/+16.4 on the 1080p film),
  for ~10% encoder wall on the film clips.
- OBMC, SPLIT_RD_THRESHOLD, EXTRA_NEW_SKIP_MARGIN, COMP_NEARNEAR, the coding
  pyramid and CHROMA_TOP_K re-measured and left where they were, each with
  its new table at its decision site.

Native, defaults: +16.2/-1.1, +46.6/+18.8, +51.3/-14.4.
Merge branch 'lane-av1lambda' (c2e7f4af): LAMBDA_SCALE 0.1 -> 0.05 (swept: a clean bowl with its floor at 0.0375-0.05)Ahmet Kaan Gümüş · 74d59b2
Merge branch 'lane-av1lambda' (c2e7f4af): LAMBDA_SCALE 0.1 -> 0.05 (swept: a clean bowl with its floor at 0.0375-0.05)

Native crops: film 1080p +18.1/+0.9 -> +17.0/-0.3, film 2160p +47.1/+19.0
-> +47.0/+19.2, screen +58.3/-9.8 -> +51.6/-14.2 (vs libaom / vs rav1e);
640x384 +79.2/+97.7/+53.1 -> +71.9/+87.1/+48.7. Half of the "local RD win,
ladder loss" pattern was the rate weight: local warp now meets the keep
rule and OBMC halves its loss. Per-frame key lambda factor measured inert.
docs(av1): the lambda re-verdicts for OBMC, local warp and a key-frame lambda factorAhmet Kaan Gümüş · 7e18446
docs(av1): the lambda re-verdicts for OBMC, local warp and a key-frame lambda factor

At LAMBDA_SCALE 0.05 the local warp candidate flips from a 0.7/0.9 loss on
the 1080p film to two rows down / one flat, and OBMC at min side 8 goes from
a loss to neutral; both stay off by default (warp's margin is 0.3 points and
enabling it is a sequence-header feature change). The key-frame lambda factor
is measured across four values and kept at 1.0: films and screen capture pull
opposite ways and the native table is inside the +-0.3 band.
perf(av1): the RD search's rate weight was twice what the BD gates wantAhmet Kaan Gümüş · f72bb81
perf(av1): the RD search's rate weight was twice what the BD gates want

Swept LAMBDA_SCALE on the BD gates themselves (640x384 over nine points,
the native 1920x1024 crops over four) instead of the synthetic ladders it
was last picked on. The optimum sits at 0.05, not 0.1: on the native table
the 1080p film goes +18.1/+0.9 -> +17.0/-0.3, the screen capture
+58.3/-9.8 -> +51.6/-14.2 and the 2160p film stays flat (+47.1/+19.0 ->
+47.0/+19.2), vs libaom / vs rav1e. Both stream pins move with it.

Also adds EC_AV1_LAMBDA_KEY (test builds), a per-frame-type lambda factor
in libaom's rd_frame_type_factor shape, defaulting to 1.0 = no change.
Merge branch 'lane-av1rect' (91654d7a): pictures whose last block is cut on both frame edges encode; the refusal was a misreading of spec 5.11.4Ahmet Kaan Gümüş · 0e3a352
Merge branch 'lane-av1rect' (91654d7a): pictures whose last block is cut on both frame edges encode; the refusal was a misreading of spec 5.11.4

When hasRows and hasCols are both false no partition symbol is read and
PARTITION_SPLIT is inferred down to the in-frame 8x8 leaves, so no
rectangular transform is involved. 16 doubly-straddling sizes round-trip
three-way exact through ffmpeg; byte pins and BD unchanged.
Merge branch 'lane-av1obmc2' (ab190a23): OBMC at the 16x16/8x8 leaves and a local warp candidate, both behind knobs; the trial decode honours allow_warped_motionAhmet Kaan Gümüş · 0ebeaad
Merge branch 'lane-av1obmc2' (ab190a23): OBMC at the 16x16/8x8 leaves and a local warp candidate, both behind knobs; the trial decode honours allow_warped_motion

Both tools are byte-exact and measured losses on the native table (OBMC
wins 85% of eligible 8x8 leaves and still costs bytes; warp fires on 2-7%
of blocks). Default streams byte-identical. decode_inter_frame_tiles_lr
hard-coded allow_warped_motion=false and the encoder's own trial decode
went through it (stale-header class).
feat(av1): a local-warp candidate behind EC_AV1_WARPAhmet Kaan Gümüş · a745879
feat(av1): a local-warp candidate behind EC_AV1_WARP

The 3-symbol motion_mode alphabet in the tile writer (num_proj_ref
mirrored from the decoder), the encoder-side WARPED_CAUSAL candidate
built by the decoder's own find_samples/select_samples/find_projection/
warp_affine, and the frame's allow_warped_motion threaded into the
encoder's trial decode -- hard-coding it false there desynced every
warp-knob stream.
feat(av1): code the both-axes frame-edge cut as the spec's inferred splitAhmet Kaan Gümüş · 0e8b39f
feat(av1): code the both-axes frame-edge cut as the spec's inferred split

A 32x32 or 16x16 block whose true frame edge cuts BOTH axes reads no
partition symbol at all (spec 5.11.4: hasRows and hasCols both false =>
PARTITION_SPLIT inferred), down to the 8x8 leaves whose own mi origin is
inside the frame -- the same leaves the one-axis case already coded. The
encoder refused that geometry by name, claiming it needed a rectangular
HORZ/VERT transform; it needs none, and the refusal was a misreading of
the rule. Both writers now emit the inferred split, and the searches drop
their matching refusals.
Merge branch 'lane-av1straddle' (862db122): the writer no longer codes phantom transform units past the right frame edge; the RD pricer reads the real txb_skip/dc_sign contextsAhmet Kaan Gümüş · 16ecf06
Merge branch 'lane-av1straddle' (862db122): the writer no longer codes phantom transform units past the right frame edge; the RD pricer reads the real txb_skip/dc_sign contexts

A right-edge-straddling 32x32 wrote 16 luma units where the decoder and
libaom code 12; libdav1d and libaom refused the whole 216x96 stream. One
clip in write_luma_tus fixes it, byte pins unmoved (gate clips are
block-aligned). On top: the per-trial neighbour context map for the
pricer (lane-av1skipctx): screen all-zero chroma error -73% -> -1.9%,
native screen +58.3/-9.8, 2160p +47.1/+19.0, 1080p +18.1/+0.9.
feat(av1): offer the OBMC candidate at the 16x16 and 8x8 inter leavesAhmet Kaan Gümüş · 74fe5cf
feat(av1): offer the OBMC candidate at the 16x16 and 8x8 inter leaves

The motion_mode symbol is now priced off the frame's own starting tables
(tile::obmc_symbol_bits), like the coefficients since lane-av1price2, and
the native BD arm prints the motion_mode histogram the 640x384 gate
already did.
fix(av1): never code a transform unit that starts outside the frameAhmet Kaan Gümüş · 683eca4
fix(av1): never code a transform unit that starts outside the frame

The writer's per-unit luma loop walked every unit of a block's transform
grid, including the ones a right-edge- (or bottom-edge-) straddling block
has entirely outside the frame. libaom clips that loop to
max_blocks_wide/high and decode.rs does the same, so the extra all_zero
symbols desynced the tile at the very next symbol: at 216x96 an odd-size
GOP's last block reconstructed a different V, and both libdav1d and
libaom refused the whole key frame.

Clip the loop to the frame's true mi_cols/mi_rows. The block-aligned byte
pins do not move (their clips have no straddling block); the ffmpeg GOP
gate now runs 216x96 as well, three-way exact against reconstruction.