Skip to content

Refactor ccso search - #5268

Merged
leolzhao merged 1 commit into
AOMediaCodec:av2-encfrom
ram-mohan:refactor_ccso
Aug 18, 2026
Merged

Refactor ccso search#5268
leolzhao merged 1 commit into
AOMediaCodec:av2-encfrom
ram-mohan:refactor_ccso

Conversation

@ram-mohan

Copy link
Copy Markdown
Contributor

No description provided.

@ram-mohan ram-mohan changed the title Refactor ccso search for multi-threading and memory optimization Refactor ccso search Aug 17, 2026
@ram-mohan
ram-mohan marked this pull request as ready for review August 17, 2026 17:22
@ram-mohan

Copy link
Copy Markdown
Contributor Author

@yunqingwang1 @urvangjoshi when you get a chance can you please review
cc: @harishdm @ranjit-tulabandu @cherma-a @deepa-kg @RemyaPrakasan @vikasprasad10

@leolzhao

Copy link
Copy Markdown
Contributor

Just would like to confirm whether this is a lossless refactor? @ram-mohan

@ram-mohan

Copy link
Copy Markdown
Contributor Author

Just would like to confirm whether this is a lossless refactor? @ram-mohan

Yes @leolzhao the changes are bit exact with respect to base version.

@yunqingwang1
yunqingwang1 requested a review from leolzhao August 17, 2026 18:29
- Restructure CcsoCtx's per sb buffers to use batch allocations instead
  of individual mallocs
- Collapse the per-(d0, d1, band) zero/copy loops into single per-buffer
  calls as memory is contiguous
- Replace per-pixel copy for input and recon
- Add CHECK_MEM_ERROR guards for mallocs
- Remove per plane fields from ccso context

no stats changed
@leolzhao
leolzhao merged commit d8b1854 into AOMediaCodec:av2-enc Aug 18, 2026
8 checks passed
jingninghan added a commit to jingninghan/avm that referenced this pull request Aug 19, 2026
This reverts commit d8b1854.

As the underlying assumption about independent plane search no
longer holds.
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