summaryrefslogtreecommitdiff
path: root/xfa/src/fdp/include/fde_img.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2016-03-09 15:33:14 -0500
committerDan Sinclair <dsinclair@chromium.org>2016-03-09 15:33:14 -0500
commit2e95951e06bd4d11459fb257c7c2b8fc881854e8 (patch)
tree742484ab5d944d9c2c930133cc5968d6c6a5678d /xfa/src/fdp/include/fde_img.h
parentea2a252c40f95616eb0f03318222f0c32ef90eff (diff)
downloadpdfium-2e95951e06bd4d11459fb257c7c2b8fc881854e8.tar.xz
Cleanup the xfa/src/fdp directory.
This CL renames xfa/src/fdp to xfa/src/fde to better match all of the content (nothing mentions fdp other then the directory name). The inner src/ and include/ folders are collapsed up a level and xfa/src/fdp/src/fde is moved up to xfa/src/fde. Some of the header moves conflicted with existing headers. In that case, the existing header had the content moved into the .cpp file and we replaced the existing header with the one from include/. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1784543002 .
Diffstat (limited to 'xfa/src/fdp/include/fde_img.h')
-rw-r--r--xfa/src/fdp/include/fde_img.h92
1 files changed, 0 insertions, 92 deletions
diff --git a/xfa/src/fdp/include/fde_img.h b/xfa/src/fdp/include/fde_img.h
deleted file mode 100644
index fb7cd23fe6..0000000000
--- a/xfa/src/fdp/include/fde_img.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// 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_SRC_FDP_INCLUDE_FDE_IMG_H_
-#define XFA_SRC_FDP_INCLUDE_FDE_IMG_H_
-
-#include "xfa/src/fgas/crt/fgas_memory.h"
-#include "xfa/src/fgas/crt/fgas_stream.h"
-#include "xfa/src/fgas/crt/fgas_utils.h"
-
-#define FDE_IMAGEFORMAT_Unknown -1
-#define FDE_IMAGEFORMAT_BMP 0
-#define FDE_IMAGEFORMAT_GIF 1
-#define FDE_IMAGEFORMAT_JPEG 2
-#define FDE_IMAGEFORMAT_PNG 3
-#define FDE_IMAGEFORMAT_TIFF 4
-#define FDE_IMAGEFORMAT_JPEG2000 5
-#define FDE_IMAGEFORMAT_JBig2 6
-
-class IFDE_Image {
- public:
- static IFDE_Image* Create(IFX_Stream* pStream,
- int32_t iFormat = FDE_IMAGEFORMAT_Unknown);
- 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;
-};
-
-#define FDE_IMAGEFILTER_Unknown -1
-#define FDE_IMAGEFILTER_Opacity 0
-#define FDE_IMAGEFILTER_GrayScale 1
-#define FDE_IMAGEFILTER_BlackWhite 2
-#define FDE_IMAGEFILTER_InvertColor 3
-#define FDE_IMAGEFILTER_TransparentColor 4
-#define FDE_IMAGEFILTER_MaskColor 5
-#define FDE_IMAGEFILTER_Brightness 6
-#define FDE_IMAGEFILTER_Contrast 7
-
-struct FDE_IMAGEFILTERPARAMS : public CFX_Target {
- int32_t iFilterType;
-};
-
-struct FDE_OPACITYPARAMS : public FDE_IMAGEFILTERPARAMS {
- int32_t iOpacity;
-};
-
-struct FDE_BLACKWHITEPARAMS : public FDE_IMAGEFILTERPARAMS {
- FX_ARGB dwBlackColor;
- FX_ARGB dwWhiteColor;
-};
-
-struct FDE_TRANSPARENTPARAMS : public FDE_IMAGEFILTERPARAMS {
- FX_ARGB color;
-};
-
-struct FDE_MASKCOLORPARAMS : public FDE_IMAGEFILTERPARAMS {
- FX_ARGB color;
-};
-
-struct FDE_BRIGHTNESSPARAMS : public FDE_IMAGEFILTERPARAMS {
- int32_t iBrightness;
-};
-
-struct FDE_CONTRASTPARAMS : public FDE_IMAGEFILTERPARAMS {
- int32_t iContrast;
-};
-
-#endif // XFA_SRC_FDP_INCLUDE_FDE_IMG_H_