Formats: apply XMA scale factors in place #3783
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3783"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T19:01:59Z.
Apply the XMA scale factors directly to the decoded coefficients before the inverse transform. The scale-factor bands cover the subframe, and coefficient decoding replaces those entries before the next subframe uses them. This removes the separate 512-sample workspace.
I compared 1,152 generated mono and stereo frames at four sample rates, three subframe lengths and three stereo transform patterns. All 1,053,696 PCM samples and 1,769,472 floating-point output-buffer words matched bit for bit. The optimized Windows x64 fixture's frame stack slot went from 7,240 to 5,192 bytes. The per-size median throughput ratios were 1.003x, 1.000x and 0.999x for 128, 256 and 512 samples.
The formats suite passed 46 tests with five benchmarks/reference tests ignored. Strict formats Clippy and the asset policy passed.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T19:06:48Z.
Windows CI passed on
31051ff, including both Clippy configurations and the workspace tests. All 1,053,696 generated PCM samples and 1,769,472 floating-point output-buffer words matched. The optimized Windows x64 fixture's frame stack allocation was 7,240 bytes before and 5,192 bytes after, with decoder throughput medians near 1.000x.The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.