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_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 "../fxcrt/fx_basic.h" | 13 #include "../fxcrt/fx_basic.h" |
14 #include "fx_codec_def.h" | 14 #include "fx_codec_def.h" |
15 #include "fx_codec_provider.h" | 15 #include "fx_codec_provider.h" |
16 | 16 |
17 class CFX_DIBSource; | 17 class CFX_DIBSource; |
18 class CJPX_Decoder; | 18 class CJPX_Decoder; |
| 19 class CPDF_PrivateData; |
| 20 class CPDF_StreamAcc; |
19 class ICodec_ScanlineDecoder; | 21 class ICodec_ScanlineDecoder; |
20 class ICodec_BasicModule; | 22 class ICodec_BasicModule; |
21 class ICodec_FaxModule; | 23 class ICodec_FaxModule; |
22 class ICodec_JpegModule; | 24 class ICodec_JpegModule; |
23 class ICodec_JpxModule; | 25 class ICodec_JpxModule; |
24 class ICodec_Jbig2Module; | 26 class ICodec_Jbig2Module; |
25 class ICodec_IccModule; | 27 class ICodec_IccModule; |
26 class ICodec_FlateModule; | 28 class ICodec_FlateModule; |
27 class ICodec_Jbig2Encoder; | 29 class ICodec_Jbig2Encoder; |
28 class ICodec_ScanlineDecoder; | 30 class ICodec_ScanlineDecoder; |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 virtual void DestroyDecoder(CJPX_Decoder* pDecoder) = 0; | 225 virtual void DestroyDecoder(CJPX_Decoder* pDecoder) = 0; |
224 }; | 226 }; |
225 | 227 |
226 class ICodec_Jbig2Module { | 228 class ICodec_Jbig2Module { |
227 public: | 229 public: |
228 virtual ~ICodec_Jbig2Module() {} | 230 virtual ~ICodec_Jbig2Module() {} |
229 | 231 |
230 virtual void* CreateJbig2Context() = 0; | 232 virtual void* CreateJbig2Context() = 0; |
231 | 233 |
232 virtual FXCODEC_STATUS StartDecode(void* pJbig2Context, | 234 virtual FXCODEC_STATUS StartDecode(void* pJbig2Context, |
| 235 CFX_PrivateData* pPrivateData, |
233 FX_DWORD width, | 236 FX_DWORD width, |
234 FX_DWORD height, | 237 FX_DWORD height, |
235 const uint8_t* src_buf, | 238 CPDF_StreamAcc* src_stream, |
236 FX_DWORD src_size, | 239 CPDF_StreamAcc* global_stream, |
237 const uint8_t* global_data, | |
238 FX_DWORD global_size, | |
239 uint8_t* dest_buf, | 240 uint8_t* dest_buf, |
240 FX_DWORD dest_pitch, | 241 FX_DWORD dest_pitch, |
241 IFX_Pause* pPause) = 0; | 242 IFX_Pause* pPause) = 0; |
242 | 243 |
243 virtual FXCODEC_STATUS ContinueDecode(void* pJbig2Content, | 244 virtual FXCODEC_STATUS ContinueDecode(void* pJbig2Content, |
244 IFX_Pause* pPause) = 0; | 245 IFX_Pause* pPause) = 0; |
245 virtual void DestroyJbig2Context(void* pJbig2Content) = 0; | 246 virtual void DestroyJbig2Context(void* pJbig2Content) = 0; |
246 }; | 247 }; |
247 class ICodec_Jbig2Encoder { | 248 class ICodec_Jbig2Encoder { |
248 public: | 249 public: |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 338 |
338 void FaxG4Decode(const uint8_t* src_buf, | 339 void FaxG4Decode(const uint8_t* src_buf, |
339 FX_DWORD src_size, | 340 FX_DWORD src_size, |
340 int* pbitpos, | 341 int* pbitpos, |
341 uint8_t* dest_buf, | 342 uint8_t* dest_buf, |
342 int width, | 343 int width, |
343 int height, | 344 int height, |
344 int pitch); | 345 int pitch); |
345 | 346 |
346 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ | 347 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ |
OLD | NEW |