1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
// Copyright 2023 Yuan Tong. All rights reserved.
// SPDX-License-Identifier: BSD-2-Clause
#ifndef LIBAVIF_APPS_SHARED_ICCMAKER_H
#define LIBAVIF_APPS_SHARED_ICCMAKER_H
#include "avif/avif.h"
#ifdef __cplusplus
extern "C" {
#endif
// Note to libavif maintainers:
// These ICC maker functions only serve to handle legacy color space
// information in PNG files, and shall not be moved to libavif itself.
avifBool avifGenerateRGBICC(avifRWData * icc, float gamma, const float primaries[8]);
avifBool avifGenerateGrayICC(avifRWData * icc, float gamma, const float white[2]);
#ifdef __cplusplus
} // extern "C"
#endif
#endif //LIBAVIF_APPS_SHARED_ICCMAKER_H
|