OLD | NEW |
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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 } | 281 } |
282 virtual void* JBig2_Realloc(void* pMem, FX_DWORD dwSize) { | 282 virtual void* JBig2_Realloc(void* pMem, FX_DWORD dwSize) { |
283 return FX_Realloc(uint8_t, pMem, dwSize); | 283 return FX_Realloc(uint8_t, pMem, dwSize); |
284 } | 284 } |
285 virtual void JBig2_Free(void* pMem) { FX_Free(pMem); } | 285 virtual void JBig2_Free(void* pMem) { FX_Free(pMem); } |
286 }; | 286 }; |
287 | 287 |
288 class CCodec_Jbig2Context { | 288 class CCodec_Jbig2Context { |
289 public: | 289 public: |
290 CCodec_Jbig2Context(); | 290 CCodec_Jbig2Context(); |
291 ~CCodec_Jbig2Context(){}; | 291 ~CCodec_Jbig2Context() {} |
292 | 292 |
293 FX_DWORD m_width; | 293 FX_DWORD m_width; |
294 FX_DWORD m_height; | 294 FX_DWORD m_height; |
295 uint8_t* m_src_buf; | 295 uint8_t* m_src_buf; |
296 FX_DWORD m_src_size; | 296 FX_DWORD m_src_size; |
297 const uint8_t* m_global_data; | 297 const uint8_t* m_global_data; |
298 FX_DWORD m_global_size; | 298 FX_DWORD m_global_size; |
299 uint8_t* m_dest_buf; | 299 uint8_t* m_dest_buf; |
300 FX_DWORD m_dest_pitch; | 300 FX_DWORD m_dest_pitch; |
301 FX_BOOL m_bFileReader; | 301 FX_BOOL m_bFileReader; |
302 IFX_Pause* m_pPause; | 302 IFX_Pause* m_pPause; |
303 CJBig2_Context* m_pContext; | 303 CJBig2_Context* m_pContext; |
304 CJBig2_Image* m_dest_image; | 304 CJBig2_Image* m_dest_image; |
305 }; | 305 }; |
306 class CCodec_Jbig2Module : public ICodec_Jbig2Module { | 306 class CCodec_Jbig2Module : public ICodec_Jbig2Module { |
307 public: | 307 public: |
308 CCodec_Jbig2Module(){}; | 308 CCodec_Jbig2Module() {} |
309 ~CCodec_Jbig2Module() override; | 309 ~CCodec_Jbig2Module() override; |
310 | 310 |
311 // ICodec_Jbig2Module | 311 // ICodec_Jbig2Module |
312 FX_BOOL Decode(FX_DWORD width, | 312 FX_BOOL Decode(FX_DWORD width, |
313 FX_DWORD height, | 313 FX_DWORD height, |
314 const uint8_t* src_buf, | 314 const uint8_t* src_buf, |
315 FX_DWORD src_size, | 315 FX_DWORD src_size, |
316 const uint8_t* global_data, | 316 const uint8_t* global_data, |
317 FX_DWORD global_size, | 317 FX_DWORD global_size, |
318 uint8_t* dest_buf, | 318 uint8_t* dest_buf, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 OPJ_SIZE_T opj_read_from_memory(void* p_buffer, | 362 OPJ_SIZE_T opj_read_from_memory(void* p_buffer, |
363 OPJ_SIZE_T nb_bytes, | 363 OPJ_SIZE_T nb_bytes, |
364 void* p_user_data); | 364 void* p_user_data); |
365 OPJ_SIZE_T opj_write_from_memory(void* p_buffer, | 365 OPJ_SIZE_T opj_write_from_memory(void* p_buffer, |
366 OPJ_SIZE_T nb_bytes, | 366 OPJ_SIZE_T nb_bytes, |
367 void* p_user_data); | 367 void* p_user_data); |
368 OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); | 368 OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); |
369 OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); | 369 OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); |
370 | 370 |
371 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ | 371 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ |
OLD | NEW |