diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-28 23:15:02 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-28 23:15:02 +0000 |
commit | b719bc4a6f219483059f66c33e4a3a7667d75ed5 (patch) | |
tree | bb1f512fd303b46dab323e849e56d21779d32488 /core/fxcodec/codec/ccodec_flatemodule.h | |
parent | da379c7af512aa7baa221d38b04c8aa9912b4e02 (diff) | |
download | pdfium-b719bc4a6f219483059f66c33e4a3a7667d75ed5.tar.xz |
Use pdfium::span<> in more image modules
Change-Id: Ie344bb37abf7dde158d03cc2897dca3588f1a5e3
Reviewed-on: https://pdfium-review.googlesource.com/41550
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_flatemodule.h')
-rw-r--r-- | core/fxcodec/codec/ccodec_flatemodule.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/core/fxcodec/codec/ccodec_flatemodule.h b/core/fxcodec/codec/ccodec_flatemodule.h index c84be7cc87..dab34be8a0 100644 --- a/core/fxcodec/codec/ccodec_flatemodule.h +++ b/core/fxcodec/codec/ccodec_flatemodule.h @@ -10,21 +10,23 @@ #include <memory> #include "core/fxcrt/fx_system.h" +#include "third_party/base/span.h" class CCodec_ScanlineDecoder; class CCodec_FlateModule { public: - std::unique_ptr<CCodec_ScanlineDecoder> CreateDecoder(const uint8_t* src_buf, - uint32_t src_size, - int width, - int height, - int nComps, - int bpc, - int predictor, - int Colors, - int BitsPerComponent, - int Columns); + std::unique_ptr<CCodec_ScanlineDecoder> CreateDecoder( + pdfium::span<const uint8_t> src_buf, + int width, + int height, + int nComps, + int bpc, + int predictor, + int Colors, + int BitsPerComponent, + int Columns); + uint32_t FlateOrLZWDecode(bool bLZW, const uint8_t* src_buf, uint32_t src_size, |