-
Notifications
You must be signed in to change notification settings - Fork 40
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
Can alpha or depth image have different size to a primary image? #68
Comments
They can be different. Section 6.7 of the MIAF specification says this:
The following note also appears in the glossary in section 3.1:
|
@aklemets Thanks to quick response!(And sorry to miss it...) I have an additional question. How about bits per component? For example, can I attach 12bit (alpha or depth) image(s) to a 8bit RGB image? |
That seems to be allowed. The spec does not mandate a particular bit depth for alpha. But I would expect the bit depth to be constrained by the profile. Let's say the file is labeled with a profile that allows up to 10-bit images. Then 8 and 10 bits would be allowed for the alpha plane, but 12 would not be allowed in that case. If the file does not adhere to any profile, then anything goes. The spec only says this about the encoding of the alpha plane:
|
@aklemets Thanks! and sorry to be late.... If I understand correctly, there are two AV1 Sequence Headers for a primary image and for an alpha image in the same file. So, it is possible to make an image with different profiles, such as an image which contains 8bit primary image (profile=0) and 12-bit alpha image (profile=2), isn't it? (If the file is marked as |
Yes, you can have an image where the main image is 8 bits and the alpha plane is 12 bits. It would be a valid file. |
AVIF profile depends on all of primary, alpha and depth images. Please see this discussion for details: AOMediaCodec/av1-avif#68
AVIF profile depends on all of primary, alpha and depth images. Please see this discussion for details: AOMediaCodec/av1-avif#68
I understand (and I implemented that to cavif). |
According to doc, there is no constraint about alpha or depth image's sizes.
Can alpha or depth image have different size to a primary image? As an decoder developer, I hope primary image's size and alpha image's size must be the same..
The text was updated successfully, but these errors were encountered: