Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfx_cmyk_to_srgb.h
Go to the documentation of this file.
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
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_
Family GetFamily() const
CPDF_ColorSpace(Family family)
static uint32_t ComponentsForFamily(Family family)
bool IsStdConversionEnabled() const
void SetComponentsForStockCS(uint32_t nComponents)
~CPDF_DeviceCS() override
void TranslateImageLine(pdfium::span< uint8_t > dest_span, pdfium::span< const uint8_t > src_span, int pixels, int image_width, int image_height, bool bTransMask) const override
uint32_t v_Load(CPDF_Document *pDoc, const CPDF_Array *pArray, std::set< const CPDF_Object * > *pVisited) override
bool GetRGB(pdfium::span< const float > pBuf, float *R, float *G, float *B) const override
void ReverseRGB(uint8_t *pDestBuf, const uint8_t *pSrcBuf, int pixels)
Definition fx_codec.cpp:21
std::tuple< float, float, float > AdobeCMYK_to_sRGB(float c, float m, float y, float k)
std::tuple< uint8_t, uint8_t, uint8_t > AdobeCMYK_to_sRGB1(uint8_t c, uint8_t m, uint8_t y, uint8_t k)