commit | 5e8d92c8bbc63dead2781d67c7236a26aef209cf | [log] [tgz] |
---|---|---|
author | Yannis Guyon <yguyon@google.com> | Thu Aug 31 11:19:45 2023 +0200 |
committer | Yannis Guyon <yguyon@google.com> | Thu Aug 31 11:40:27 2023 +0200 |
tree | b4e74f6679aa2ca688a3649cd2090a1a3ea7c933 | |
parent | edbfd149e221fa918ea99cb9378471560505b3be [diff] |
Update avifinfo_test_12x34_gainmap_tmap.avif Use instructions at https://github.com/AOMediaCodec/libavif/blob/16f6a7dda71a27a80fd699e1991f26278d5f0a4f/tests/gtest/avifgainmaptest.cc#L115-L117 to generate the file. avifdec from libavif failed to decode the 'tmap' derived image item metadata (introduced in libavif PR #1501). libavifinfo does not parse the 'tmap' derived image item metadata but uses libavif at head as a baseline in the avifinfo_tool test. Change-Id: Idd82c7492f30e3880318b4f6cde48feed708111a
libavifinfo is a standalone library that can be used to extract the width, height, bit depth, number of channels and other metadata from an AVIF payload.
See avifinfo.h
for details on the API and avifinfo.c
for the implementation. See tests/avifinfo_demo.cc
for API usage examples.
libavifinfo can be used when only a few AVIF features are needed and when linking to or including libavif is not an option. For decoding an image or extracting more features, please rely on libavif.
Note: AvifInfoGetFeatures()
is designed to return the same avifImage
field values as avifDecoderParse()
. However libavifinfo is more permissive and may return features of images considered invalid by libavif.
avifinfo.c
is written in C. To build from this directory:
mkdir build && \ cd build && \ cmake .. && \ cmake --build . --config Release
Tests are written in C++. GoogleTest is required.
mkdir build && \ cd build && \ cmake .. -DAVIFINFO_BUILD_TESTS=ON && \ cmake --build . --config Debug && \ ctest .
Google C/C++ Style Guide is used in this project.
If you would like to contribute to libavifinfo, please follow the steps for libaom at https://aomedia.googlesource.com/aom/#submitting-patches.
The PHP implementation of libavifinfo is a subset of the C API.
libavifinfo
was implemented into php-src natively and is available through getimagesize()
at head. If it is not available in the PHP release version you use, you can fallback to avifinfo.php
instead.
See avifinfo_test.php
for a usage example.
Bug reports can be filed in the Alliance for Open Media issue tracker.