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

Consider relaxing alpha bit depth constraint #260

Open
y-guyon opened this issue Oct 18, 2024 · 2 comments
Open

Consider relaxing alpha bit depth constraint #260

y-guyon opened this issue Oct 18, 2024 · 2 comments

Comments

@y-guyon
Copy link
Collaborator

y-guyon commented Oct 18, 2024

Section 4.1 says:

An AV1 Alpha Image Item (respectively an AV1 Alpha Image Sequence) shall be encoded with the same bit depth as the associated master AV1 Image Item (respectively AV1 Image Sequence).

This may have benefits for software or hardware implementations. However higher precision than 8 bits for alpha is rarely necessary.
I did not test whether the compression rate could be improved by sticking to 8-bit alpha samples along a 10+-bit color image, but restricting the range to useful values would not hurt on the file format design side.

@y-guyon
Copy link
Collaborator Author

y-guyon commented Oct 18, 2024

Note that this was enforced in #74.

@leo-barnes
Copy link
Collaborator

Hmmm. That's a fair point. I have a vague memory that MIAF maybe says something about this. We should verify that. If it doesn't I don't really have any objections to relaxing it.

You're mainly arguing for allowing a smaller bit-depth for alpha. Do we want to keep the restriction that bit-depth of alpha shall be <= bit-depth of RGB?

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

No branches or pull requests

2 participants