commit | db13ece3e86317d0ace5d0dcb025f224304e5a44 | [log] [tgz] |
---|---|---|
author | Yannis Guyon <yguyon@google.com> | Wed May 15 13:55:53 2024 +0000 |
committer | Yannis Guyon <yguyon@google.com> | Wed May 15 13:55:53 2024 +0000 |
tree | 5ca1845e66fbd9b4605fbda373c1383aef086065 | |
parent | 3becbeaf94c8e1c918979a63bb3af1cfdbc65938 [diff] |
Add missing colr box in test_12x34_gainmap_tmap Generated with https://github.com/AOMediaCodec/libavif/blob/8d1c71906320c9a161d661f84a7028bd2348cc6d/tests/gtest/avifgainmaptest.cc#L177 Change-Id: Ifa352bc376118521de9e49b2d01a045fc23aa7d2
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.