File: iccmaker.h

package info (click to toggle)
libavif 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 21,648 kB
  • sloc: ansic: 30,743; cpp: 14,606; xml: 1,507; sh: 1,296; java: 307; makefile: 57
file content (23 lines) | stat: -rw-r--r-- 660 bytes parent folder | download | duplicates (9)
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