Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for images with high bit depth #42

Open
linkmauve opened this issue Jan 27, 2021 · 3 comments
Open

Add support for images with high bit depth #42

linkmauve opened this issue Jan 27, 2021 · 3 comments

Comments

@linkmauve
Copy link

Hi, first of all thanks for this crate, it made AVIF support in image-rs very easy to write!

The issue is that it currently only supports 8-bit components, while modern formats like AVIF also exist in 10-bit or 12-bit depth, or even 16-bit for PNG. In practice, the output from a crate like dav1d will always use 16-bit components, with e.g. six bits left to zero and ten bits encoding the component value, for each plane.

You can find some sample files here for instance: https://github.com/AOMediaCodec/av1-avif/tree/master/testFiles/Link-U

@linkmauve linkmauve changed the title Add support for 10-bit images Add support for images with high bit depth Jan 27, 2021
@fabiosky
Copy link
Contributor

Hi @linkmauve,
thanks for your interest in!

We are interested as well in supporting the following features:

  • 10 and 12 bit yuv support
  • rgba16i and r10g10b10a2 support
  • I422 format support

Those features should cover all kind of images that avif supports.

Schedule is to be planned, we think the first feature to come in the next release will be:

  • conversion from 10 bit yuv (420 and 444 format) to r10g10b10a2 and rgba8 format

I will track those features in separate issues potentially related to this ticket.

Thanks,
Fabio

@linkmauve
Copy link
Author

Awesome, thanks!

@FlareFlo
Copy link
Contributor

FlareFlo commented Nov 4, 2023

What would it take to implement I422? Its a format i commonly encounter using Image. I'm willing to write a PR, if i figure out what is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants