• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 PDFium Authors. All rights reserved.
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_FPDFAPI_PAGE_CPDF_DEVICECS_H_
8 #define CORE_FPDFAPI_PAGE_CPDF_DEVICECS_H_
9 
10 #include <set>
11 
12 #include "core/fpdfapi/page/cpdf_colorspace.h"
13 
14 class CPDF_DeviceCS : public CPDF_ColorSpace {
15  public:
16   explicit CPDF_DeviceCS(int family);
17   ~CPDF_DeviceCS() override;
18 
19   // CPDF_ColorSpace:
20   uint32_t v_Load(CPDF_Document* pDoc,
21                   CPDF_Array* pArray,
22                   std::set<CPDF_Object*>* pVisited) override;
23   bool GetRGB(float* pBuf, float* R, float* G, float* B) const override;
24   void TranslateImageLine(uint8_t* pDestBuf,
25                           const uint8_t* pSrcBuf,
26                           int pixels,
27                           int image_width,
28                           int image_height,
29                           bool bTransMask) const override;
30 };
31 
32 #endif  // CORE_FPDFAPI_PAGE_CPDF_DEVICECS_H_
33