diff options
author | Nicolas Pena <npm@chromium.org> | 2017-04-04 17:47:50 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-04 22:20:42 +0000 |
commit | 236ce3ba2f274307db9ed49c595e242cd811716c (patch) | |
tree | c155d54f3f917a5ae28047776f8109cd688bf249 /core/fxge/fx_dib.h | |
parent | afd0d1f488ea55da545b3310fd8f22e45522a695 (diff) | |
download | pdfium-236ce3ba2f274307db9ed49c595e242cd811716c.tar.xz |
Remove dib_int.h
This CL removes dib_int.h by moving CStretchEngine to its own file, other
classes to where they are used, and the remaining to fx_dib.h.
Change-Id: Ie2d4bb39389737cd631f92b88000ea942608da21
Reviewed-on: https://pdfium-review.googlesource.com/3714
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fxge/fx_dib.h')
-rw-r--r-- | core/fxge/fx_dib.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/core/fxge/fx_dib.h b/core/fxge/fx_dib.h index cd6a0e6007..17c7c8fd0a 100644 --- a/core/fxge/fx_dib.h +++ b/core/fxge/fx_dib.h @@ -7,7 +7,7 @@ #ifndef CORE_FXGE_FX_DIB_H_ #define CORE_FXGE_FX_DIB_H_ -#include "core/fxcrt/fx_system.h" +#include "core/fxcrt/fx_coordinates.h" enum FXDIB_Format { FXDIB_Invalid = 0, @@ -27,6 +27,12 @@ enum FXDIB_Format { FXDIB_Cmyka = 0x620, }; +struct PixelWeight { + int m_SrcStart; + int m_SrcEnd; + int m_Weights[1]; +}; + typedef uint32_t FX_ARGB; typedef uint32_t FX_COLORREF; typedef uint32_t FX_CMYK; @@ -34,6 +40,8 @@ class CFX_ClipRgn; class CFX_DIBSource; class CStretchEngine; +extern const int16_t SDP_Table[513]; + #define FXDIB_DOWNSAMPLE 0x04 #define FXDIB_INTERPOL 0x20 #define FXDIB_BICUBIC_INTERPOL 0x80 @@ -113,4 +121,10 @@ FX_ARGB ArgbEncode(int a, FX_COLORREF rgb); #define FXGETFLAG_COLORTYPE(flag) (uint8_t)((flag) >> 8) #define FXGETFLAG_ALPHA_FILL(flag) (uint8_t)(flag) +FX_RECT FXDIB_SwapClipBox(FX_RECT& clip, + int width, + int height, + bool bFlipX, + bool bFlipY); + #endif // CORE_FXGE_FX_DIB_H_ |