You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, it is necessary to call avifDecoderRead prior to reading anything from the avifImage. However, there are cases when we may want to read some of the image's metadata without actually decoding the image data itself (pixel values). Such metadata includes:
image dimensions
depth
color profile
exif / xmp metadata
potentially, whether there is an alpha plane
Could we add an api to make this possible? Ideally we would expose as much as we can without requiring anything from the codec.
The text was updated successfully, but these errors were encountered:
avifDecoderParse() is the function you are looking for, and it populates a bunch of members in avifDecoder prefixed with "container", which include the width, height, and depth. XMP and EXIF are also available after this call.
There is no guarantee that these values match the actual decoded image (if someone were being malicious), but they will be correct most of the time, and if they ever mismatch you can consider it an error.
Right now, it is necessary to call
avifDecoderRead
prior to reading anything from theavifImage
. However, there are cases when we may want to read some of the image's metadata without actually decoding the image data itself (pixel values). Such metadata includes:Could we add an api to make this possible? Ideally we would expose as much as we can without requiring anything from the codec.
The text was updated successfully, but these errors were encountered: