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

Side by Side Diff: core/include/fxcodec/fx_codec.h

Issue 1177483002: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 6 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/include/fpdftext/fpdf_text.h ('k') | core/include/fxcrt/fx_arb.h » ('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 #ifndef CORE_INCLUDE_FXCODEC_FX_CODEC_H_ 7 #ifndef CORE_INCLUDE_FXCODEC_FX_CODEC_H_
8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_H_ 8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_H_
9 9
10 #include "../fxcrt/fx_ext.h" 10 #include "../fxcrt/fx_ext.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 ICodec_Jbig2Module* m_pJbig2Module; 78 ICodec_Jbig2Module* m_pJbig2Module;
79 ICodec_IccModule* m_pIccModule; 79 ICodec_IccModule* m_pIccModule;
80 ICodec_FlateModule* m_pFlateModule; 80 ICodec_FlateModule* m_pFlateModule;
81 81
82 }; 82 };
83 class ICodec_BasicModule 83 class ICodec_BasicModule
84 { 84 {
85 public: 85 public:
86 86
87 virtual ~ICodec_BasicModule() {} 87 virtual ~ICodec_BasicModule() {}
88 virtual FX_BOOL» RunLengthEncode(const FX_BYTE* src_buf, FX_DWORD src_siz e, FX_LPBYTE& dest_buf, 88 virtual FX_BOOL» RunLengthEncode(const uint8_t* src_buf, FX_DWORD src_siz e, FX_LPBYTE& dest_buf,
89 FX_DWORD& dest_size) = 0; 89 FX_DWORD& dest_size) = 0;
90 virtual FX_BOOL» A85Encode(const FX_BYTE* src_buf, FX_DWORD src_size, FX_ LPBYTE& dest_buf, 90 virtual FX_BOOL» A85Encode(const uint8_t* src_buf, FX_DWORD src_size, FX_ LPBYTE& dest_buf,
91 FX_DWORD& dest_size) = 0; 91 FX_DWORD& dest_size) = 0;
92 virtual ICodec_ScanlineDecoder* CreateRunLengthDecoder(FX_LPCBYTE src_bu f, FX_DWORD src_size, int width, int height, 92 virtual ICodec_ScanlineDecoder* CreateRunLengthDecoder(FX_LPCBYTE src_bu f, FX_DWORD src_size, int width, int height,
93 int nComps, int bpc) = 0; 93 int nComps, int bpc) = 0;
94 }; 94 };
95 class ICodec_ScanlineDecoder 95 class ICodec_ScanlineDecoder
96 { 96 {
97 public: 97 public:
98 98
99 virtual ~ICodec_ScanlineDecoder() {} 99 virtual ~ICodec_ScanlineDecoder() {}
100 100
(...skipping 17 matching lines...) Expand all
118 118
119 virtual void ClearImageData() = 0; 119 virtual void ClearImageData() = 0;
120 }; 120 };
121 class ICodec_FlateModule 121 class ICodec_FlateModule
122 { 122 {
123 public: 123 public:
124 124
125 virtual ~ICodec_FlateModule() {} 125 virtual ~ICodec_FlateModule() {}
126 virtual ICodec_ScanlineDecoder* CreateDecoder(FX_LPCBYTE src_buf, FX_DWO RD src_size, int width, int height, 126 virtual ICodec_ScanlineDecoder* CreateDecoder(FX_LPCBYTE src_buf, FX_DWO RD src_size, int width, int height,
127 int nComps, int bpc, int predictor, int Colors, int BitsPerComponent , int Columns) = 0; 127 int nComps, int bpc, int predictor, int Colors, int BitsPerComponent , int Columns) = 0;
128 virtual FX_DWORD» FlateOrLZWDecode(FX_BOOL bLZW, const FX_BYTE* src_buf, F X_DWORD src_size, FX_BOOL bEarlyChange, 128 virtual FX_DWORD» FlateOrLZWDecode(FX_BOOL bLZW, const uint8_t* src_buf, F X_DWORD src_size, FX_BOOL bEarlyChange,
129 int predictor, int Colors, int BitsPerC omponent, int Columns, 129 int predictor, int Colors, int BitsPerC omponent, int Columns,
130 FX_DWORD estimated_size, FX_LPBYTE& des t_buf, FX_DWORD& dest_size) = 0; 130 FX_DWORD estimated_size, FX_LPBYTE& des t_buf, FX_DWORD& dest_size) = 0;
131 virtual FX_BOOL» » Encode(const FX_BYTE* src_buf, FX_DWORD src_size , 131 virtual FX_BOOL» » Encode(const uint8_t* src_buf, FX_DWORD src_size ,
132 int predictor, int Colors, int BitsPerComponent, int Columns, 132 int predictor, int Colors, int BitsPerComponent, int Columns,
133 FX_LPBYTE& dest_buf, FX_DWORD& dest_size) = 0; 133 FX_LPBYTE& dest_buf, FX_DWORD& dest_size) = 0;
134 virtual FX_BOOL Encode(FX_LPCBYTE src_buf, FX_DWORD src_size, FX _LPBYTE& dest_buf, FX_DWORD& dest_size) = 0; 134 virtual FX_BOOL Encode(FX_LPCBYTE src_buf, FX_DWORD src_size, FX _LPBYTE& dest_buf, FX_DWORD& dest_size) = 0;
135 }; 135 };
136 class ICodec_FaxModule 136 class ICodec_FaxModule
137 { 137 {
138 public: 138 public:
139 139
140 virtual ~ICodec_FaxModule() {} 140 virtual ~ICodec_FaxModule() {}
141 141
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 virtual FX_LPVOID CreateTransform(ICodec_IccModule::IccParam* pInputParam, 260 virtual FX_LPVOID CreateTransform(ICodec_IccModule::IccParam* pInputParam,
261 ICodec_IccModule::IccParam* pOutputParam , 261 ICodec_IccModule::IccParam* pOutputParam ,
262 ICodec_IccModule::IccParam* pProofParam = NULL, 262 ICodec_IccModule::IccParam* pProofParam = NULL,
263 FX_DWORD dwIntent = Icc_INTENT_PERCEPTUA L, 263 FX_DWORD dwIntent = Icc_INTENT_PERCEPTUA L,
264 FX_DWORD dwFlag = Icc_FLAGS_DEFAULT, 264 FX_DWORD dwFlag = Icc_FLAGS_DEFAULT,
265 FX_DWORD dwPrfIntent = Icc_INTENT_ABSOLU TE_COLORIMETRIC, 265 FX_DWORD dwPrfIntent = Icc_INTENT_ABSOLU TE_COLORIMETRIC,
266 FX_DWORD dwPrfFlag = Icc_FLAGS_SOFTPROOF ING 266 FX_DWORD dwPrfFlag = Icc_FLAGS_SOFTPROOF ING
267 ) = 0; 267 ) = 0;
268 268
269 269
270 virtual FX_LPVOID» CreateTransform_sRGB(FX_LPCBYTE pProfileData, FX_DWORD d wProfileSize, FX_INT32& nComponents, FX_INT32 intent = 0, 270 virtual FX_LPVOID» CreateTransform_sRGB(FX_LPCBYTE pProfileData, FX_DWORD d wProfileSize, int32_t& nComponents, int32_t intent = 0,
271 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT) = 0; 271 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT) = 0;
272 272
273 virtual FX_LPVOID» CreateTransform_CMYK(FX_LPCBYTE pSrcProfileData, FX_DWOR D dwSrcProfileSize, FX_INT32& nSrcComponents, 273 virtual FX_LPVOID» CreateTransform_CMYK(FX_LPCBYTE pSrcProfileData, FX_DWOR D dwSrcProfileSize, int32_t& nSrcComponents,
274 FX_LPCBYTE pDstProfileData, FX_DWORD dwDstProfileSize, FX_INT32 inte nt = 0, 274 FX_LPCBYTE pDstProfileData, FX_DWORD dwDstProfileSize, int32_t inten t = 0,
275 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT, 275 FX_DWORD dwSrcFormat = Icc_FORMAT_DEFAULT,
276 FX_DWORD dwDstFormat = Icc_FORMAT_DEFAULT 276 FX_DWORD dwDstFormat = Icc_FORMAT_DEFAULT
277 ) = 0; 277 ) = 0;
278 278
279 virtual void DestroyTransform(FX_LPVOID pTransform) = 0; 279 virtual void DestroyTransform(FX_LPVOID pTransform) = 0;
280 280
281 virtual void Translate(FX_LPVOID pTransform, FX_FLOAT * pSrcValues, FX_FLOAT* pDestValues) = 0; 281 virtual void Translate(FX_LPVOID pTransform, FX_FLOAT * pSrcValues, FX_FLOAT* pDestValues) = 0;
282 282
283 virtual void TranslateScanline(FX_LPVOID pTransform, FX_LPBYTE pDest, FX_LPCBYTE pSrc, int pixels) = 0; 283 virtual void TranslateScanline(FX_LPVOID pTransform, FX_LPBYTE pDest, FX_LPCBYTE pSrc, int pixels) = 0;
284 virtual void SetComponents(FX_DWORD nComponents) = 0; 284 virtual void SetComponents(FX_DWORD nComponents) = 0;
285 }; 285 };
286 void AdobeCMYK_to_sRGB(FX_FLOAT c, FX_FLOAT m, FX_FLOAT y, FX_FLOAT k, FX_FLOAT& R, FX_FLOAT& G, FX_FLOAT& B); 286 void AdobeCMYK_to_sRGB(FX_FLOAT c, FX_FLOAT m, FX_FLOAT y, FX_FLOAT k, FX_FLOAT& R, FX_FLOAT& G, FX_FLOAT& B);
287 void AdobeCMYK_to_sRGB1(FX_BYTE c, FX_BYTE m, FX_BYTE y, FX_BYTE k, FX_BYTE& R, FX_BYTE& G, FX_BYTE& B); 287 void AdobeCMYK_to_sRGB1(uint8_t c, uint8_t m, uint8_t y, uint8_t k, uint8_t& R, uint8_t& G, uint8_t& B);
288 FX_BOOL MD5ComputeID(FX_LPCVOID buf, FX_DWORD dwSize, FX_BYTE ID[16]); 288 FX_BOOL MD5ComputeID(FX_LPCVOID buf, FX_DWORD dwSize, uint8_t ID[16]);
289 289
290 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ 290 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_
OLDNEW
« no previous file with comments | « core/include/fpdftext/fpdf_text.h ('k') | core/include/fxcrt/fx_arb.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698