summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_jpxmodule.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-28 23:15:02 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-28 23:15:02 +0000
commitb719bc4a6f219483059f66c33e4a3a7667d75ed5 (patch)
treebb1f512fd303b46dab323e849e56d21779d32488 /core/fxcodec/codec/ccodec_jpxmodule.h
parentda379c7af512aa7baa221d38b04c8aa9912b4e02 (diff)
downloadpdfium-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_jpxmodule.h')
-rw-r--r--core/fxcodec/codec/ccodec_jpxmodule.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/fxcodec/codec/ccodec_jpxmodule.h b/core/fxcodec/codec/ccodec_jpxmodule.h
index 2a949862ca..2269ef3c62 100644
--- a/core/fxcodec/codec/ccodec_jpxmodule.h
+++ b/core/fxcodec/codec/ccodec_jpxmodule.h
@@ -11,6 +11,7 @@
#include <vector>
#include "core/fxcrt/fx_system.h"
+#include "third_party/base/span.h"
class CJPX_Decoder;
class CPDF_ColorSpace;
@@ -20,9 +21,10 @@ class CCodec_JpxModule {
CCodec_JpxModule();
~CCodec_JpxModule();
- std::unique_ptr<CJPX_Decoder> CreateDecoder(const uint8_t* src_buf,
- uint32_t src_size,
- CPDF_ColorSpace* cs);
+ std::unique_ptr<CJPX_Decoder> CreateDecoder(
+ pdfium::span<const uint8_t> src_span,
+ CPDF_ColorSpace* cs);
+
void GetImageInfo(CJPX_Decoder* pDecoder,
uint32_t* width,
uint32_t* height,