Server IP : 23.254.227.96 / Your IP : 216.73.216.7 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/src/libavif-0.11.1/tests/gtest/ |
Upload File : |
// Copyright 2022 Google LLC // SPDX-License-Identifier: BSD-2-Clause #ifndef LIBAVIF_TESTS_AVIFINCRTEST_HELPERS_H_ #define LIBAVIF_TESTS_AVIFINCRTEST_HELPERS_H_ #include "avif/avif.h" namespace libavif { namespace testutil { // Encodes a portion of the image to be decoded incrementally. void EncodeRectAsIncremental(const avifImage& image, uint32_t width, uint32_t height, bool create_alpha_if_none, bool flat_cells, avifRWData* output, uint32_t* cell_width, uint32_t* cell_height); // Decodes incrementally the encoded_avif and compares the pixels with the given // reference. If is_persistent is true, the input encoded_avif is considered as // accessible during the whole decoding. If give_size_hint is true, the whole // encoded_avif size is given as a hint to the decoder. use_nth_image_api // describes whether the NthImage or NextImage decoder API will be used. The // cell_height of all planes of the encoded_avif is given to estimate the // incremental granularity. void DecodeIncrementally(const avifRWData& encoded_avif, bool is_persistent, bool give_size_hint, bool use_nth_image_api, const avifImage& reference, uint32_t cell_height); // Calls decodeIncrementally() with the reference being a regular decoding of // encoded_avif. void DecodeNonIncrementallyAndIncrementally(const avifRWData& encoded_avif, bool is_persistent, bool give_size_hint, bool use_nth_image_api, uint32_t cell_height); } // namespace testutil } // namespace libavif #endif // LIBAVIF_TESTS_AVIFINCRTEST_HELPERS_H_