OLD | NEW |
| (Empty) |
1 // Copyright 2014 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 XFA_SRC_FDE_FDE_IMAGE_H_ | |
8 #define XFA_SRC_FDE_FDE_IMAGE_H_ | |
9 | |
10 #include "xfa/src/fgas/crt/fgas_memory.h" | |
11 #include "xfa/src/fgas/crt/fgas_stream.h" | |
12 #include "xfa/src/fgas/crt/fgas_utils.h" | |
13 | |
14 class IFDE_Image { | |
15 public: | |
16 virtual ~IFDE_Image() {} | |
17 virtual void Release() = 0; | |
18 virtual FX_BOOL LoadImage() = 0; | |
19 virtual void FreeImage() = 0; | |
20 virtual int32_t CountFrames() const = 0; | |
21 virtual FX_BOOL LoadFrame(int32_t index) = 0; | |
22 virtual CFX_DIBitmap* GetFrameImage() = 0; | |
23 virtual int32_t GetImageFormat() const = 0; | |
24 virtual int32_t GetImageWidth() const = 0; | |
25 virtual int32_t GetImageHeight() const = 0; | |
26 virtual int32_t GetDelayTime(int32_t iFrameIndex) const = 0; | |
27 virtual int32_t GetLoopCount() const = 0; | |
28 virtual FX_BOOL StartLoadImage(CFX_DIBitmap* pDIBitmap, | |
29 int32_t dibX, | |
30 int32_t dibY, | |
31 int32_t dibCX, | |
32 int32_t dibCY, | |
33 int32_t imgX, | |
34 int32_t imgY, | |
35 int32_t imgCX, | |
36 int32_t imgCY, | |
37 int32_t iFrameIndex = 0) = 0; | |
38 virtual int32_t DoLoadImage(IFX_Pause* pPause = NULL) = 0; | |
39 virtual void StopLoadImage() = 0; | |
40 }; | |
41 | |
42 #endif // XFA_SRC_FDE_FDE_IMAGE_H_ | |
OLD | NEW |