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

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

Issue 1301453002: Merge to XFA: Cleanup: Fix some unneeded semi-colons and bad spacing. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 4 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/text_int.h ('k') | core/src/fxcodec/jbig2/JBig2_Context.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_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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 } 364 }
365 virtual void* JBig2_Realloc(void* pMem, FX_DWORD dwSize) { 365 virtual void* JBig2_Realloc(void* pMem, FX_DWORD dwSize) {
366 return FX_Realloc(uint8_t, pMem, dwSize); 366 return FX_Realloc(uint8_t, pMem, dwSize);
367 } 367 }
368 virtual void JBig2_Free(void* pMem) { FX_Free(pMem); } 368 virtual void JBig2_Free(void* pMem) { FX_Free(pMem); }
369 }; 369 };
370 370
371 class CCodec_Jbig2Context { 371 class CCodec_Jbig2Context {
372 public: 372 public:
373 CCodec_Jbig2Context(); 373 CCodec_Jbig2Context();
374 ~CCodec_Jbig2Context(){}; 374 ~CCodec_Jbig2Context() {}
375 375
376 FX_DWORD m_width; 376 FX_DWORD m_width;
377 FX_DWORD m_height; 377 FX_DWORD m_height;
378 uint8_t* m_src_buf; 378 uint8_t* m_src_buf;
379 FX_DWORD m_src_size; 379 FX_DWORD m_src_size;
380 const uint8_t* m_global_data; 380 const uint8_t* m_global_data;
381 FX_DWORD m_global_size; 381 FX_DWORD m_global_size;
382 uint8_t* m_dest_buf; 382 uint8_t* m_dest_buf;
383 FX_DWORD m_dest_pitch; 383 FX_DWORD m_dest_pitch;
384 FX_BOOL m_bFileReader; 384 FX_BOOL m_bFileReader;
385 IFX_Pause* m_pPause; 385 IFX_Pause* m_pPause;
386 CJBig2_Context* m_pContext; 386 CJBig2_Context* m_pContext;
387 CJBig2_Image* m_dest_image; 387 CJBig2_Image* m_dest_image;
388 }; 388 };
389 class CCodec_Jbig2Module : public ICodec_Jbig2Module { 389 class CCodec_Jbig2Module : public ICodec_Jbig2Module {
390 public: 390 public:
391 CCodec_Jbig2Module(){}; 391 CCodec_Jbig2Module() {}
392 ~CCodec_Jbig2Module() override; 392 ~CCodec_Jbig2Module() override;
393 393
394 // ICodec_Jbig2Module 394 // ICodec_Jbig2Module
395 FX_BOOL Decode(FX_DWORD width, 395 FX_BOOL Decode(FX_DWORD width,
396 FX_DWORD height, 396 FX_DWORD height,
397 const uint8_t* src_buf, 397 const uint8_t* src_buf,
398 FX_DWORD src_size, 398 FX_DWORD src_size,
399 const uint8_t* global_data, 399 const uint8_t* global_data,
400 FX_DWORD global_size, 400 FX_DWORD global_size,
401 uint8_t* dest_buf, 401 uint8_t* dest_buf,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 OPJ_SIZE_T opj_read_from_memory(void* p_buffer, 476 OPJ_SIZE_T opj_read_from_memory(void* p_buffer,
477 OPJ_SIZE_T nb_bytes, 477 OPJ_SIZE_T nb_bytes,
478 void* p_user_data); 478 void* p_user_data);
479 OPJ_SIZE_T opj_write_from_memory(void* p_buffer, 479 OPJ_SIZE_T opj_write_from_memory(void* p_buffer,
480 OPJ_SIZE_T nb_bytes, 480 OPJ_SIZE_T nb_bytes,
481 void* p_user_data); 481 void* p_user_data);
482 OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); 482 OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data);
483 OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); 483 OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data);
484 484
485 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ 485 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_
OLDNEW
« no previous file with comments | « core/src/fpdftext/text_int.h ('k') | core/src/fxcodec/jbig2/JBig2_Context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698