summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_HtrdProc.h
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-07-20 10:32:02 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-20 14:49:10 +0000
commit2c4a805ac3d649caf34b125fdda1450c7ba8432f (patch)
treebfd6cb076dfba83ec7ff30947704c591985545da /core/fxcodec/jbig2/JBig2_HtrdProc.h
parent40870db0aadef4e145fd3b2b95fa5a083afb3161 (diff)
downloadpdfium-2c4a805ac3d649caf34b125fdda1450c7ba8432f.tar.xz
Create helper method in CJBig2_HTRDProc
This CL creates CJBig2_HTRDProc::decode_image to reduce duplicated code in the class. Change-Id: Ie348179c96ff534f95cba401c4b9bd46e1c4e6ac Reviewed-on: https://pdfium-review.googlesource.com/8410 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_HtrdProc.h')
-rw-r--r--core/fxcodec/jbig2/JBig2_HtrdProc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fxcodec/jbig2/JBig2_HtrdProc.h b/core/fxcodec/jbig2/JBig2_HtrdProc.h
index 85e9059d66..75041ac41b 100644
--- a/core/fxcodec/jbig2/JBig2_HtrdProc.h
+++ b/core/fxcodec/jbig2/JBig2_HtrdProc.h
@@ -44,6 +44,10 @@ class CJBig2_HTRDProc {
uint16_t HRY;
uint8_t HPW;
uint8_t HPH;
+
+ private:
+ std::unique_ptr<CJBig2_Image> decode_image(
+ const std::vector<std::unique_ptr<CJBig2_Image>>& GSPLANES);
};
#endif // CORE_FXCODEC_JBIG2_JBIG2_HTRDPROC_H_