Skip to content

Ccso: Split parameter search into sub-functions - #5336

Draft
ram-mohan wants to merge 1 commit into
AOMediaCodec:av2-encfrom
ram-mohan:refactor_ccso
Draft

Ccso: Split parameter search into sub-functions#5336
ram-mohan wants to merge 1 commit into
AOMediaCodec:av2-encfrom
ram-mohan:refactor_ccso

Conversation

@ram-mohan

Copy link
Copy Markdown
Contributor
  • Split per-plane ccso parameter search into focused sub-functions.
  • Introduce CcsoCtx/CcsoCtxCommon to carry per-plane-search state, replacing long function-argument lists.
  • Replace raw memset/memcpy with av2_zero_array/av2_copy_array, and narrow several of them from the full CCSO_BAND_NUM/ CCSO_CLASS_STATS_ENTRIES range down to the max_band/ max_edge_interval range actually used by the current search iteration.
  • corrects two places that used the horizontal filter-unit log2 for a vertical quantity (derive_blk_md(), get_sb_reuse_dist() and ccso_compute_class_err).

no stats changed

- Split per-plane ccso parameter search into focused sub-functions.
- Introduce CcsoCtx/CcsoCtxCommon to carry per-plane-search state,
  replacing long function-argument lists.
- Replace raw memset/memcpy with av2_zero_array/av2_copy_array, and
  narrow several of them from the full CCSO_BAND_NUM/
  CCSO_CLASS_STATS_ENTRIES range down to the max_band/
  max_edge_interval range actually used by the current search
  iteration.
- corrects two places that used the horizontal filter-unit log2 for a
  vertical quantity (derive_blk_md(), get_sb_reuse_dist() and
  ccso_compute_class_err).

no stats changed
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.

2 participants