OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_FXCODEC_CODEC_CCODEC_ICCMODULE_H_ | 7 #ifndef CORE_FXCODEC_CODEC_CCODEC_ICCMODULE_H_ |
8 #define CORE_FXCODEC_CODEC_CCODEC_ICCMODULE_H_ | 8 #define CORE_FXCODEC_CODEC_CCODEC_ICCMODULE_H_ |
9 | 9 |
10 #include "core/fxcodec/include/fx_codec_def.h" | 10 #include "core/fxcodec/include/fx_codec_def.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 struct IccParam { | 36 struct IccParam { |
37 uint32_t Version; | 37 uint32_t Version; |
38 IccCS ColorSpace; | 38 IccCS ColorSpace; |
39 uint32_t dwProfileType; | 39 uint32_t dwProfileType; |
40 uint32_t dwFormat; | 40 uint32_t dwFormat; |
41 uint8_t* pProfileData; | 41 uint8_t* pProfileData; |
42 uint32_t dwProfileSize; | 42 uint32_t dwProfileSize; |
43 double Gamma; | 43 double Gamma; |
44 }; | 44 }; |
45 | 45 |
| 46 CCodec_IccModule(); |
46 ~CCodec_IccModule(); | 47 ~CCodec_IccModule(); |
47 | 48 |
48 IccCS GetProfileCS(const uint8_t* pProfileData, unsigned int dwProfileSize); | 49 IccCS GetProfileCS(const uint8_t* pProfileData, unsigned int dwProfileSize); |
49 IccCS GetProfileCS(IFX_FileRead* pFile); | 50 IccCS GetProfileCS(IFX_FileRead* pFile); |
50 void* CreateTransform(CCodec_IccModule::IccParam* pInputParam, | 51 void* CreateTransform(CCodec_IccModule::IccParam* pInputParam, |
51 CCodec_IccModule::IccParam* pOutputParam, | 52 CCodec_IccModule::IccParam* pOutputParam, |
52 CCodec_IccModule::IccParam* pProofParam = nullptr, | 53 CCodec_IccModule::IccParam* pProofParam = nullptr, |
53 uint32_t dwIntent = Icc_INTENT_PERCEPTUAL, | 54 uint32_t dwIntent = Icc_INTENT_PERCEPTUAL, |
54 uint32_t dwFlag = Icc_FLAGS_DEFAULT, | 55 uint32_t dwFlag = Icc_FLAGS_DEFAULT, |
55 uint32_t dwPrfIntent = Icc_INTENT_ABSOLUTE_COLORIMETRIC, | 56 uint32_t dwPrfIntent = Icc_INTENT_ABSOLUTE_COLORIMETRIC, |
(...skipping 29 matching lines...) Expand all Loading... |
85 void* CreateProfile(CCodec_IccModule::IccParam* pIccParam, | 86 void* CreateProfile(CCodec_IccModule::IccParam* pIccParam, |
86 Icc_CLASS ic, | 87 Icc_CLASS ic, |
87 CFX_BinaryBuf* pTransformKey); | 88 CFX_BinaryBuf* pTransformKey); |
88 | 89 |
89 uint32_t m_nComponents; | 90 uint32_t m_nComponents; |
90 std::map<CFX_ByteString, CFX_IccTransformCache*> m_MapTranform; | 91 std::map<CFX_ByteString, CFX_IccTransformCache*> m_MapTranform; |
91 std::map<CFX_ByteString, CFX_IccProfileCache*> m_MapProfile; | 92 std::map<CFX_ByteString, CFX_IccProfileCache*> m_MapProfile; |
92 }; | 93 }; |
93 | 94 |
94 #endif // CORE_FXCODEC_CODEC_CCODEC_ICCMODULE_H_ | 95 #endif // CORE_FXCODEC_CODEC_CCODEC_ICCMODULE_H_ |
OLD | NEW |