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

10-bit encoding is not available #65

Closed MeiLaii closed 1 year ago

MeiLaii commented 1 year ago

I am using cavif.exe from release v1.5.0. When converting RGB24 png images, I get 8-bit depth avif instead of 10-bit depth avif. Is this a bug or is this expected behavior?

kornelski commented 1 year ago

Opaque RGB encoding should use 10-bit depth. Encoding of RGBA images will still use 8-bit depth, because I was unable to get 10-bit RGBA working in Safari (10-bit files with alpha that display fine in Firefox and Chrome ignore the alpha channel in Safari and iOS/macOS Ventura) [reported to Apple as FB11853333]

MeiLaii commented 1 year ago

I upgraded to v1.5.1 and everything is working as expected. Thanks!