Skip to content

Fix fixed partition tree building at partial superblocks - #5417

Merged
urvangjoshi merged 1 commit into
AOMediaCodec:av2-encfrom
jianj-g:fixed-part-assert
Sep 21, 2026
Merged

urvangjoshi merged 1 commit into
AOMediaCodec:av2-encfrom
jianj-g:fixed-part-assert

Conversation

@jianj-g

@jianj-g jianj-g commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Fix fixed partition boundary check at partial superblocks
Update find_partition_size() to use AV2's half-block boundary rule
((*bh >> 1) < rows_left && (*bw >> 1) < cols_left) instead of the legacy
AV1 full-block rule (*bh <= rows_left && *bw <= cols_left), matching
init_allowed_partitions_for_signaling().

Also introduce av2_build_partition_tree_var_based_partitioning() for
VAR_BASED_PARTITION so it does not call a function named fixed_partitioning.

Bug: b/562967635

@jianj-g
jianj-g force-pushed the fixed-part-assert branch 2 times, most recently from f640677 to 8680b74 Compare September 18, 2026 22:01
@jianj-g
jianj-g requested a review from urvangjoshi September 21, 2026 17:10
Update find_partition_size() to use AV2's half-block boundary rule
((*bh >> 1) < rows_left && (*bw >> 1) < cols_left) instead of the legacy
AV1 full-block rule (*bh <= rows_left && *bw <= cols_left), matching
init_allowed_partitions_for_signaling().

Also introduce av2_build_partition_tree_var_based_partitioning() for
VAR_BASED_PARTITION so it does not call a function named fixed_partitioning.

Bug: b/562967635
@urvangjoshi
urvangjoshi merged commit 3b7e176 into AOMediaCodec:av2-enc Sep 21, 2026
8 checks passed
urvangjoshi pushed a commit that referenced this pull request Sep 22, 2026
Fix fixed partition boundary check at partial superblocks Update
find_partition_size() to use AV2's half-block boundary rule ((*bh >> 1)
< rows_left && (*bw >> 1) < cols_left) instead of the legacy AV1
full-block rule (*bh <= rows_left && *bw <= cols_left), matching
init_allowed_partitions_for_signaling().

Also introduce av2_build_partition_tree_var_based_partitioning() for
VAR_BASED_PARTITION so it does not call a function named
fixed_partitioning.

Bug: b/562967635
(cherry picked from commit 3b7e176)
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