From 959279182e2ef325aa2a2a8a45ec4143916ef17c Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 24 Aug 2017 00:54:01 -0700 Subject: Add helper methods in CJBig2_GRRDProc. Refactor identical code used in decode_Template0_unopt() into their own methods. Change-Id: I37348a280ecc66d91fdcd3c9aabe49d2a8065417 Reviewed-on: https://pdfium-review.googlesource.com/11950 Reviewed-by: Ryan Harrison Commit-Queue: Lei Zhang --- core/fxcodec/jbig2/JBig2_Image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxcodec/jbig2/JBig2_Image.h') diff --git a/core/fxcodec/jbig2/JBig2_Image.h b/core/fxcodec/jbig2/JBig2_Image.h index 807468aa0b..1f418fb7e2 100644 --- a/core/fxcodec/jbig2/JBig2_Image.h +++ b/core/fxcodec/jbig2/JBig2_Image.h @@ -32,7 +32,7 @@ class CJBig2_Image { int32_t height() const { return m_nHeight; } int32_t stride() const { return m_nStride; } - int getPixel(int32_t x, int32_t y); + int getPixel(int32_t x, int32_t y) const; int32_t setPixel(int32_t x, int32_t y, int bVal); void copyLine(int32_t hTo, int32_t hFrom); -- cgit v1.2.3