• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2021 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_FPDFAPI_PAGE_CPDF_BASEDCS_H_
8 #define CORE_FPDFAPI_PAGE_CPDF_BASEDCS_H_
9 
10 #include "core/fpdfapi/page/cpdf_colorspace.h"
11 #include "core/fxcrt/retain_ptr.h"
12 
13 // Represents a color space that is based on another color space. This includes
14 // all the special color spaces in ISO 32000-1:2008, table 62, as well as the
15 // ICCBased color space.
16 class CPDF_BasedCS : public CPDF_ColorSpace {
17  public:
18   CONSTRUCT_VIA_MAKE_RETAIN;
19   ~CPDF_BasedCS() override;
20 
21   void EnableStdConversion(bool bEnabled) final;
22 
23  protected:
24   explicit CPDF_BasedCS(Family family);
25 
26   RetainPtr<CPDF_ColorSpace> m_pBaseCS;  // May be fallback CS in some cases.
27 };
28 
29 #endif  // CORE_FPDFAPI_PAGE_CPDF_BASEDCS_H_
30