summaryrefslogtreecommitdiff
path: root/xfa/src/fdp/include/fde_img.h
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2015-08-04 13:00:21 -0700
committerNico Weber <thakis@chromium.org>2015-08-04 13:00:21 -0700
commit9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f (patch)
treec97037f398d714665aefccb6eb54d0969ad7030c /xfa/src/fdp/include/fde_img.h
parent780cee82236d1b3b0f9b01a22424e4b8ec9a6f12 (diff)
downloadpdfium-9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f.tar.xz
XFA: clang-format all pdfium code.
No behavior change. Generated by: find . -name '*.cpp' -o -name '*.h' | \ grep -E -v 'third_party|thirdparties|lpng_v163|tiff_v403' | \ xargs ../../buildtools/mac/clang-format -i Then manually merged https://codereview.chromium.org/1269223002/ See thread "tabs vs spaces" on pdfium@googlegroups.com for discussion. BUG=none
Diffstat (limited to 'xfa/src/fdp/include/fde_img.h')
-rw-r--r--xfa/src/fdp/include/fde_img.h126
1 files changed, 67 insertions, 59 deletions
diff --git a/xfa/src/fdp/include/fde_img.h b/xfa/src/fdp/include/fde_img.h
index f5ffda6a5a..95768fc89c 100644
--- a/xfa/src/fdp/include/fde_img.h
+++ b/xfa/src/fdp/include/fde_img.h
@@ -7,71 +7,79 @@
#ifndef _FDE_IMAGE
#define _FDE_IMAGE
class IFDE_Image;
-#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_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
+#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
typedef struct _FDE_IMAGEFILTERPARAMS : public CFX_Target {
- int32_t iFilterType;
-} FDE_IMAGEFILTERPARAMS, * FDE_LPIMAGEFILTERPARAMS;
-typedef FDE_IMAGEFILTERPARAMS const * FDE_LPCIMAGEFILTERPARAMS;
+ int32_t iFilterType;
+} FDE_IMAGEFILTERPARAMS, *FDE_LPIMAGEFILTERPARAMS;
+typedef FDE_IMAGEFILTERPARAMS const* FDE_LPCIMAGEFILTERPARAMS;
typedef struct _FDE_OPACITYPARAMS : public FDE_IMAGEFILTERPARAMS {
- int32_t iOpacity;
-} FDE_OPACITYPARAMS, * FDE_LPOPACITYPARAMS;
-typedef FDE_OPACITYPARAMS const * FDE_LPCOPACITYPARAMS;
+ int32_t iOpacity;
+} FDE_OPACITYPARAMS, *FDE_LPOPACITYPARAMS;
+typedef FDE_OPACITYPARAMS const* FDE_LPCOPACITYPARAMS;
typedef struct _FDE_BLACKWHITEPARAMS : public FDE_IMAGEFILTERPARAMS {
- FX_ARGB dwBlackColor;
- FX_ARGB dwWhiteColor;
-} FDE_BLACKWHITEPARAMS, * FDE_LPBLACKWHITEPARAMS;
-typedef FDE_BLACKWHITEPARAMS const * FDE_LPCBLACKWHITEPARAMS;
+ FX_ARGB dwBlackColor;
+ FX_ARGB dwWhiteColor;
+} FDE_BLACKWHITEPARAMS, *FDE_LPBLACKWHITEPARAMS;
+typedef FDE_BLACKWHITEPARAMS const* FDE_LPCBLACKWHITEPARAMS;
typedef struct _FDE_TRANSPARENTPARAMS : public FDE_IMAGEFILTERPARAMS {
- FX_ARGB color;
-} FDE_TRANSPARENTPARAMS, * FDE_LPTRANSPARENTPARAMS;
-typedef FDE_TRANSPARENTPARAMS const * FDE_LPCTRANSPARENTPARAMS;
+ FX_ARGB color;
+} FDE_TRANSPARENTPARAMS, *FDE_LPTRANSPARENTPARAMS;
+typedef FDE_TRANSPARENTPARAMS const* FDE_LPCTRANSPARENTPARAMS;
typedef struct _FDE_MASKCOLORPARAMS : public FDE_IMAGEFILTERPARAMS {
- FX_ARGB color;
-} FDE_MASKCOLORPARAMS, * FDE_LPMASKCOLORPARAMS;
-typedef FDE_MASKCOLORPARAMS const * FDE_LPCMASKCOLORPARAMS;
+ FX_ARGB color;
+} FDE_MASKCOLORPARAMS, *FDE_LPMASKCOLORPARAMS;
+typedef FDE_MASKCOLORPARAMS const* FDE_LPCMASKCOLORPARAMS;
typedef struct _FDE_BRIGHTNESSPARAMS : public FDE_IMAGEFILTERPARAMS {
- int32_t iBrightness;
-} FDE_BRIGHTNESSPARAMS, * FDE_LPBRIGHTNESSPARAMS;
-typedef FDE_BRIGHTNESSPARAMS const * FDE_LPCBRIGHTNESSPARAMS;
+ int32_t iBrightness;
+} FDE_BRIGHTNESSPARAMS, *FDE_LPBRIGHTNESSPARAMS;
+typedef FDE_BRIGHTNESSPARAMS const* FDE_LPCBRIGHTNESSPARAMS;
typedef struct _FDE_CONTRASTPARAMS : public FDE_IMAGEFILTERPARAMS {
- int32_t iContrast;
-} FDE_CONTRASTPARAMS, * FDE_LPCONTRASTPARAMS;
-typedef FDE_CONTRASTPARAMS const * FDE_LPCCONTRASTPARAMS;
+ int32_t iContrast;
+} FDE_CONTRASTPARAMS, *FDE_LPCONTRASTPARAMS;
+typedef FDE_CONTRASTPARAMS const* FDE_LPCCONTRASTPARAMS;
#endif