diff options
author | Nicolas Pena <npm@chromium.org> | 2017-07-14 13:24:12 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-17 14:59:48 +0000 |
commit | 18531230381465592e1a037e6dfc39d4a6fb5def (patch) | |
tree | 34403ecdb01f38df91cab9fc3071c8878b561179 /core/fxcodec/jbig2/JBig2_TrdProc.h | |
parent | f768baf129fcafc4342193477e0c41c082ef5ca5 (diff) | |
download | pdfium-18531230381465592e1a037e6dfc39d4a6fb5def.tar.xz |
Simplify CJBig2_Context::huffman_assign_code
This CL removes duplicate huffman_assign_code()s and changes some
return values and members to std::vector.
Change-Id: I47a1e0e2e88ff54ec799c97e92ec9ff5ca87c6c7
Reviewed-on: https://pdfium-review.googlesource.com/7910
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_TrdProc.h')
-rw-r--r-- | core/fxcodec/jbig2/JBig2_TrdProc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/fxcodec/jbig2/JBig2_TrdProc.h b/core/fxcodec/jbig2/JBig2_TrdProc.h index db35a8870a..a66415b0bd 100644 --- a/core/fxcodec/jbig2/JBig2_TrdProc.h +++ b/core/fxcodec/jbig2/JBig2_TrdProc.h @@ -8,6 +8,7 @@ #define CORE_FXCODEC_JBIG2_JBIG2_TRDPROC_H_ #include <memory> +#include <vector> #include "core/fxcodec/jbig2/JBig2_Image.h" #include "core/fxcrt/fx_system.h" @@ -42,6 +43,9 @@ enum JBig2Corner { class CJBig2_TRDProc { public: + CJBig2_TRDProc(); + ~CJBig2_TRDProc(); + std::unique_ptr<CJBig2_Image> decode_Huffman(CJBig2_BitStream* pStream, JBig2ArithCtx* grContext); @@ -57,7 +61,7 @@ class CJBig2_TRDProc { uint32_t SBSTRIPS; uint32_t SBNUMSYMS; - JBig2HuffmanCode* SBSYMCODES; + std::vector<JBig2HuffmanCode> SBSYMCODES; uint8_t SBSYMCODELEN; CJBig2_Image** SBSYMS; |