OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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 XFA_SRC_FDP_INCLUDE_FDE_IMG_H_ | 7 #ifndef XFA_SRC_FDP_INCLUDE_FDE_IMG_H_ |
8 #define XFA_SRC_FDP_INCLUDE_FDE_IMG_H_ | 8 #define XFA_SRC_FDP_INCLUDE_FDE_IMG_H_ |
9 | 9 |
10 #include "xfa/src/fgas/include/fx_mem.h" | 10 #include "xfa/src/fgas/include/fx_mem.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 int32_t dibCX, | 42 int32_t dibCX, |
43 int32_t dibCY, | 43 int32_t dibCY, |
44 int32_t imgX, | 44 int32_t imgX, |
45 int32_t imgY, | 45 int32_t imgY, |
46 int32_t imgCX, | 46 int32_t imgCX, |
47 int32_t imgCY, | 47 int32_t imgCY, |
48 int32_t iFrameIndex = 0) = 0; | 48 int32_t iFrameIndex = 0) = 0; |
49 virtual int32_t DoLoadImage(IFX_Pause* pPause = NULL) = 0; | 49 virtual int32_t DoLoadImage(IFX_Pause* pPause = NULL) = 0; |
50 virtual void StopLoadImage() = 0; | 50 virtual void StopLoadImage() = 0; |
51 }; | 51 }; |
| 52 |
52 #define FDE_IMAGEFILTER_Unknown -1 | 53 #define FDE_IMAGEFILTER_Unknown -1 |
53 #define FDE_IMAGEFILTER_Opacity 0 | 54 #define FDE_IMAGEFILTER_Opacity 0 |
54 #define FDE_IMAGEFILTER_GrayScale 1 | 55 #define FDE_IMAGEFILTER_GrayScale 1 |
55 #define FDE_IMAGEFILTER_BlackWhite 2 | 56 #define FDE_IMAGEFILTER_BlackWhite 2 |
56 #define FDE_IMAGEFILTER_InvertColor 3 | 57 #define FDE_IMAGEFILTER_InvertColor 3 |
57 #define FDE_IMAGEFILTER_TransparentColor 4 | 58 #define FDE_IMAGEFILTER_TransparentColor 4 |
58 #define FDE_IMAGEFILTER_MaskColor 5 | 59 #define FDE_IMAGEFILTER_MaskColor 5 |
59 #define FDE_IMAGEFILTER_Brightness 6 | 60 #define FDE_IMAGEFILTER_Brightness 6 |
60 #define FDE_IMAGEFILTER_Contrast 7 | 61 #define FDE_IMAGEFILTER_Contrast 7 |
61 typedef struct _FDE_IMAGEFILTERPARAMS : public CFX_Target { | 62 |
| 63 struct FDE_IMAGEFILTERPARAMS : public CFX_Target { |
62 int32_t iFilterType; | 64 int32_t iFilterType; |
63 } FDE_IMAGEFILTERPARAMS, *FDE_LPIMAGEFILTERPARAMS; | 65 }; |
64 typedef FDE_IMAGEFILTERPARAMS const* FDE_LPCIMAGEFILTERPARAMS; | 66 |
65 typedef struct _FDE_OPACITYPARAMS : public FDE_IMAGEFILTERPARAMS { | 67 struct FDE_OPACITYPARAMS : public FDE_IMAGEFILTERPARAMS { |
66 int32_t iOpacity; | 68 int32_t iOpacity; |
67 } FDE_OPACITYPARAMS, *FDE_LPOPACITYPARAMS; | 69 }; |
68 typedef FDE_OPACITYPARAMS const* FDE_LPCOPACITYPARAMS; | 70 |
69 typedef struct _FDE_BLACKWHITEPARAMS : public FDE_IMAGEFILTERPARAMS { | 71 struct FDE_BLACKWHITEPARAMS : public FDE_IMAGEFILTERPARAMS { |
70 FX_ARGB dwBlackColor; | 72 FX_ARGB dwBlackColor; |
71 FX_ARGB dwWhiteColor; | 73 FX_ARGB dwWhiteColor; |
72 } FDE_BLACKWHITEPARAMS, *FDE_LPBLACKWHITEPARAMS; | 74 }; |
73 typedef FDE_BLACKWHITEPARAMS const* FDE_LPCBLACKWHITEPARAMS; | 75 |
74 typedef struct _FDE_TRANSPARENTPARAMS : public FDE_IMAGEFILTERPARAMS { | 76 struct FDE_TRANSPARENTPARAMS : public FDE_IMAGEFILTERPARAMS { |
75 FX_ARGB color; | 77 FX_ARGB color; |
76 } FDE_TRANSPARENTPARAMS, *FDE_LPTRANSPARENTPARAMS; | 78 }; |
77 typedef FDE_TRANSPARENTPARAMS const* FDE_LPCTRANSPARENTPARAMS; | 79 |
78 typedef struct _FDE_MASKCOLORPARAMS : public FDE_IMAGEFILTERPARAMS { | 80 struct FDE_MASKCOLORPARAMS : public FDE_IMAGEFILTERPARAMS { |
79 FX_ARGB color; | 81 FX_ARGB color; |
80 } FDE_MASKCOLORPARAMS, *FDE_LPMASKCOLORPARAMS; | 82 }; |
81 typedef FDE_MASKCOLORPARAMS const* FDE_LPCMASKCOLORPARAMS; | 83 |
82 typedef struct _FDE_BRIGHTNESSPARAMS : public FDE_IMAGEFILTERPARAMS { | 84 struct FDE_BRIGHTNESSPARAMS : public FDE_IMAGEFILTERPARAMS { |
83 int32_t iBrightness; | 85 int32_t iBrightness; |
84 } FDE_BRIGHTNESSPARAMS, *FDE_LPBRIGHTNESSPARAMS; | 86 }; |
85 typedef FDE_BRIGHTNESSPARAMS const* FDE_LPCBRIGHTNESSPARAMS; | 87 |
86 typedef struct _FDE_CONTRASTPARAMS : public FDE_IMAGEFILTERPARAMS { | 88 struct FDE_CONTRASTPARAMS : public FDE_IMAGEFILTERPARAMS { |
87 int32_t iContrast; | 89 int32_t iContrast; |
88 } FDE_CONTRASTPARAMS, *FDE_LPCONTRASTPARAMS; | 90 }; |
89 typedef FDE_CONTRASTPARAMS const* FDE_LPCCONTRASTPARAMS; | |
90 | 91 |
91 #endif // XFA_SRC_FDP_INCLUDE_FDE_IMG_H_ | 92 #endif // XFA_SRC_FDP_INCLUDE_FDE_IMG_H_ |
OLD | NEW |