Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2144)

Unified Diff: core/fxcodec/codec/ccodec_iccmodule.h

Issue 2355523002: Remove dead code in CCodec_IccModule (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | core/fxcodec/codec/fx_codec_icc.cpp » ('j') | core/fxcodec/codec/fx_codec_icc.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fxcodec/codec/ccodec_iccmodule.h
diff --git a/core/fxcodec/codec/ccodec_iccmodule.h b/core/fxcodec/codec/ccodec_iccmodule.h
index fd2f45665460f8b385c8c80f3260a07c096bd82f..8d4d0e9ca01829a4c8666314a894034e671f9d64 100644
--- a/core/fxcodec/codec/ccodec_iccmodule.h
+++ b/core/fxcodec/codec/ccodec_iccmodule.h
@@ -11,63 +11,16 @@
#include "core/fxcrt/include/fx_string.h"
#include "core/fxcrt/include/fx_system.h"
-class CFX_BinaryBuf;
-class CFX_IccProfileCache;
-class CFX_IccTransformCache;
-class IFX_FileRead;
-
class CCodec_IccModule {
public:
- enum IccCS {
- IccCS_Unknown = 0,
- IccCS_XYZ,
- IccCS_Lab,
- IccCS_Luv,
- IccCS_YCbCr,
- IccCS_Yxy,
- IccCS_Hsv,
- IccCS_Hls,
- IccCS_Gray,
- IccCS_Rgb,
- IccCS_Cmyk,
- IccCS_Cmy
- };
-
- struct IccParam {
- uint32_t Version;
- IccCS ColorSpace;
- uint32_t dwProfileType;
- uint32_t dwFormat;
- uint8_t* pProfileData;
- uint32_t dwProfileSize;
- double Gamma;
- };
-
CCodec_IccModule();
~CCodec_IccModule();
- IccCS GetProfileCS(const uint8_t* pProfileData, unsigned int dwProfileSize);
- IccCS GetProfileCS(IFX_FileRead* pFile);
- void* CreateTransform(CCodec_IccModule::IccParam* pInputParam,
- CCodec_IccModule::IccParam* pOutputParam,
- CCodec_IccModule::IccParam* pProofParam = nullptr,
- uint32_t dwIntent = Icc_INTENT_PERCEPTUAL,
- uint32_t dwFlag = Icc_FLAGS_DEFAULT,
- uint32_t dwPrfIntent = Icc_INTENT_ABSOLUTE_COLORIMETRIC,
- uint32_t dwPrfFlag = Icc_FLAGS_SOFTPROOFING);
void* CreateTransform_sRGB(const uint8_t* pProfileData,
uint32_t dwProfileSize,
uint32_t& nComponents,
int32_t intent = 0,
uint32_t dwSrcFormat = Icc_FORMAT_DEFAULT);
- void* CreateTransform_CMYK(const uint8_t* pSrcProfileData,
- uint32_t dwSrcProfileSize,
- uint32_t& nSrcComponents,
- const uint8_t* pDstProfileData,
- uint32_t dwDstProfileSize,
- int32_t intent = 0,
- uint32_t dwSrcFormat = Icc_FORMAT_DEFAULT,
- uint32_t dwDstFormat = Icc_FORMAT_DEFAULT);
void DestroyTransform(void* pTransform);
void Translate(void* pTransform, FX_FLOAT* pSrcValues, FX_FLOAT* pDestValues);
void TranslateScanline(void* pTransform,
@@ -77,19 +30,7 @@ class CCodec_IccModule {
void SetComponents(uint32_t nComponents) { m_nComponents = nComponents; }
protected:
- enum Icc_CLASS {
- Icc_CLASS_INPUT = 0,
- Icc_CLASS_OUTPUT,
- Icc_CLASS_PROOF,
- Icc_CLASS_MAX
- };
- void* CreateProfile(CCodec_IccModule::IccParam* pIccParam,
- Icc_CLASS ic,
- CFX_BinaryBuf* pTransformKey);
-
uint32_t m_nComponents;
- std::map<CFX_ByteString, CFX_IccTransformCache*> m_MapTranform;
- std::map<CFX_ByteString, CFX_IccProfileCache*> m_MapProfile;
};
#endif // CORE_FXCODEC_CODEC_CCODEC_ICCMODULE_H_
« no previous file with comments | « no previous file | core/fxcodec/codec/fx_codec_icc.cpp » ('j') | core/fxcodec/codec/fx_codec_icc.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698