Home | History | Annotate | Download | only in codec
      1 // Copyright 2016 PDFium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
      6 
      7 #ifndef CORE_FXCODEC_CODEC_CCODEC_TIFFMODULE_H_
      8 #define CORE_FXCODEC_CODEC_CCODEC_TIFFMODULE_H_
      9 
     10 #include "core/fxcodec/codec/icodec_tiffmodule.h"
     11 #include "core/fxcrt/cfx_retain_ptr.h"
     12 #include "core/fxcrt/fx_system.h"
     13 
     14 class CCodec_TiffModule : public ICodec_TiffModule {
     15  public:
     16   ~CCodec_TiffModule() override {}
     17 
     18   CCodec_TiffContext* CreateDecoder(
     19       const CFX_RetainPtr<IFX_SeekableReadStream>& file_ptr) override;
     20   bool LoadFrameInfo(CCodec_TiffContext* ctx,
     21                      int32_t frame,
     22                      int32_t* width,
     23                      int32_t* height,
     24                      int32_t* comps,
     25                      int32_t* bpc,
     26                      CFX_DIBAttribute* pAttribute) override;
     27   bool Decode(CCodec_TiffContext* ctx, class CFX_DIBitmap* pDIBitmap) override;
     28   void DestroyDecoder(CCodec_TiffContext* ctx) override;
     29 };
     30 
     31 #endif  // CORE_FXCODEC_CODEC_CCODEC_TIFFMODULE_H_
     32