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

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

Issue 1305223010: Merge to XFA: Cleanup dead code in CPDF_DIBSource::LoadJpxBitmap() and friends. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 3 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 | « no previous file | core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.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_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 "../../../third_party/base/nonstd_unique_ptr.h" 10 #include "../../../third_party/base/nonstd_unique_ptr.h"
11 #include "../fxcrt/fx_basic.h" 11 #include "../fxcrt/fx_basic.h"
12 #include "../fxcrt/fx_coordinates.h" 12 #include "../fxcrt/fx_coordinates.h"
13 #include "fx_codec_def.h" 13 #include "fx_codec_def.h"
14 #include "fx_codec_provider.h" 14 #include "fx_codec_provider.h"
15 15
16 class CFX_DIBSource; 16 class CFX_DIBSource;
17 class CJPX_Decoder;
17 class ICodec_ScanlineDecoder; 18 class ICodec_ScanlineDecoder;
18 class ICodec_ProgressiveDecoder; 19 class ICodec_ProgressiveDecoder;
19 class ICodec_BasicModule; 20 class ICodec_BasicModule;
20 class ICodec_FaxModule; 21 class ICodec_FaxModule;
21 class ICodec_JpegModule; 22 class ICodec_JpegModule;
22 class ICodec_JpxModule; 23 class ICodec_JpxModule;
23 class ICodec_Jbig2Module; 24 class ICodec_Jbig2Module;
24 class ICodec_IccModule; 25 class ICodec_IccModule;
25 class ICodec_FlateModule; 26 class ICodec_FlateModule;
26 class ICodec_Jbig2Encoder; 27 class ICodec_Jbig2Encoder;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 int* nComps, 207 int* nComps,
207 CFX_DIBAttribute* pAttribute = NULL) = 0; 208 CFX_DIBAttribute* pAttribute = NULL) = 0;
208 209
209 virtual int StartScanline(void* pContext, int down_scale) = 0; 210 virtual int StartScanline(void* pContext, int down_scale) = 0;
210 211
211 virtual FX_BOOL ReadScanline(void* pContext, uint8_t* dest_buf) = 0; 212 virtual FX_BOOL ReadScanline(void* pContext, uint8_t* dest_buf) = 0;
212 213
213 virtual FX_DWORD GetAvailInput(void* pContext, 214 virtual FX_DWORD GetAvailInput(void* pContext,
214 uint8_t** avail_buf_ptr = NULL) = 0; 215 uint8_t** avail_buf_ptr = NULL) = 0;
215 }; 216 };
217
216 class ICodec_JpxModule { 218 class ICodec_JpxModule {
217 public: 219 public:
218 virtual ~ICodec_JpxModule() {} 220 virtual ~ICodec_JpxModule() {}
219 221
220 virtual void* CreateDecoder(const uint8_t* src_buf, 222 virtual CJPX_Decoder* CreateDecoder(const uint8_t* src_buf,
221 FX_DWORD src_size, 223 FX_DWORD src_size,
222 FX_BOOL useColorSpace = FALSE) = 0; 224 bool use_colorspace) = 0;
223 225
224 virtual void GetImageInfo(void* ctx, 226 virtual void GetImageInfo(CJPX_Decoder* pDecoder,
225 FX_DWORD& width, 227 FX_DWORD* width,
226 FX_DWORD& height, 228 FX_DWORD* height,
227 FX_DWORD& codestream_nComps, 229 FX_DWORD* components) = 0;
228 FX_DWORD& output_nComps) = 0;
229 230
230 virtual FX_BOOL Decode(void* ctx, 231 virtual FX_BOOL Decode(CJPX_Decoder* pDecoder,
231 uint8_t* dest_data, 232 uint8_t* dest_data,
232 int pitch, 233 int pitch,
233 FX_BOOL bTranslateColor,
234 uint8_t* offsets) = 0; 234 uint8_t* offsets) = 0;
235 235
236 virtual void DestroyDecoder(void* ctx) = 0; 236 virtual void DestroyDecoder(CJPX_Decoder* pDecoder) = 0;
237 }; 237 };
238 class ICodec_PngModule { 238 class ICodec_PngModule {
239 public: 239 public:
240 virtual ~ICodec_PngModule() {} 240 virtual ~ICodec_PngModule() {}
241 241
242 virtual void* Start(void* pModule) = 0; 242 virtual void* Start(void* pModule) = 0;
243 243
244 virtual void Finish(void* pContext) = 0; 244 virtual void Finish(void* pContext) = 0;
245 245
246 virtual FX_BOOL Input(void* pContext, 246 virtual FX_BOOL Input(void* pContext,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 FX_DWORD& width, 343 FX_DWORD& width,
344 FX_DWORD& height, 344 FX_DWORD& height,
345 FX_DWORD& comps, 345 FX_DWORD& comps,
346 FX_DWORD& bpc, 346 FX_DWORD& bpc,
347 CFX_DIBAttribute* pAttribute = NULL) = 0; 347 CFX_DIBAttribute* pAttribute = NULL) = 0;
348 348
349 virtual FX_BOOL Decode(void* ctx, class CFX_DIBitmap* pDIBitmap) = 0; 349 virtual FX_BOOL Decode(void* ctx, class CFX_DIBitmap* pDIBitmap) = 0;
350 350
351 virtual void DestroyDecoder(void* ctx) = 0; 351 virtual void DestroyDecoder(void* ctx) = 0;
352 }; 352 };
353
Lei Zhang 2015/09/03 21:38:40 There was a conflict due to this blank line.
353 class ICodec_Jbig2Module { 354 class ICodec_Jbig2Module {
354 public: 355 public:
355 virtual ~ICodec_Jbig2Module() {} 356 virtual ~ICodec_Jbig2Module() {}
356 357
357 virtual FX_BOOL Decode(FX_DWORD width, 358 virtual FX_BOOL Decode(FX_DWORD width,
358 FX_DWORD height, 359 FX_DWORD height,
359 const uint8_t* src_buf, 360 const uint8_t* src_buf,
360 FX_DWORD src_size, 361 FX_DWORD src_size,
361 const uint8_t* global_data, 362 const uint8_t* global_data,
362 FX_DWORD global_size, 363 FX_DWORD global_size,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 int32_t m_nBmpCompressType; 545 int32_t m_nBmpCompressType;
545 class IFX_DIBAttributeExif* m_pExif; 546 class IFX_DIBAttributeExif* m_pExif;
546 }; 547 };
547 class IFX_DIBAttributeExif { 548 class IFX_DIBAttributeExif {
548 public: 549 public:
549 virtual ~IFX_DIBAttributeExif(){}; 550 virtual ~IFX_DIBAttributeExif(){};
550 virtual FX_BOOL GetInfo(FX_WORD tag, void* val) = 0; 551 virtual FX_BOOL GetInfo(FX_WORD tag, void* val) = 0;
551 }; 552 };
552 553
553 #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_H_ 554 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698