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

Side by Side Diff: core/fxcodec/codec/ccodec_tiffmodule.h

Issue 2451493002: Refcount all the IFX_ stream classes all the time. (Closed)
Patch Set: Clean up cast expression Created 4 years 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 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/cfx_retain_ptr.h"
10 #include "core/fxcrt/fx_system.h" 11 #include "core/fxcrt/fx_system.h"
11 12
12 class CCodec_TiffContext; 13 class CCodec_TiffContext;
13 class CFX_DIBAttribute; 14 class CFX_DIBAttribute;
14 class CFX_DIBitmap; 15 class CFX_DIBitmap;
15 class IFX_SeekableReadStream; 16 class IFX_SeekableReadStream;
16 17
17 class CCodec_TiffModule { 18 class CCodec_TiffModule {
18 public: 19 public:
19 ~CCodec_TiffModule() {} 20 ~CCodec_TiffModule() {}
20 21
21 CCodec_TiffContext* CreateDecoder(IFX_SeekableReadStream* file_ptr); 22 CCodec_TiffContext* CreateDecoder(
23 const CFX_RetainPtr<IFX_SeekableReadStream>& file_ptr);
22 24
23 bool LoadFrameInfo(CCodec_TiffContext* ctx, 25 bool LoadFrameInfo(CCodec_TiffContext* ctx,
24 int32_t frame, 26 int32_t frame,
25 int32_t* width, 27 int32_t* width,
26 int32_t* height, 28 int32_t* height,
27 int32_t* comps, 29 int32_t* comps,
28 int32_t* bpc, 30 int32_t* bpc,
29 CFX_DIBAttribute* pAttribute); 31 CFX_DIBAttribute* pAttribute);
30 bool Decode(CCodec_TiffContext* ctx, class CFX_DIBitmap* pDIBitmap); 32 bool Decode(CCodec_TiffContext* ctx, class CFX_DIBitmap* pDIBitmap);
31 void DestroyDecoder(CCodec_TiffContext* ctx); 33 void DestroyDecoder(CCodec_TiffContext* ctx);
32 }; 34 };
33 35
34 #endif // CORE_FXCODEC_CODEC_CCODEC_TIFFMODULE_H_ 36 #endif // CORE_FXCODEC_CODEC_CCODEC_TIFFMODULE_H_
OLDNEW
« no previous file with comments | « core/fxcodec/codec/ccodec_progressivedecoder.h ('k') | core/fxcodec/codec/fx_codec_progress.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698