summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_GrrdProc.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-08-24 00:54:01 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-08-28 18:38:03 +0000
commit959279182e2ef325aa2a2a8a45ec4143916ef17c (patch)
tree5c4663daae286060c554e1f5f5c1f0af3e2dab83 /core/fxcodec/jbig2/JBig2_GrrdProc.h
parent91f443f4f3b9682959435a5417b48975729b9338 (diff)
downloadpdfium-959279182e2ef325aa2a2a8a45ec4143916ef17c.tar.xz
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 <rharrison@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_GrrdProc.h')
-rw-r--r--core/fxcodec/jbig2/JBig2_GrrdProc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/fxcodec/jbig2/JBig2_GrrdProc.h b/core/fxcodec/jbig2/JBig2_GrrdProc.h
index 43f535335d..a9a14398fe 100644
--- a/core/fxcodec/jbig2/JBig2_GrrdProc.h
+++ b/core/fxcodec/jbig2/JBig2_GrrdProc.h
@@ -33,6 +33,15 @@ class CJBig2_GRRDProc {
std::unique_ptr<CJBig2_Image> decode_Template0_unopt(
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* grContext);
+ uint32_t decode_Template0_unopt_CalculateContext(const CJBig2_Image& GRREG,
+ const uint32_t* lines,
+ uint32_t w,
+ uint32_t h) const;
+ void decode_Template0_unopt_SetPixel(CJBig2_Image* GRREG,
+ uint32_t* lines,
+ uint32_t w,
+ uint32_t h,
+ int bVal);
std::unique_ptr<CJBig2_Image> decode_Template0_opt(
CJBig2_ArithDecoder* pArithDecoder,