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

Side by Side Diff: core/include/fxcodec/fx_codec.h

Issue 1380243004: Various changes to JBig2 cache: (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase Created 5 years, 2 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
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_INCLUDE_FXCODEC_FX_CODEC_H_ 7 #ifndef CORE_INCLUDE_FXCODEC_FX_CODEC_H_
8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_H_ 8 #define CORE_INCLUDE_FXCODEC_FX_CODEC_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "../../../third_party/base/nonstd_unique_ptr.h" 12 #include "../../../third_party/base/nonstd_unique_ptr.h"
13 #include "../fpdfapi/fpdf_objects.h"
Lei Zhang 2015/10/08 03:22:44 nit: forward declare CFX_PrivateData and CPDF_Stre
David Lattimore 2015/10/08 03:44:39 Done.
13 #include "../fxcrt/fx_basic.h" 14 #include "../fxcrt/fx_basic.h"
14 #include "fx_codec_def.h" 15 #include "fx_codec_def.h"
15 #include "fx_codec_provider.h" 16 #include "fx_codec_provider.h"
16 17
17 class CFX_DIBSource; 18 class CFX_DIBSource;
18 class CJPX_Decoder; 19 class CJPX_Decoder;
19 class ICodec_ScanlineDecoder; 20 class ICodec_ScanlineDecoder;
20 class ICodec_BasicModule; 21 class ICodec_BasicModule;
21 class ICodec_FaxModule; 22 class ICodec_FaxModule;
22 class ICodec_JpegModule; 23 class ICodec_JpegModule;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 virtual void DestroyDecoder(CJPX_Decoder* pDecoder) = 0; 224 virtual void DestroyDecoder(CJPX_Decoder* pDecoder) = 0;
224 }; 225 };
225 226
226 class ICodec_Jbig2Module { 227 class ICodec_Jbig2Module {
227 public: 228 public:
228 virtual ~ICodec_Jbig2Module() {} 229 virtual ~ICodec_Jbig2Module() {}
229 230
230 virtual void* CreateJbig2Context() = 0; 231 virtual void* CreateJbig2Context() = 0;
231 232
232 virtual FXCODEC_STATUS StartDecode(void* pJbig2Context, 233 virtual FXCODEC_STATUS StartDecode(void* pJbig2Context,
234 CFX_PrivateData* pPrivateData,
233 FX_DWORD width, 235 FX_DWORD width,
234 FX_DWORD height, 236 FX_DWORD height,
235 const uint8_t* src_buf, 237 CPDF_StreamAcc* src_stream,
236 FX_DWORD src_size, 238 CPDF_StreamAcc* global_stream,
237 const uint8_t* global_data,
238 FX_DWORD global_size,
239 uint8_t* dest_buf, 239 uint8_t* dest_buf,
240 FX_DWORD dest_pitch, 240 FX_DWORD dest_pitch,
241 IFX_Pause* pPause) = 0; 241 IFX_Pause* pPause) = 0;
242 242
243 virtual FXCODEC_STATUS ContinueDecode(void* pJbig2Content, 243 virtual FXCODEC_STATUS ContinueDecode(void* pJbig2Content,
244 IFX_Pause* pPause) = 0; 244 IFX_Pause* pPause) = 0;
245 virtual void DestroyJbig2Context(void* pJbig2Content) = 0; 245 virtual void DestroyJbig2Context(void* pJbig2Content) = 0;
246 }; 246 };
247 class ICodec_Jbig2Encoder { 247 class ICodec_Jbig2Encoder {
248 public: 248 public:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 void FaxG4Decode(const uint8_t* src_buf, 338 void FaxG4Decode(const uint8_t* src_buf,
339 FX_DWORD src_size, 339 FX_DWORD src_size,
340 int* pbitpos, 340 int* pbitpos,
341 uint8_t* dest_buf, 341 uint8_t* dest_buf,
342 int width, 342 int width,
343 int height, 343 int height,
344 int pitch); 344 int pitch);
345 345
346 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ 346 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp » ('j') | core/src/fxcodec/jbig2/JBig2_BitStream.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698