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

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

Issue 1088733002: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase. Created 5 years, 8 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/fpdftext/txtproc.h ('k') | core/src/fxcodec/codec/fx_codec_fax.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 #ifndef CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ 7 #ifndef CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_
8 #define CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ 8 #define CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_
9 9
10 #include <limits.h> 10 #include <limits.h>
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 class CCodec_JpxModule : public ICodec_JpxModule 198 class CCodec_JpxModule : public ICodec_JpxModule
199 { 199 {
200 public: 200 public:
201 CCodec_JpxModule(); 201 CCodec_JpxModule();
202 void* CreateDecoder(FX_LPCBYTE src_buf, FX_DWORD src_size, FX_ BOOL useColorSpace = FALSE); 202 void* CreateDecoder(FX_LPCBYTE src_buf, FX_DWORD src_size, FX_ BOOL useColorSpace = FALSE);
203 void GetImageInfo(FX_LPVOID ctx, FX_DWORD& width, FX_DWORD& h eight, 203 void GetImageInfo(FX_LPVOID ctx, FX_DWORD& width, FX_DWORD& h eight,
204 FX_DWORD& codestream_nComps, FX_DWORD& output_nComp s); 204 FX_DWORD& codestream_nComps, FX_DWORD& output_nComp s);
205 FX_BOOL Decode(void* ctx, FX_LPBYTE dest_data, int pitch, FX_BOO L bTranslateColor, FX_LPBYTE offsets); 205 FX_BOOL Decode(void* ctx, FX_LPBYTE dest_data, int pitch, FX_BOO L bTranslateColor, FX_LPBYTE offsets);
206 void DestroyDecoder(void* ctx); 206 void DestroyDecoder(void* ctx);
207 }; 207 };
208 class CPDF_Jbig2Interface : public CFX_Object, public CJBig2_Module 208 class CPDF_Jbig2Interface : public CJBig2_Module
209 { 209 {
210 public: 210 public:
211 virtual void *JBig2_Malloc(FX_DWORD dwSize) 211 virtual void *JBig2_Malloc(FX_DWORD dwSize)
212 { 212 {
213 return FX_Alloc(FX_BYTE, dwSize); 213 return FX_Alloc(FX_BYTE, dwSize);
214 } 214 }
215 virtual void *JBig2_Malloc2(FX_DWORD num, FX_DWORD dwSize) 215 virtual void *JBig2_Malloc2(FX_DWORD num, FX_DWORD dwSize)
216 { 216 {
217 if (dwSize && num >= UINT_MAX / dwSize) { 217 if (dwSize && num >= UINT_MAX / dwSize) {
218 return NULL; 218 return NULL;
(...skipping 13 matching lines...) Expand all
232 } 232 }
233 virtual void *JBig2_Realloc(FX_LPVOID pMem, FX_DWORD dwSize) 233 virtual void *JBig2_Realloc(FX_LPVOID pMem, FX_DWORD dwSize)
234 { 234 {
235 return FX_Realloc(FX_BYTE, pMem, dwSize); 235 return FX_Realloc(FX_BYTE, pMem, dwSize);
236 } 236 }
237 virtual void JBig2_Free(FX_LPVOID pMem) 237 virtual void JBig2_Free(FX_LPVOID pMem)
238 { 238 {
239 FX_Free(pMem); 239 FX_Free(pMem);
240 } 240 }
241 }; 241 };
242 class CCodec_Jbig2Context : public CFX_Object 242 class CCodec_Jbig2Context
243 { 243 {
244 public: 244 public:
245 CCodec_Jbig2Context(); 245 CCodec_Jbig2Context();
246 ~CCodec_Jbig2Context() {}; 246 ~CCodec_Jbig2Context() {};
247 IFX_FileRead* m_file_ptr; 247 IFX_FileRead* m_file_ptr;
248 FX_DWORD m_width; 248 FX_DWORD m_width;
249 FX_DWORD m_height; 249 FX_DWORD m_height;
250 FX_LPBYTE m_src_buf; 250 FX_LPBYTE m_src_buf;
251 FX_DWORD m_src_size; 251 FX_DWORD m_src_size;
252 FX_LPCBYTE m_global_data; 252 FX_LPCBYTE m_global_data;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 OPJ_SIZE_T offset; 290 OPJ_SIZE_T offset;
291 }; 291 };
292 292
293 /* Wrappers for C-style callbacks. */ 293 /* Wrappers for C-style callbacks. */
294 OPJ_SIZE_T opj_read_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_u ser_data); 294 OPJ_SIZE_T opj_read_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_u ser_data);
295 OPJ_SIZE_T opj_write_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_u ser_data); 295 OPJ_SIZE_T opj_write_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_u ser_data);
296 OPJ_OFF_T opj_skip_from_memory (OPJ_OFF_T nb_bytes, void* p_user_data); 296 OPJ_OFF_T opj_skip_from_memory (OPJ_OFF_T nb_bytes, void* p_user_data);
297 OPJ_BOOL opj_seek_from_memory (OPJ_OFF_T nb_bytes, void* p_user_data); 297 OPJ_BOOL opj_seek_from_memory (OPJ_OFF_T nb_bytes, void* p_user_data);
298 298
299 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ 299 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_
OLDNEW
« no previous file with comments | « core/src/fpdftext/txtproc.h ('k') | core/src/fxcodec/codec/fx_codec_fax.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698