blob: e38e57cc2b3d13e12fda0142852e3d51be6912f2 [file] [log] [blame]
K. Moon832a6942022-10-31 20:11:31 +00001// Copyright 2019 The PDFium Authors
Lei Zhang89337022019-05-28 19:13:38 +00002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef CORE_FXGE_DIB_CFX_CMYK_TO_SRGB_H_
8#define CORE_FXGE_DIB_CFX_CMYK_TO_SRGB_H_
9
10#include <stdint.h>
11
12#include <tuple>
13
14namespace fxge {
15
16std::tuple<float, float, float> AdobeCMYK_to_sRGB(float c,
17 float m,
18 float y,
19 float k);
20std::tuple<uint8_t, uint8_t, uint8_t> AdobeCMYK_to_sRGB1(uint8_t c,
21 uint8_t m,
22 uint8_t y,
23 uint8_t k);
24
25} // namespace fxge
26
27using fxge::AdobeCMYK_to_sRGB;
28using fxge::AdobeCMYK_to_sRGB1;
29
30#endif // CORE_FXGE_DIB_CFX_CMYK_TO_SRGB_H_