OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FXCODEC_CODEC_CCODEC_TIFFMODULE_H_ | 7 #ifndef CORE_FXCODEC_CODEC_CCODEC_TIFFMODULE_H_ |
8 #define CORE_FXCODEC_CODEC_CCODEC_TIFFMODULE_H_ | 8 #define CORE_FXCODEC_CODEC_CCODEC_TIFFMODULE_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
11 | 11 |
12 class CCodec_TiffContext; | 12 class CCodec_TiffContext; |
13 class CFX_DIBAttribute; | 13 class CFX_DIBAttribute; |
14 class CFX_DIBitmap; | 14 class CFX_DIBitmap; |
15 class IFX_FileRead; | 15 class IFX_FileRead; |
16 | 16 |
17 class CCodec_TiffModule { | 17 class CCodec_TiffModule { |
18 public: | 18 public: |
19 ~CCodec_TiffModule() {} | 19 ~CCodec_TiffModule() {} |
20 | 20 |
21 CCodec_TiffContext* CreateDecoder(IFX_FileRead* file_ptr); | 21 CCodec_TiffContext* CreateDecoder(IFX_FileRead* file_ptr); |
22 | 22 |
23 void GetFrames(CCodec_TiffContext* ctx, int32_t& frames); | 23 bool LoadFrameInfo(CCodec_TiffContext* ctx, |
24 FX_BOOL LoadFrameInfo(CCodec_TiffContext* ctx, | 24 int32_t frame, |
25 int32_t frame, | 25 int32_t* width, |
26 uint32_t& width, | 26 int32_t* height, |
27 uint32_t& height, | 27 int32_t* comps, |
28 uint32_t& comps, | 28 int32_t* bpc, |
29 uint32_t& bpc, | 29 CFX_DIBAttribute* pAttribute); |
30 CFX_DIBAttribute* pAttribute); | 30 bool Decode(CCodec_TiffContext* ctx, class CFX_DIBitmap* pDIBitmap); |
31 FX_BOOL Decode(CCodec_TiffContext* ctx, class CFX_DIBitmap* pDIBitmap); | |
32 void DestroyDecoder(CCodec_TiffContext* ctx); | 31 void DestroyDecoder(CCodec_TiffContext* ctx); |
33 }; | 32 }; |
34 | 33 |
35 #endif // CORE_FXCODEC_CODEC_CCODEC_TIFFMODULE_H_ | 34 #endif // CORE_FXCODEC_CODEC_CCODEC_TIFFMODULE_H_ |
OLD | NEW |