// Copyright 2019 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "core/fxge/dib/cfx_cmyk_to_srgb.h" #include <algorithm> #include <array> #include "core/fxcrt/check_op.h" #include "core/fxcrt/fx_system.h" namespace fxge { namespace { // 4-dimensional array each indexed by [0..8). constexpr std::array<const FX_RGB_STRUCT<uint8_t>, 9 * 9 * 9 * 9> kCMYK = …; constexpr inline int IndexFromCMYK(int c, int m, int y, int k) { … } } // namespace FX_RGB_STRUCT<uint8_t> AdobeCMYK_to_sRGB1(uint8_t c, uint8_t m, uint8_t y, uint8_t k) { … } FX_RGB_STRUCT<float> AdobeCMYK_to_sRGB(float c, float m, float y, float k) { … } } // namespace fxge