Commits
Commits on
f60b302c2ebce887aeff41bc88f309d200c0d1782026-09-07
test(ogg): drop a redundant pair of parentheses left by the fixture-selection sweepAhmet Kaan Gümüş · f60b302Browse files
Merge branch 'lane-nbpub' (95f1d1e0): EC_AV1_NORECON measurement rung; the encoder's first decode is 4.3% of the 4K wall and 94% of it is parse, so publishing the reconstruction cannot remove itAhmet Kaan Gümüş · 6dfe455Browse files
perf(av1): measure the encoder's first decode -- 94% of it is parse, not reconstructionAhmet Kaan Gümüş · 591f575
perf(av1): measure the encoder's first decode -- 94% of it is parse, not reconstruction The encoder decodes its own written tiles once per frame to reach the reconstruction and the per-mi neighbour state the filter search reads (`par::S_FIRST`). The plan for removing it was to hand the decoder the encoder's own reconstruction, which the writer already holds. `EC_AV1_NORECON=1` drops every recorded pixel write in `exec_op` and leaves the entropy parse and the neighbour bookkeeping alone. At 3840x1608 (4 frames, 4x2 tiles, 8 tile threads) the stage moves 150 ms -> 141 ms: the reconstruction is 6% of it, the parse and the per-mi grids are the other 94%. So the planes are not the lever -- only a writer-side publisher of the filter-relevant `decode::Neighbours` grids (blk_grid, tx/tx_h, uv_tx/uv_tx_h, ref_grid, delta_lf_grid), which skips the parse entirely, can remove the stage. Measurement only; the flag is off by default and the encoder's own streams are byte-identical to their pins.
Merge branch 'lane-hwwt' (a191a35b): test fixture selection matched the whole checkout path, so a worktree named after a codec fed foreign fixtures to it; swept to ec-image/ec-ogg/ec-mp4Ahmet Kaan Gümüş · c9c94fcBrowse files
fix(tests): fixture selection matched the checkout path, not the file nameAhmet Kaan Gümüş · a8b31aa
fix(tests): fixture selection matched the checkout path, not the file name
The GPU decode tests picked their fixtures with
p.to_string_lossy().contains(codec), which sees the whole path. In a
worktree called edith_codecs-av1fast every .ivf matched "av1", so the
VP9 streams were handed to the AV1 decoder and came back as
Stream(Corrupt { context: "AV1 obu_forbidden_bit is set" }) after the
five real AV1 fixtures had decoded frame-exactly. Same shape swept in
ec-image (lossless/lossy/animated), ec-ogg and ec-mp4.Merge branch 'lane-hwav1p010' (bc5dfe9c): 10-bit hardware AV1 encode and CBR/VBR/QVBR rate controlAhmet Kaan Gümüş · 6c19568
Merge branch 'lane-hwav1p010' (bc5dfe9c): 10-bit hardware AV1 encode and CBR/VBR/QVBR rate control P010 surfaces with high_bitdepth in the sequence header; film B's native 10-bit crop agrees frame for frame between ec-av1 and libdav1d. The rate control attribute must be set at config creation, and the HRD buffer is one rate window three-quarters full (two half-full windows undershot by 20%).
test(ec-hw): exercise the two 10-bit refusals; bench 10-bit row off the black leaderAhmet Kaan Gümüş · b19cdc4
test(ec-hw): exercise the two 10-bit refusals; bench 10-bit row off the black leader The refusals are claims, so they are driven: a 10-bit HEVC config must fail to build (High and Main are 8-bit profiles) and 8-bit pixels handed to a 10-bit encoder must be refused. ec-bench's 10-bit row seeks a minute in -- frame 0 of a film is its black leader, which coded to 1 kB for 30 frames and benchmarked nothing (101 kB now).
build: raise the test-thread stack in the repo config; the 48-frame rate-target test overflowed 2 MB in debug buildsAhmet Kaan Gümüş · 06e0c1f
build: raise the test-thread stack in the repo config; the 48-frame rate-target test overflowed 2 MB in debug builds
feat(ec-hw): 10-bit BD row, 10-bit fps, ec-bench 10-bit row, docsAhmet Kaan Gümüş · ebea85e
feat(ec-hw): 10-bit BD row, 10-bit fps, ec-bench 10-bit row, docs The 10-bit BD row is film B's own 1920x1024 native crop, every arm in the 10-bit domain: hw AV1 10-bit is +36.7% BD-rate against librav1e speed 6 10-bit and +52.9% against libaom cpu-used 6 10-bit, with all three ladders asserted monotone. av1_encode_speed gains a 3840x1608 10-bit row, and ec-bench an 'ec-hw av1 10-bit' encode row that skips as a row without a VA device.
feat(ec-hw): CBR, VBR and QVBR rate control for hardware encodeAhmet Kaan Gümüş · 5fcd26f
feat(ec-hw): CBR, VBR and QVBR rate control for hardware encode The AV1 path had only ever measured CQP because the VA config was created without a VAConfigAttribRateControl at all: a driver configured for CQP ignores a bitrate handed to it afterwards. The attribute is now set from the mode, and VariableBitrate / Qvbr join the enum (VBR sends the ask as a 1.5x ceiling at 66%, QVBR sends quality_factor, which needed a field in VAEncMiscParameterRateControl's payload). Root cause of a 20% CBR undershoot, found by comparing with ffmpeg's own av1_vaapi on the same clip (it undershot 8%): the HRD buffer was two rate windows starting half full. One window, three quarters full -- what ffmpeg asks for -- brings CBR to -4.2/-5.1/-7.9% and VBR to +1.0/-3.8/-6.9% at 2/6/12 Mbps on film A 1080p30. Gate av1_encode_rate_control_lands prints the whole table (pix_fmt, mode, target, delivered, PSNR) and asserts CBR within 15%, VBR within 25%, PSNR monotone in the target, and QVBR under its ceiling.
feat(ec-hw): 10-bit AV1 hardware encodeAhmet Kaan Gümüş · 98dcdcf
feat(ec-hw): 10-bit AV1 hardware encode His whole AV1 library is yuv420p10le, so an 8-bit-only hardware encoder does not serve his files. EncoderConfig gains a bit_depth (8, or 10 for AV1: H264High and HEVCMain are 8-bit profiles by definition, which is a fact about the profiles this crate configures, not a driver refusal), a 10-bit encoder allocates P010 surfaces, uploads through encode_16, sets bit_depth_minus8 = 2 in the sequence parameters and high_bitdepth in the sequence header OBU it packs. encode_frame now passes a 10-bit decoded surface straight through when the encoder is 10-bit too, and VPPs only when the depths or the sizes differ. Gate av1_10bit_encode_agrees_between_two_decoders on film B's own 1920x1024 native crop: ec-av1 and libdav1d agree sample for sample on all 10 frames, ffprobe reads yuv420p10le out of the sequence header, decoded peak luma 610 (> 255), worst frame 48.09 dB from the source in the 10-bit domain.
Merge branch 'lane-hwav1enc' (eda549f4): VAAPI AV1 hardware encode, on by default, agreed by two decodersAhmet Kaan Gümüş · cb7efaf
Merge branch 'lane-hwav1enc' (eda549f4): VAAPI AV1 hardware encode, on by default, agreed by two decoders radeonsi parses the app-written sequence and frame header OBUs and writes its own; the coded buffer carries no temporal delimiter, so one is prepended per frame. Film A reads +29.2% vs librav1e speed 6 at 122.8 fps (1080p) and 48.2 fps at 3840x1608.
test(ec-hw): a hardware AV1 quality row against librav1e and libaomAhmet Kaan Gümüş · c1c4cb5
test(ec-hw): a hardware AV1 quality row against librav1e and libaom Four quantisers on a 1080p crop of a film and of a screen capture from the real-library manifest, PSNR from ffmpeg, BD-rate over the shared quality range. The number is printed, not asserted -- a fixed-function encoder is not a search -- but the ladders are asserted monotone.
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.
feat(ec-hw): AV1 encode on by default, and an ec-bench hardware rowAhmet Kaan Gümüş · 24f4e5c
feat(ec-hw): AV1 encode on by default, and an ec-bench hardware row The opt-in existed because a 2026-08-14 submission crashed the GPU; on mesa 26.1.8 the path encodes streams two decoders agree on, so the refusal goes rather than outliving its evidence. ec-bench gains an 'ec-hw av1 encode' row that skips as a row when there is no VA device.
feat(ec-hw): AV1 hardware encode that two independent decoders agree onAhmet Kaan Gümüş · a518304
feat(ec-hw): AV1 hardware encode that two independent decoders agree on The AV1 encode path submitted parameters no header described: radeonsi parses the application's sequence and frame header OBUs and writes the stream from them, so without those OBUs the coded buffer meant nothing. This writes both (spec 5.5.1 / 5.9.1, the subset the driver advertises: one tile, one reference, no CDEF, no restoration, no superres), fills the picture parameter buffer to agree with them field for field, and prepends the temporal delimiter the driver does not emit. Gate: ec-av1 and ffmpeg's libdav1d decode every shown frame of a 640x384 and a 1920x1080 stream sample for sample, and the coded picture is within 60 dB of the one submitted.
chore(lanes): the library probe, suite and ec-bench logs of this laneAhmet Kaan Gümüş · 4000412Browse files
Merge branch 'lane-av1cfl' (012f8eab): chroma-from-luma and luma angle deltas in the intra search; the rate loop's per-slot acquisition stepAhmet Kaan Gümüş · 5546c56
Merge branch 'lane-av1cfl' (012f8eab): chroma-from-luma and luma angle deltas in the intra search; the rate loop's per-slot acquisition step Native rows: film A +54.1/+24.2 -> +53.2/+23.4, film B +82.6/+47.4 -> +81.5/+46.5, screen +50.1/-15.4 -> +49.3/-16.0, bars -17/-29 points (CfL wins half their chroma blocks). The bitrate undershoot at 1536k with the pyramid was convergence lag (STEP_CLAMP walked 12 q-steps a frame): one unclamped acquisition step per slot, -10.2% -> -2.7%. Pins 7321 / 27285.
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
test(av1): re-take the byte pins on the pyramid default with CfL and angle deltas inAhmet Kaan Gümüş · 9a6b2f7Browse files
fix(av1): the rate loop seeds each level's quantizer off its first coded frameAhmet Kaan Gümüş · 12e6ab7
fix(av1): the rate loop seeds each level's quantizer off its first coded frame `STEP_CLAMP` protects an operating point the slot has not found yet: every slot starts at the caller's `base_q_idx` guess (100 in the gate) and the clamp made the loop WALK to the right quantizer at twelve steps a frame. Traced over the 48-frame bitrate gate, the pyramid's ARF slot spent five of its twelve frames pinned at -STEP_CLAMP and the stream landed 10.2% under target. That is convergence lag, not steady-state offset -- this loop's fixed point is actual == target exactly -- so the fix is one unclamped acquisition step per slot, not an accumulated error term: nothing is carried between frames and the windup bound still holds from the second frame on. bits/s pyramid before after 768000 false -0.1% -1.8% 768000 true +0.7% +1.1% 1536000 false -3.6% -3.0% 1536000 true -10.2% -2.7% bytes_per_frame_controller_never_oscillates_past_its_clamp now exempts the acquisition step alone (the first frame q moves at all -- the lookahead queue means that is not frame zero) and asserts the clamp on every frame after it.
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.
Merge branch 'lane-av1pyrdef' (3f626b2c): the frame pyramid ships as the default; encode_sequence delegates to the facade's mini-GOP driverAhmet Kaan Gümüş · 77aeca1
Merge branch 'lane-av1pyrdef' (3f626b2c): the frame pyramid ships as the default; encode_sequence delegates to the facade's mini-GOP driver One driver for both entry points, so facade/sequence byte-identity is by construction (proven on film-like and screen-like content). Native rows: film A +54.1/+24.2, film B +82.6/+47.4, screen +50.1/-15.4 (gated flat). EncodedSequence.frames is display order with a coding_order map; EC_AV1_PYRAMID=0 restores the flat path everywhere.
feat(bench): the av1 encode row names the pyramid it coded under, hidden frames beside itAhmet Kaan Gümüş · 5ad5e5cBrowse files
docs(av1): record the native-gate confirm run under the default pyramid (5 rows, screen unmoved)Ahmet Kaan Gümüş · 3783121Browse files
docs(av1): the pyramid is the default -- Pyramid/encode_sequence docs and the 640x384 gate table re-recordedAhmet Kaan Gümüş · 5ec5a7cBrowse files
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).
Merge branch 'lane-av1pyrgate' (4df5ddd8): the frame pyramid is content-gated (screen streams stay flat) and re-swept on real filmAhmet Kaan Gümüş · 5d7858a
Merge branch 'lane-av1pyrgate' (4df5ddd8): the frame pyramid is content-gated (screen streams stay flat) and re-swept on real film 4:-16:8 under the gate: film A +62.8/+32.5 -> +54.1/+24.2, film B +86.3/+50.5 -> +82.6/+47.4, screen byte-identical. Still opt-in (with_pyramid / EC_AV1_PYRAMID): a default needs the same reordering in encode_sequence, which the facade is byte-pinned to.
style(av1): wrap the content-gate condition the way rustfmt doesAhmet Kaan Gümüş · b793f06Browse files
docs(av1): record the 640x384 gate under the content-gated pyramid -- the capture's row is the flat row to the byteAhmet Kaan Gümüş · 3c2169cBrowse files
docs(av1): the pyramid sweep re-run under the content gate on the current defaults -- 4:-16:8 keepsAhmet Kaan Gümüş · 88a08dbBrowse files
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.
Merge branch 'lane-av1resweep' (266d988a): constants re-judged on the real-film rows -- LAMBDA_SCALE 0.0275, the 32x32 tx-depth search and compound var-tx on by defaultAhmet Kaan Gümüş · d24d494
Merge branch 'lane-av1resweep' (266d988a): constants re-judged on the real-film rows -- LAMBDA_SCALE 0.0275, the 32x32 tx-depth search and compound var-tx on by default Real film inverts the bar-fixture verdicts: film A +69.0/+37.5 -> +62.8/+32.5, film B +100.0/+61.5 -> +86.3/+50.5, screen +51.0/-14.5 -> +50.1/-15.4 (vs libaom / vs rav1e). OBMC rejected a fifth time; the pyramid is the largest unclaimed film win (-10 on film A) but costs the screen capture +4.3, so it stays a knob until gated by content.
docs(av1): record the 640x384 BD gate under the re-judged defaultsAhmet Kaan Gümüş · 11b0031Browse files
Merge branch 'lane-av1speed3' (f19880fc): CDEF candidates share one destination and restore only what the last candidate wrote; the coefficient writer splits scan positions by shiftingAhmet Kaan Gümüş · c401345
Merge branch 'lane-av1speed3' (f19880fc): CDEF candidates share one destination and restore only what the last candidate wrote; the coefficient writer splits scan positions by shifting Byte-exact on the gate clips and both real-film crops. 4K plane copies -20% (8 threads) / -23% (12 threads), 1080p 4x2/8 1.67 -> 1.85 fps in the instrumented build. The first-decode replacement (a frame-wide Neighbours publisher) is deferred with its shape named. Film and bars cost the same per frame on a quiet box; the earlier "2x slower" read was contention.
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.perf(av1): the coefficient writer splits a scan position by shifting, and a wall table for the film cropAhmet Kaan Gümüş · 65aa140
perf(av1): the coefficient writer splits a scan position by shifting, and a wall table for the film crop `side` is 4, 8, 16 or 32, but it reaches `write_coeffs` as a runtime value, so `pos / side` and `pos % side` compiled to a real integer division and remainder once per coefficient -- inside the encoder's largest self-time symbol. Same row and column by construction (the side is a power of two, now debug-asserted). 640x384 gate clip, 4 frames, q 150/120/90/60 and both real-film 1920x768 crops at q 150/60: byte-identical to a b7990ec1 baseline binary. 1920x1080 4 frames q=120, instructions:u ABABx2: 59.344e9 -> 59.200e9 (-0.24%), on top of the CDEF written-map commit. `filter_stage_wall_film` runs the same stage breakdown at 1920x768, and `EC_AV1_WALL_CLIP` points the test loader at a clip outside the repo, so the table can be read on a real film window as well as on the colour-bar fixture. It answers which stage grows on film: the TILE SEARCH does (285.9 -> 497.7 ms/frame, bars vs film A), while every filter stage is flat or lower -- deblock replay 15.4 -> 10.0, plane copies 28.9 -> 23.7, first decode 14.7 -> 17.2 ms/frame. Only the CDEF replay grows (13.0 -> 21.7), which is the film choosing non-zero strengths where bars do not.
perf(av1): the CDEF candidate loop keeps one destination and restores only what the last candidate wroteAhmet Kaan Gümüş · 3847d87
perf(av1): the CDEF candidate loop keeps one destination and restores only what the last candidate wrote The encoder's filter search scores ~32 candidates on one captured reconstruction, and the ~17 of them that only move a CDEF strength used to copy the three post-deblock planes (~19 MB at 4K) into fresh destinations before every one -- 7% of a 4K frame's wall, the largest plane-copy bucket left. `cdef_band` now fills a per-8x8-unit map (bit 0 luma, bit 1 chroma) of the units it actually filtered, which is what the reuse needs: the per-unit variance goes through `cdef_adjust_strength`, so a candidate with a lower primary strength can leave units its predecessor wrote and the map is not a function of the strengths alone (the reason an earlier lane recorded this reuse as not provably exact). The replay keeps its destination planes between candidates and restores, from the post-deblock cache, the column span between the first and last written unit of each unit row -- contiguous, never more than the whole-plane copy it replaces. Two restores fall away entirely: a plane whose strengths did not move, and a plane whose new primary strength is no lower with a secondary that is zero only if the old one's was, since `cdef_adjust_strength` is monotone and every unit CDEF writes it writes from the post-deblock source alone. Only while both candidates carry one strength pair and read the same cdef_idx grid; the final replay restores everything. Byte-exact: the pins (q150 7173 / q60 26362), enc_probe FNV on the 640x384 gate clip at q 150/120/90/60 and on both real-film 1920x768 crops at q 150/60 all match a b7990ec1 baseline binary exactly, and the replay-identity, facade and thread-count determinism tests pass. 4K 3840x1608 4x2 tiles / 8 threads, best of 3 on a contended box: plane copies 316 -> 268 ms per 4 frames (-15%), cdef replay unmoved.
Merge branch 'lane-av1screendet' (e65e105b): the screen-content detector gains libaom's variance termAhmet Kaan Gümüş · aea57e3
Merge branch 'lane-av1screendet' (e65e105b): the screen-content detector gains libaom's variance term Both real films read as screen on every frame (no variance term; the constants had been swept on colour bars). Rule now: 2..16 colours with per-pixel variance > 16 over more than an eighth of the frame. Film rows: +69.5/+37.7 -> +69.0/+37.5, +102.4/+63.4 -> +100.0/+61.5; bars and screen byte-identical; film wall -10% (no palette search).
docs(av1): record the five native rows before/after the detector fixAhmet Kaan Gümüş · 0938d7dBrowse files
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.
Merge branch 'lane-av1tpl3' (e9bf19f2): the propagating tpl map ships on, with the dependence ratio summed per 64x64 superblock and read through log2Ahmet Kaan Gümüş · 037459c
Merge branch 'lane-av1tpl3' (e9bf19f2): the propagating tpl map ships on, with the dependence ratio summed per 64x64 superblock and read through log2 Native table vs the one-frame map: +15.6/-1.7, +46.5/+18.8, +51.0/-14.5 (two rows down, third flat); pins 7173 / 26362. Finding on the way: the gate's two "film" clips are ffmpeg testsrc2 colour bars (90% of 16x16 cells have zero intra cost), so their columns measure a bar generator.
test(av1): lane logs -- the tpl shape sweep, the 640x384 record and the lane suiteAhmet Kaan Gümüş · e402cddBrowse files
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.