1 // Copyright 2019 The PDFium Authors 2 // 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 14 namespace fxge { 15 16 std::tuple<float, float, float> AdobeCMYK_to_sRGB(float c, 17 float m, 18 float y, 19 float k); 20 std::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 27 using fxge::AdobeCMYK_to_sRGB; 28 using fxge::AdobeCMYK_to_sRGB1; 29 30 #endif // CORE_FXGE_DIB_CFX_CMYK_TO_SRGB_H_ 31