Skip to content

Pre-allocate CCSO search buffers - #5323

Merged
urvangjoshi merged 2 commits into
AOMediaCodec:av2-encfrom
YixinDu1:fix-ccso-buffer
Aug 27, 2026
Merged

Pre-allocate CCSO search buffers#5323
urvangjoshi merged 2 commits into
AOMediaCodec:av2-encfrom
YixinDu1:fix-ccso-buffer

Conversation

@YixinDu1

Copy link
Copy Markdown
Contributor

Replace per-frame calloc/free in av2_ccso_search with persistent buffers on AV2_COMP, freed at encoder close. No bitstream impact.

@YixinDu1
YixinDu1 marked this pull request as ready for review August 26, 2026 16:03
@leolzhao
leolzhao requested a review from tianqitliu August 26, 2026 20:39
@tianqitliu

Copy link
Copy Markdown
Contributor

This commit looks good to me.
It converts all per-frame CCSO search buffers into persistent AV2_COMP buffers, so the encoder no longer needs to reallocate them every frame. It also fixes the over-allocation of the chroma buffers, which were previously sized at full luma resolution.

Replace per-frame calloc/free in av2_ccso_search with persistent buffers on AV2_COMP, freed at encoder close. No bitstream impact.
@urvangjoshi
urvangjoshi merged commit ae462ed into AOMediaCodec:av2-enc Aug 27, 2026
8 checks passed
urvangjoshi pushed a commit that referenced this pull request Sep 2, 2026
Replace per-frame calloc/free in av2_ccso_search with persistent buffers
on AV2_COMP, freed at encoder close. No bitstream impact.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants