summaryrefslogtreecommitdiff
path: root/xfa/fde/fde_image.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fde/fde_image.h')
-rw-r--r--xfa/fde/fde_image.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/xfa/fde/fde_image.h b/xfa/fde/fde_image.h
new file mode 100644
index 0000000000..011f232370
--- /dev/null
+++ b/xfa/fde/fde_image.h
@@ -0,0 +1,42 @@
+// Copyright 2014 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef XFA_FDE_FDE_IMAGE_H_
+#define XFA_FDE_FDE_IMAGE_H_
+
+#include "xfa/fgas/crt/fgas_memory.h"
+#include "xfa/fgas/crt/fgas_stream.h"
+#include "xfa/fgas/crt/fgas_utils.h"
+
+class IFDE_Image {
+ public:
+ virtual ~IFDE_Image() {}
+ virtual void Release() = 0;
+ virtual FX_BOOL LoadImage() = 0;
+ virtual void FreeImage() = 0;
+ virtual int32_t CountFrames() const = 0;
+ virtual FX_BOOL LoadFrame(int32_t index) = 0;
+ virtual CFX_DIBitmap* GetFrameImage() = 0;
+ virtual int32_t GetImageFormat() const = 0;
+ virtual int32_t GetImageWidth() const = 0;
+ virtual int32_t GetImageHeight() const = 0;
+ virtual int32_t GetDelayTime(int32_t iFrameIndex) const = 0;
+ virtual int32_t GetLoopCount() const = 0;
+ virtual FX_BOOL StartLoadImage(CFX_DIBitmap* pDIBitmap,
+ int32_t dibX,
+ int32_t dibY,
+ int32_t dibCX,
+ int32_t dibCY,
+ int32_t imgX,
+ int32_t imgY,
+ int32_t imgCX,
+ int32_t imgCY,
+ int32_t iFrameIndex = 0) = 0;
+ virtual int32_t DoLoadImage(IFX_Pause* pPause = NULL) = 0;
+ virtual void StopLoadImage() = 0;
+};
+
+#endif // XFA_FDE_FDE_IMAGE_H_