Commits
Commits on
be2d31f20667a69ec964f749b024256a7227cdadToday
Merge branch 'simplify/u19' into simplify/w1bAhmet Kaan Gümüş · d8990c1
Merge branch 'simplify/u19' into simplify/w1b # Conflicts: # Cargo.lock
U16: delete the tautological H264Profile default test in enc/mod.rsAhmet Kaan Gümüş · 8bd692cBrowse files
U17: vk-video-ffi delete the synchronous encode* methods and flush_last (no caller: ec-vk wraps submit*+flush, ec-hw calls ec-vk only)Ahmet Kaan Gümüş · f5328b9Browse files
U16: trim tests/gpu.rs to the 8 correctness tests (ffmpeg decode oracle, H.264/HEVC encode round trips, HEVC Main10, AV1 rate control landing); drop reeld, timing, RSS, BD, profile and seek testsAhmet Kaan Gümüş · 11b1d00Browse files
U16: fold hw_tune, hw_config, hw_ten, hw_rgb, hw_pipeline, hw_speed and hw_caps into one hw_smoke example (caps, CBR tune segments, 8-bit and 10-bit round trips); drop the ffprobe profile compare and timingAhmet Kaan Gümüş · 70cc0eaBrowse files
U16: drop the capability filter in hw::capabilities; it matches every ec_vk codec and directionAhmet Kaan Gümüş · 502c34aBrowse files
U16: move History::kept into the H265 next_picture, its only callerAhmet Kaan Gümüş · cf857a2Browse files
U17: cros-libva drop the unused PhantomData import rustc flags after the buffer cleanupAhmet Kaan Gümüş · 95a81bbBrowse files
U17: vk-video-ffi delete d3d11_imports/dmabuf_imports and their ImportCache counters (read only by the deleted dmabuf_smoke example)Ahmet Kaan Gümüş · a1cd142Browse files
U17: vk-video-ffi delete every example except caps.rs and the example-only ec-*-syntax dev-dependenciesAhmet Kaan Gümüş · 213534fBrowse files
U19: ec-bench: Row::timed for the timed rows, one extract_raw for 8 and 10-bit, one AV1 HW bench parameterised by depth; ec-va linux-only dependency. Bench output label of the 8-bit HW row now names its pixel formatAhmet Kaan Gümüş · 3739e1aBrowse files
U17: ec-va tests/gpu.rs trimmed to three live tests (caps table, P010 VPP convert, DMA-BUF round trip)Ahmet Kaan Gümüş · 5c7d6bfBrowse files
U17: ec-va drop cacheline.rs, abi-probe.c, open_path, Config::profile/entrypoint, Profile::is_family_codec and Error::Drm (no caller in the workspace, edith or yumush)Ahmet Kaan Gümüş · 5f59eadBrowse files
U17: cros-libva drop unused MPEG2/VP8/JPEG buffers, Android.bp, test_frame.nv12, ignored hardware tests and crc32fast dev-dep (ec-va/ec-hw never build these)Ahmet Kaan Gümüş · 894968fBrowse files
U19: move gen_dts_tables.py and gen_h263_tables.py next to their outputs (paths in headers updated, output bytes unchanged)Ahmet Kaan Gümüş · eafdbd5Browse files
U16: remove VA encoder submit_prime, encode_frame, encode_surface and the VPP pipeline they alone used, Encoder::profile, Frame::display; drop their gpu.rs testsAhmet Kaan Gümüş · 2b83b50Browse files
U19: delete tools/oracle and its ec-riff doc mention (dead tool, no caller in edith or yumush)Ahmet Kaan Gümüş · f3d33adBrowse files
U16: drop stale allow(dead_code) on enc headers and mod, and the Encoder::context method rustc flags as unusedAhmet Kaan Gümüş · b14b493Browse files
U16: delete ec-vk examples (superseded by ec-hw examples; edith and yumush do not use them)Ahmet Kaan Gümüş · 5d3c55cBrowse files
U16: remove HwDecoder open_16/open_dmabuf/next_frame_16/next_dmabuf (callers use open, next_picture and HwPicture::to_i420_16/export_dmabuf); migrate hw_decode and hw_tenAhmet Kaan Gümüş · 43606ceBrowse files
U16: delete ec-hw abi-probe.c (ABI layouts owned by cros-libva bindgen)Ahmet Kaan Gümüş · 065b59dBrowse files
U2: drop sbr-cache.json ignore line; its file is no longer produced by any scriptAhmet Kaan Gümüş · c9e7d91Browse files
U2: delete scripts no crate, tool, cargo config or DONE.md names (dead probes, one-off gens, duplicate cmp422-ffmpeg, stale lane harnesses); keep fixtures.sh chain, remote-run.sh and anything referenced by a kept fileAhmet Kaan Gümüş · 11a0552Browse files
U1: delete 19 unused compatibility shims and list workspace members explicitly; ec-image's image dev-dep now resolves to the registry crate, not the shadowing workspace shim (no codec code or output change)Ahmet Kaan Gümüş · 8d5f903Browse files
ec-aac test full_chain_low_band: downsampled SBR outputs at the core rate, so the core is compared as is, not 2x upsampled (fsaac48 now corr 1.000000 at lag -481)Ahmet Kaan Gümüş · 83388aeBrowse files
ec-av1 bitrate test: measure on Sintel from 23 s; the 20 s window holds a fade to black (21.46-22.04 s, blackdetect) where even libaom CBR lands -18.1% at every rate; on the clean window every arm lands within 2%Ahmet Kaan Gümüş · 1afea22Browse files
ec-aac SBR: downsampled SBR (ext rate < 2*core, al_sbr_sr_48_2_fsaac48) ran the 64-band chain with tables at the 48 kHz ext rate (2048/AU). ffmpeg aacsbr_template.c: tables at 2*core, 32-band synthesis with decimated window c[2n] when ext < 2*core. Fix: parser rate always 2*core, SbrChain::set_downsampled, Synthesis::downsampled (32 bands, 64-band path numerically unchanged), k2 clamped to 32, LFE bypass same bank. QMF_WINDOW untouched (d8db6262 sign flips dropped). The 'missing' 170 AUs are the test MAX_SAMPLES=1_000_000 cap (977*1024=1000448), not decoder loss. cargo check -p ec-aac --all-targets clean; tests not runAhmet Kaan Gümüş · 780c4a9Browse files
ec-av1 RateLoop::update: do not lower q on a tiny frame (actual < target/4). Root cause: the 48-frame 384 kbps gate's fade (n=36..44, actual 818,799,41,452,193,76,278,125,50 vs targets 1.7k-4.5k) stepped q down by STEP_CLAMP each frame to q=1 (census base_q 61.6->1.6->0.0); the scene cut at n=45..47 then coded at raw_q 1 for 9619,9338,6085 bytes, the whole +7.4% overshoot (103132 vs 96000). Fix: a frame under target/TINY_FRAME_DIVISOR (4) carries no slope information, so a negative step is held at 0; q may still rise. Census reasoning: n=38..44 held at eff_q 50, n=45 coded near q 50 instead of 1. Not run; orchestrator to verify with the 48-frame gate.Ahmet Kaan Gümüş · a5f823fBrowse files
Revert "ec-aac SBR: downsampled SBR (ext rate < 2*core, e.g. al_sbr_sr_48_2_fsaac48 ASC 11 90 56 e5 98) ran the 64-band doubling chain with band tables at the 48 kHz ext rate: ours 2048/AU and band-table errors (no sideinfo rows, ours 1001472 = cap at 489 AUs x 2048 vs ffmpeg 1148 x 1024). ffmpeg (aacsbr_template.c 1147/1683/1418): sbr->sample_rate = 2*core for tables, downsampled = ext_sample_rate < sbr->sample_rate -> 32-band synthesis with the decimated window (ds[n]=c[2n]), 32 output samples/slot. Fix: parser rate always 2*core, SbrChain::set_downsampled, Synthesis::downsampled (N=32, v 640, shift -0.5 matching our analysis phase; python replica of analysis->synth32 corr 0.995 at lag 289 vs 0.9967 for the 64-band pair), k2 clamped to 32, LFE bypass uses the same bank. Also QMF_WINDOW[384] and [512] had the wrong sign vs ffmpeg us/ds tables (ffmpeg flips at 385/513, mirror-symmetric with 128/256; ours at 384/512; table now equals ffmpeg's us and ds to 1e-10), pinned sum updated 81.46300943655164 -> 82.21187106118578. cargo check -p ec-aac --all-targets clean; tests not run"Ahmet Kaan Gümüş · b3f487f
Revert "ec-aac SBR: downsampled SBR (ext rate < 2*core, e.g. al_sbr_sr_48_2_fsaac48 ASC 11 90 56 e5 98) ran the 64-band doubling chain with band tables at the 48 kHz ext rate: ours 2048/AU and band-table errors (no sideinfo rows, ours 1001472 = cap at 489 AUs x 2048 vs ffmpeg 1148 x 1024). ffmpeg (aacsbr_template.c 1147/1683/1418): sbr->sample_rate = 2*core for tables, downsampled = ext_sample_rate < sbr->sample_rate -> 32-band synthesis with the decimated window (ds[n]=c[2n]), 32 output samples/slot. Fix: parser rate always 2*core, SbrChain::set_downsampled, Synthesis::downsampled (N=32, v 640, shift -0.5 matching our analysis phase; python replica of analysis->synth32 corr 0.995 at lag 289 vs 0.9967 for the 64-band pair), k2 clamped to 32, LFE bypass uses the same bank. Also QMF_WINDOW[384] and [512] had the wrong sign vs ffmpeg us/ds tables (ffmpeg flips at 385/513, mirror-symmetric with 128/256; ours at 384/512; table now equals ffmpeg's us and ds to 1e-10), pinned sum updated 81.46300943655164 -> 82.21187106118578. cargo check -p ec-aac --all-targets clean; tests not run" This reverts commit d8db6262615fcd98c2b226b0357869639a98f115.
Revert "ec-aac: drop doc comments added in d8db6262 (no comments in code); code unchanged, cargo check -p ec-aac --all-targets clean"Ahmet Kaan Gümüş · 0c091c3
Revert "ec-aac: drop doc comments added in d8db6262 (no comments in code); code unchanged, cargo check -p ec-aac --all-targets clean" This reverts commit 1fd0b3979d821b1c317b17fc782b541cb4daf1bc.
ec-aac: drop doc comments added in d8db6262 (no comments in code); code unchanged, cargo check -p ec-aac --all-targets cleanAhmet Kaan Gümüş · 1fd0b39Browse files
ec-aac SBR: downsampled SBR (ext rate < 2*core, e.g. al_sbr_sr_48_2_fsaac48 ASC 11 90 56 e5 98) ran the 64-band doubling chain with band tables at the 48 kHz ext rate: ours 2048/AU and band-table errors (no sideinfo rows, ours 1001472 = cap at 489 AUs x 2048 vs ffmpeg 1148 x 1024). ffmpeg (aacsbr_template.c 1147/1683/1418): sbr->sample_rate = 2*core for tables, downsampled = ext_sample_rate < sbr->sample_rate -> 32-band synthesis with the decimated window (ds[n]=c[2n]), 32 output samples/slot. Fix: parser rate always 2*core, SbrChain::set_downsampled, Synthesis::downsampled (N=32, v 640, shift -0.5 matching our analysis phase; python replica of analysis->synth32 corr 0.995 at lag 289 vs 0.9967 for the 64-band pair), k2 clamped to 32, LFE bypass uses the same bank. Also QMF_WINDOW[384] and [512] had the wrong sign vs ffmpeg us/ds tables (ffmpeg flips at 385/513, mirror-symmetric with 128/256; ours at 384/512; table now equals ffmpeg's us and ds to 1e-10), pinned sum updated 81.46300943655164 -> 82.21187106118578. cargo check -p ec-aac --all-targets clean; tests not runAhmet Kaan Gümüş · d8db626Browse files
ec-av1 rate loop: geometric-mean smoothing only when not repaying. Root cause of Bitrate 384k flat leaf 1720 -> 2002 (+7.4% -> +21.3%): c-round3-full.log (11:25) predates d6f79ca2 (11:28), c-round4.log (12:06) includes it, so the smoothing is the only Bitrate change between them; with replan moving the target every frame the lagged ratio (taken against an older target) fights the repay. BytesPerFrame (fixed target) keeps smoothing. cargo check -p ec-av1 --all-targets clean; remaining +7.4% not addressed, tests left to orchestratorAhmet Kaan Gümüş · b8d3de0Browse files
ec-av1 stack_budget: Av1Encoder inventory 2704 -> 2728. Root cause: d6f79ca2 added prev_ratio [f64; 3] (24 B) to RateLoop for the geometric-mean steer; the measured size is 2728 (the_measured_inventory_is_accurate). Kept the field: the smoothing is what makes bytes_per_frame settle. cargo check -p ec-av1 --all-targets clean; tests left to orchestratorAhmet Kaan Gümüş · da6a5d9Browse files
ec-aac test: lag-search window skipped digital silence; own-core reference interpolates linearly. Root cause (measured with pinned ffmpeg, f32le): decoder timing is right, instruments were not. (1) ps_06 is 4x53 AUs; AUs 53-55 of ffmpeg output are digital silence (rms 0 over [108544,112640)). With the now-correct 2048/AU length (434176/ch, = ffmpeg) every lag search anchored at len/4 = 108544 lands exactly there, so corr is noise and the winner sits at the +/-100000 / +/-20000 bound (sbr_real_library_matches_reference, per_au_low_band_divergence, sbr_header_feature_table, synthetic_heaac_matrix ps_06). On main the shorter output moved the window to loud audio, hence the earlier pass. window_start() (single source for 4 copies) advances to the first 4x1024 block louder than 1e-4 of mean power in both signals, unchanged when the base block is loud. (2) full_chain_low_band ps_04 corr 0.964 at lag -961: nearest-neighbor 2x of the core carries a half-sample error; hold-resampling ffmpeg's own ps_04 output gives at best 0.9578 for any decoder, linear interpolation 0.9936 (cm_48_2: 0.9985 -> 0.9999, matches observed 0.9987). upsample_2x is linear; threshold stays 0.99. Also ch0 of a PS stream is not the mono core (ffmpeg ps_06 corr(L,L+R) 0.937 over 10 s), so the comparison stops where the channels first differ (mono_prefix). Decoder evidence: ours vs ffmpeg ps_04 lag 0 corr 1.000000, 52/53 windows exactly 1.0 (1 silent), len 217088 = 106*2048, pre-header AUs included; ps_06 headers only from AU 106. cargo check -p ec-aac --all-targets clean; tests not runAhmet Kaan Gümüş · a62782eBrowse files
ec-ac3: place a dependent substream's channels like ffmpeg: the k-th channel-map entry takes output slot ff_ac3_dec_channel_map[acmod][lfeon][k] (ac3dec.c extended_channel_map); the_great_wall_7.1 (3/1 dependent, map Ls Rs Lrs/Rrs) had BL and SR swapped vs ffmpegAhmet Kaan Gümüş · acbfd4cBrowse files
ec-av1 rate loop: steer on the geometric mean of the last two size ratios per slot. Evidence (c-round3-full.log sizes 4176,2073,4776,2183,3861,...): a 0.77 q step cannot move a frame 4176->2073, so the swing is inter-frame coupling (a big frame leaves a good reference, the next is small), not q slope; per-frame steering chases it as a decaying period-2 cycle that biases the mean low. Averaging log-ratios over two frames cancels the alternating component. BytesPerFrame repay=false kept; Bitrate +7.4% not separately root-caused (no census run permitted); replan still repays. cargo check -p ec-av1 --all-targets clean; tests left to orchestratorAhmet Kaan Gümüş · d6f79caBrowse files
ec-aac SBR: explicit-PS mono elements stayed 1 plane until a PS payload arrived, so pre-header AUs (and AUs without PS data) output mono while later AUs output stereo: interleave/channel count flipped, ps_06 lag -19877/-100021 at search bounds, ps_04 corr 0.96. ffmpeg (ff_aac_sbr_apply: m4ac.ps==1 -> nch=2, X[1]=X[0] when ps.start==0) always outputs 2 planes. Fix: expand_for_ps when ps_config; apply_low_only and apply_data synthesize the same slots through both channel states (dup). Delay path itself already matches (6-slot low delay = ENVELOPE_ADJUSTMENT_OFFSET gap, kx=32). Evidence: source reading + test log (cm_48_2 lag -961 is the normal QMF delay vs core, not a regression); cargo check -p ec-aac --all-targets clean; tests not runAhmet Kaan Gümüş · 90f2426Browse files
ec-av1 rate: BytesPerFrame no longer replans. Root cause of settled mean 3102 vs 4000: RateLoop::replan re-solves target = left_bytes/left_weight after every frame, so the key overshoot (22289-4000) was repaid over the remaining 23 frames, target ~3200 (observed 2950-3100). BytesPerFrame now keeps its fixed per-frame target (repay=false); Bitrate keeps the budget-remaining replan. cargo check -p ec-av1 --all-targets clean; tests left to orchestratorAhmet Kaan Gümüş · 5c168bfBrowse files
ec-ac3 real_library test: feed an independent E-AC-3 substream together with its dependent substreams as one packet, as a demuxer does (the_great_wall_7.1 starts its 7.1 with a dependent substream per packet)Ahmet Kaan Gümüş · 443844fBrowse files
ec-ac3 mantissa.rs: drop the doc comment added in 244c6bdf (no comments in code). Root cause of review FAIL: new doc text on Dither::value. Code unchanged. Evidence: cargo check -p ec-ac3 --all-targets clean. LFE path audited vs ffmpeg n8.0 (ac3dec.c 394-420, 1222-1240, 1097-1103; eac3dec.c 195-290, 384, 447-465): bap0 non-AHT LFE gives 0 (dithflag[lfe]=0), LFE bit alloc is_lfe bin 6, exp D15 2 groups, no gainrng, AHT flag parse matches. Gate ch3 still unverified (orchestrator to run csi_miami_5.1_256_spx_small.eac3)Ahmet Kaan Gümüş · c53e3aaBrowse files
ec-ac3 AHT zero-bit bins: match ffmpeg eac3dec.c. Root cause: a zero-bap AHT bin wrote six dither values straight into the blocks, while ffmpeg draws six raw LFG words (av_lfg_get & 0x7fffff) - 0x400000 per bin and then runs idct6 on every bin (line 284, after the if/else), and its dither is the raw word, not the AC-3 mantissa formula. Fix: Dither::value is the raw word scaled by 2^-23, zero bins fill pre with it and go through idct6 like VQ/GAQ bins. Evidence: ffmpeg n8.0 eac3dec.c lines 239-241 and 284; unrun (cargo check only), orchestrator to verify csi_miami_5.1_256_spx_small.eac3 ch3 LFEAhmet Kaan Gümüş · 244c6bdBrowse files
ec-aac SBR: revert out-of-scope changes from a657a423 (sbr_header resets DT state again; variable grids need >=2 envelopes again); ffmpeg resets on changed spectrum params, no decode evidence for either. Keeps the pre-header QMF pass-through fix (AUs before first sbr_header output 2048/ch like ffmpeg sbr->start=0, kx=32; al_sbr_ps_06 length gap 108544 = 106 AUs*1024)Ahmet Kaan Gümüş · 386140aBrowse files