kornelski / cavif-rs

AVIF image creator in pure Rust
https://lib.rs/cavif
BSD 3-Clause "New" or "Revised" License
570 stars 27 forks source link

Fix the rounding of y in RGB-to-YCbCr conversion #40

Closed wantehchang closed 2 years ago

wantehchang commented 2 years ago

y should be rounded after being used in the calculation of cb and cr. This matches Equations 38 to 40 in H.273.

kornelski commented 2 years ago

Thanks