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

Side by Side Diff: core/src/fxcodec/codec/codec_int.h

Issue 504883003: Revert of Use number of components from ICC profile and alternateCS (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « core/src/fpdfapi/fpdf_page/pageint.h ('k') | core/src/fxcodec/codec/fx_codec_icc.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 #include <limits.h> 7 #include <limits.h>
8 class CCodec_BasicModule : public ICodec_BasicModule 8 class CCodec_BasicModule : public ICodec_BasicModule
9 { 9 {
10 public: 10 public:
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 virtual IccCS GetProfileCS(FX_LPCBYTE pProfileData, un signed int dwProfileSize); 155 virtual IccCS GetProfileCS(FX_LPCBYTE pProfileData, un signed int dwProfileSize);
156 virtual IccCS GetProfileCS(IFX_FileRead* pFile); 156 virtual IccCS GetProfileCS(IFX_FileRead* pFile);
157 virtual FX_LPVOID CreateTransform(ICodec_IccModule::IccParam* pInp utParam, 157 virtual FX_LPVOID CreateTransform(ICodec_IccModule::IccParam* pInp utParam,
158 ICodec_IccModule::IccParam* pOutputP aram, 158 ICodec_IccModule::IccParam* pOutputP aram,
159 ICodec_IccModule::IccParam* pProofPa ram = NULL, 159 ICodec_IccModule::IccParam* pProofPa ram = NULL,
160 FX_DWORD dwIntent = Icc_INTENT_PERCE PTUAL, 160 FX_DWORD dwIntent = Icc_INTENT_PERCE PTUAL,
161 FX_DWORD dwFlag = Icc_FLAGS_DEFAULT, 161 FX_DWORD dwFlag = Icc_FLAGS_DEFAULT,
162 FX_DWORD dwPrfIntent = Icc_INTENT_AB SOLUTE_COLORIMETRIC, 162 FX_DWORD dwPrfIntent = Icc_INTENT_AB SOLUTE_COLORIMETRIC,
163 FX_DWORD dwPrfFlag = Icc_FLAGS_SOFTP ROOFING 163 FX_DWORD dwPrfFlag = Icc_FLAGS_SOFTP ROOFING
164 ); 164 );
165 virtual FX_LPVOID» » CreateTransform_sRGB(FX_LPCBYTE pProfileData, FX _DWORD dwProfileSize, FX_INT32* nComponents, FX_INT32 intent = 0, 165 virtual FX_LPVOID» » CreateTransform_sRGB(FX_LPCBYTE pProfileData, un signed int dwProfileSize, int nComponents, int intent = 0,
166 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT); 166 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT);
167 virtual FX_LPVOID» » CreateTransform_CMYK(FX_LPCBYTE pSrcProfileData, FX_DWORD dwSrcProfileSize, FX_INT32* nSrcComponents, 167 virtual FX_LPVOID» » CreateTransform_CMYK(FX_LPCBYTE pSrcProfileData, unsigned int dwSrcProfileSize, int nSrcComponents,
168 FX_LPCBYTE pDstProfileData, FX_DWORD dwDstProfileSize, FX_INT32 inte nt = 0, 168 FX_LPCBYTE pDstProfileData, unsigned int dwDstProfileSize, int inten t = 0,
169 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT, 169 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT,
170 FX_DWORD dwDstFormat = Icc_FORMAT_DEFAULT 170 FX_DWORD dwDstFormat = Icc_FORMAT_DEFAULT
171 ); 171 );
172 virtual void DestroyTransform(FX_LPVOID pTransform); 172 virtual void DestroyTransform(FX_LPVOID pTransform);
173 virtual void Translate(FX_LPVOID pTransform, FX_FLOAT * pSrcValues, FX_FLOAT* pDestValues); 173 virtual void Translate(FX_LPVOID pTransform, FX_FLOAT * pSrcValues, FX_FLOAT* pDestValues);
174 virtual void TranslateScanline(FX_LPVOID pTransform, FX_LPBYTE pDest, FX_LPCBYTE pSrc, int pixels); 174 virtual void TranslateScanline(FX_LPVOID pTransform, FX_LPBYTE pDest, FX_LPCBYTE pSrc, int pixels);
175 virtual void SetComponents(FX_DWORD nComponents) {m_n Components = nComponents;} 175 virtual void SetComponents(FX_DWORD nComponents) {m_n Components = nComponents;}
176 virtual ~CCodec_IccModule(); 176 virtual ~CCodec_IccModule();
177 protected: 177 protected:
178 CFX_MapByteStringToPtr m_MapTranform; 178 CFX_MapByteStringToPtr m_MapTranform;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 FXCODEC_STATUS StartDecode(void* pJbig2Context, FX_DWORD width, FX_DWORD height, FX_LPCBYTE src_buf, FX_DWORD src_size, 263 FXCODEC_STATUS StartDecode(void* pJbig2Context, FX_DWORD width, FX_DWORD height, FX_LPCBYTE src_buf, FX_DWORD src_size,
264 FX_LPCBYTE global_data, FX_DWORD global_size , FX_LPBYTE dest_buf, FX_DWORD dest_pitch, IFX_Pause* pPause); 264 FX_LPCBYTE global_data, FX_DWORD global_size , FX_LPBYTE dest_buf, FX_DWORD dest_pitch, IFX_Pause* pPause);
265 265
266 FXCODEC_STATUS StartDecode(void* pJbig2Context, IFX_FileRead* f ile_ptr, 266 FXCODEC_STATUS StartDecode(void* pJbig2Context, IFX_FileRead* f ile_ptr,
267 FX_DWORD& width, FX_DWORD& height, FX_DWORD& pitch, FX_LPBYTE& dest_buf, IFX_Pause* pPause); 267 FX_DWORD& width, FX_DWORD& height, FX_DWORD& pitch, FX_LPBYTE& dest_buf, IFX_Pause* pPause);
268 FXCODEC_STATUS ContinueDecode(void* pJbig2Context, IFX_Pause* p Pause); 268 FXCODEC_STATUS ContinueDecode(void* pJbig2Context, IFX_Pause* p Pause);
269 void DestroyJbig2Context(void* pJbig2Context) ; 269 void DestroyJbig2Context(void* pJbig2Context) ;
270 CPDF_Jbig2Interface m_Module; 270 CPDF_Jbig2Interface m_Module;
271 private: 271 private:
272 }; 272 };
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_page/pageint.h ('k') | core/src/fxcodec/codec/fx_codec_icc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698