diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-08 14:57:47 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-08 14:57:47 +0000 |
commit | bda113c645673fd152bb9ca3eaddd3c34920223e (patch) | |
tree | 88fecf69cce06392814627b5ac41c5b308de1b2b /core/fxcodec/fx_codec.h | |
parent | 967aa0793c0b0cf2722ec8720e9d797266a9fde7 (diff) | |
download | pdfium-bda113c645673fd152bb9ca3eaddd3c34920223e.tar.xz |
Move CalculatePitch8() to core/fxcodec.
Use it in more places there.
Change-Id: I477670a5946ec9033ad5f2bef0fbcddb52682066
Reviewed-on: https://pdfium-review.googlesource.com/31271
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/fx_codec.h')
-rw-r--r-- | core/fxcodec/fx_codec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fxcodec/fx_codec.h b/core/fxcodec/fx_codec.h index e64d95f45f..5ed29d4da5 100644 --- a/core/fxcodec/fx_codec.h +++ b/core/fxcodec/fx_codec.h @@ -15,6 +15,7 @@ #include "core/fxcodec/fx_codec_def.h" #include "core/fxcrt/fx_coordinates.h" +#include "core/fxcrt/fx_safe_types.h" #include "core/fxcrt/fx_string.h" class CCodec_BasicModule; @@ -115,4 +116,7 @@ void FaxG4Decode(const uint8_t* src_buf, int height, int pitch); +FX_SAFE_UINT32 CalculatePitch8(uint32_t bpc, uint32_t components, int width); +FX_SAFE_UINT32 CalculatePitch32(int bpp, int width); + #endif // CORE_FXCODEC_FX_CODEC_H_ |