diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-17 17:14:23 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-17 17:14:23 +0000 |
commit | 512509a5bb48cbd13fba80fbb5bd1a455f6d248d (patch) | |
tree | c0a96b6c9c3d767552bf3d4709ac761a10fc68d3 /core/fxcodec/jbig2/JBig2_TrdProc.h | |
parent | dc5d88bcebbeeb696b405464e901add55d1efaf7 (diff) | |
download | pdfium-512509a5bb48cbd13fba80fbb5bd1a455f6d248d.tar.xz |
Consolidate identical code in CJBig2_TRDProc.
Change-Id: Ib44a6b7bd19625a4081322d2471551bec894abd8
Reviewed-on: https://pdfium-review.googlesource.com/32638
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_TrdProc.h')
-rw-r--r-- | core/fxcodec/jbig2/JBig2_TrdProc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/fxcodec/jbig2/JBig2_TrdProc.h b/core/fxcodec/jbig2/JBig2_TrdProc.h index df0aa1585d..3db3121d3e 100644 --- a/core/fxcodec/jbig2/JBig2_TrdProc.h +++ b/core/fxcodec/jbig2/JBig2_TrdProc.h @@ -82,6 +82,17 @@ class CJBig2_TRDProc { CJBig2_HuffmanTable* SBHUFFRSIZE; bool SBRTEMPLATE; int8_t SBRAT[4]; + + private: + struct ComposeData { + int32_t x; + int32_t y; + uint32_t increment = 0; + }; + ComposeData GetComposeData(int32_t SI, + int32_t TI, + uint32_t WI, + uint32_t HI) const; }; #endif // CORE_FXCODEC_JBIG2_JBIG2_TRDPROC_H_ |