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

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

Issue 1462923004: Reduce diffs with master in core (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 1 month 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/fxge/ge/fx_ge_text.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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 FX_DWORD height, 378 FX_DWORD height,
379 CPDF_StreamAcc* src_stream, 379 CPDF_StreamAcc* src_stream,
380 CPDF_StreamAcc* global_stream, 380 CPDF_StreamAcc* global_stream,
381 uint8_t* dest_buf, 381 uint8_t* dest_buf,
382 FX_DWORD dest_pitch, 382 FX_DWORD dest_pitch,
383 IFX_Pause* pPause) override; 383 IFX_Pause* pPause) override;
384 FXCODEC_STATUS ContinueDecode(void* pJbig2Context, 384 FXCODEC_STATUS ContinueDecode(void* pJbig2Context,
385 IFX_Pause* pPause) override; 385 IFX_Pause* pPause) override;
386 void DestroyJbig2Context(void* pJbig2Context) override; 386 void DestroyJbig2Context(void* pJbig2Context) override;
387 }; 387 };
388
388 struct DecodeData { 389 struct DecodeData {
389 public: 390 public:
390 DecodeData(unsigned char* src_data, OPJ_SIZE_T src_size) 391 DecodeData(unsigned char* src_data, OPJ_SIZE_T src_size)
391 : src_data(src_data), src_size(src_size), offset(0) {} 392 : src_data(src_data), src_size(src_size), offset(0) {}
392 unsigned char* src_data; 393 unsigned char* src_data;
393 OPJ_SIZE_T src_size; 394 OPJ_SIZE_T src_size;
394 OPJ_SIZE_T offset; 395 OPJ_SIZE_T offset;
395 }; 396 };
396 397
397 void sycc420_to_rgb(opj_image_t* img); 398 void sycc420_to_rgb(opj_image_t* img);
398 399
399 /* Wrappers for C-style callbacks. */ 400 /* Wrappers for C-style callbacks. */
400 OPJ_SIZE_T opj_read_from_memory(void* p_buffer, 401 OPJ_SIZE_T opj_read_from_memory(void* p_buffer,
401 OPJ_SIZE_T nb_bytes, 402 OPJ_SIZE_T nb_bytes,
402 void* p_user_data); 403 void* p_user_data);
403 OPJ_SIZE_T opj_write_from_memory(void* p_buffer, 404 OPJ_SIZE_T opj_write_from_memory(void* p_buffer,
404 OPJ_SIZE_T nb_bytes, 405 OPJ_SIZE_T nb_bytes,
405 void* p_user_data); 406 void* p_user_data);
406 OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); 407 OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data);
407 OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); 408 OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data);
408 409
409 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ 410 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_
OLDNEW
« no previous file with comments | « core/src/fpdftext/text_int.h ('k') | core/src/fxge/ge/fx_ge_text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698