From bda113c645673fd152bb9ca3eaddd3c34920223e Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 8 May 2018 14:57:47 +0000 Subject: 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 Reviewed-by: Ryan Harrison --- core/fxcodec/fx_codec.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/fxcodec/fx_codec.h') 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_ -- cgit v1.2.3