Skip to content

Fix subsampling rounding in rdopt_utils.h - #5391

Open
y-guyon wants to merge 1 commit into
AOMediaCodec:mainfrom
y-guyon:subsampling_rounding
Open

Fix subsampling rounding in rdopt_utils.h#5391
y-guyon wants to merge 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;

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