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

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

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 }; 261 };
262 class CCodec_TiffModule : public ICodec_TiffModule 262 class CCodec_TiffModule : public ICodec_TiffModule
263 { 263 {
264 public: 264 public:
265 virtual FX_LPVOID CreateDecoder(IFX_FileRead* file_ptr); 265 virtual FX_LPVOID CreateDecoder(IFX_FileRead* file_ptr);
266 virtual void GetFrames(FX_LPVOID ctx, FX_INT32& frames); 266 virtual void GetFrames(FX_LPVOID ctx, FX_INT32& frames);
267 virtual FX_BOOL LoadFrameInfo(FX_LPVOID ctx, FX_INT32 frame, FX_ DWORD& width, FX_DWORD& height, FX_DWORD& comps, FX_DWORD& bpc, CFX_DIBAttribute * pAttribute = NULL); 267 virtual FX_BOOL LoadFrameInfo(FX_LPVOID ctx, FX_INT32 frame, FX_ DWORD& width, FX_DWORD& height, FX_DWORD& comps, FX_DWORD& bpc, CFX_DIBAttribute * pAttribute = NULL);
268 virtual FX_BOOL Decode(FX_LPVOID ctx, class CFX_DIBitmap* pDIBit map); 268 virtual FX_BOOL Decode(FX_LPVOID ctx, class CFX_DIBitmap* pDIBit map);
269 virtual void DestroyDecoder(FX_LPVOID ctx); 269 virtual void DestroyDecoder(FX_LPVOID ctx);
270 }; 270 };
271 class CPDF_Jbig2Interface : public CFX_Object, public CJBig2_Module 271 class CPDF_Jbig2Interface : public CJBig2_Module
272 { 272 {
273 public: 273 public:
274 virtual void *JBig2_Malloc(FX_DWORD dwSize) 274 virtual void *JBig2_Malloc(FX_DWORD dwSize)
275 { 275 {
276 return FX_Alloc(FX_BYTE, dwSize); 276 return FX_Alloc(FX_BYTE, dwSize);
277 } 277 }
278 virtual void *JBig2_Malloc2(FX_DWORD num, FX_DWORD dwSize) 278 virtual void *JBig2_Malloc2(FX_DWORD num, FX_DWORD dwSize)
279 { 279 {
280 if (dwSize && num >= UINT_MAX / dwSize) { 280 if (dwSize && num >= UINT_MAX / dwSize) {
281 return NULL; 281 return NULL;
(...skipping 13 matching lines...) Expand all
295 } 295 }
296 virtual void *JBig2_Realloc(FX_LPVOID pMem, FX_DWORD dwSize) 296 virtual void *JBig2_Realloc(FX_LPVOID pMem, FX_DWORD dwSize)
297 { 297 {
298 return FX_Realloc(FX_BYTE, pMem, dwSize); 298 return FX_Realloc(FX_BYTE, pMem, dwSize);
299 } 299 }
300 virtual void JBig2_Free(FX_LPVOID pMem) 300 virtual void JBig2_Free(FX_LPVOID pMem)
301 { 301 {
302 FX_Free(pMem); 302 FX_Free(pMem);
303 } 303 }
304 }; 304 };
305 class CCodec_Jbig2Context : public CFX_Object 305 class CCodec_Jbig2Context
306 { 306 {
307 public: 307 public:
308 CCodec_Jbig2Context(); 308 CCodec_Jbig2Context();
309 ~CCodec_Jbig2Context() {}; 309 ~CCodec_Jbig2Context() {};
310 IFX_FileRead* m_file_ptr; 310 IFX_FileRead* m_file_ptr;
311 FX_DWORD m_width; 311 FX_DWORD m_width;
312 FX_DWORD m_height; 312 FX_DWORD m_height;
313 FX_LPBYTE m_src_buf; 313 FX_LPBYTE m_src_buf;
314 FX_DWORD m_src_size; 314 FX_DWORD m_src_size;
315 FX_LPCBYTE m_global_data; 315 FX_LPCBYTE m_global_data;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 OPJ_SIZE_T offset; 377 OPJ_SIZE_T offset;
378 }; 378 };
379 379
380 /* Wrappers for C-style callbacks. */ 380 /* Wrappers for C-style callbacks. */
381 OPJ_SIZE_T opj_read_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_u ser_data); 381 OPJ_SIZE_T opj_read_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_u ser_data);
382 OPJ_SIZE_T opj_write_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_u ser_data); 382 OPJ_SIZE_T opj_write_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_u ser_data);
383 OPJ_OFF_T opj_skip_from_memory (OPJ_OFF_T nb_bytes, void* p_user_data); 383 OPJ_OFF_T opj_skip_from_memory (OPJ_OFF_T nb_bytes, void* p_user_data);
384 OPJ_BOOL opj_seek_from_memory (OPJ_OFF_T nb_bytes, void* p_user_data); 384 OPJ_BOOL opj_seek_from_memory (OPJ_OFF_T nb_bytes, void* p_user_data);
385 385
386 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ 386 #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