Skip to content

Fix subsampling rounding in rdopt_utils.h - #5391

Merged
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
y-guyon:subsampling_rounding
Sep 21, 2026
Merged

urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
y-guyon:subsampling_rounding

Conversation

@y-guyon

@y-guyon y-guyon commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Fixes https://github.com/webmproject/CrabbyAvif/blob/c3136f98215bcb49e11581fa32f1703fad9d9740/tests/av2.rs#L35


I found the pattern used in this change in a few other places:

const int plane_w =
((frame_w + ss_x) >> ss_x) + 2 * RESTORATION_BORDER_HORZ;

ybf->uv_crop_width = (width + ss_x) >> ss_x;
ybf->uv_crop_height = (height + ss_y) >> ss_y;

@urvangjoshi
urvangjoshi merged commit 5446ded into AOMediaCodec:main Sep 21, 2026
2 checks passed
@y-guyon
y-guyon deleted the subsampling_rounding branch September 22, 2026 06:28
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