Skip to content

Remove obsolete max_intra_bsize, intra_y/uv_mode_mask speed features - #5432

Merged
urvangjoshi merged 1 commit into
AOMediaCodec:av2-encfrom
urvangjoshi:mg__remove_obsolete_sps
Sep 23, 2026
Merged

urvangjoshi merged 1 commit into
AOMediaCodec:av2-encfrom
urvangjoshi:mg__remove_obsolete_sps

Conversation

@urvangjoshi

Copy link
Copy Markdown
Contributor

max_intra_bsize and intra_y_mode_mask were remnants of the old non-RD path and unused in the RD search. intra_uv_mode_mask was always set to UV_INTRA_ALL across all transform sizes after the speed >= 4 assignments were removed, making the check in intra mode search a no-op.

Also removes unused enum masks (INTRA_ALL, INTRA_DC_H_V, UV_INTRA_ALL, UV_INTRA_DC_H_V_CFL) and the unused max_tx_size parameter in av2_rd_pick_intra_sbuv_mode().

Code cleanup only: no change in stats.

…_mask

max_intra_bsize and intra_y_mode_mask were remnants of the old
non-RD path and unused in the RD search. intra_uv_mode_mask was
always set to UV_INTRA_ALL across all transform sizes after the
speed >= 4 assignments were removed, making the check in intra
mode search a no-op.

Also removes unused enum masks (INTRA_ALL, INTRA_DC_H_V, UV_INTRA_ALL,
UV_INTRA_DC_H_V_CFL) and the unused max_tx_size parameter in
av2_rd_pick_intra_sbuv_mode().

Code cleanup only: no change in stats.

@yeqing-wu yeqing-wu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup, LGTM

@urvangjoshi
urvangjoshi merged commit 5e65ca9 into AOMediaCodec:av2-enc Sep 23, 2026
107 checks passed
@urvangjoshi
urvangjoshi deleted the mg__remove_obsolete_sps branch September 23, 2026 20:14
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.

3 participants