summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_HuffmanTable.h
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2018-05-16 22:28:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-16 22:28:22 +0000
commit1c0da4bf0f4235b50dade1c1d37fbd1f4421722d (patch)
tree91f5f0e3765bfadd3e92eed0ab96bdfe067439e4 /core/fxcodec/jbig2/JBig2_HuffmanTable.h
parent98ec53359b8e61e717440f280d3fcc101fe140bb (diff)
downloadpdfium-1c0da4bf0f4235b50dade1c1d37fbd1f4421722d.tar.xz
Move JBig2 HuffmanTables into JBig2_HuffmanTable.cpp
This CL changes the table information so it can be indexed, and allows moving all of the information to the CJBig2_HuffmanTable implementation, which is the only real user of the data. Change-Id: I88780bee32c8509198518fd3b1e82d68ae7ff707 Reviewed-on: https://pdfium-review.googlesource.com/32635 Commit-Queue: Nicolás Peña Moreno <npm@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_HuffmanTable.h')
-rw-r--r--core/fxcodec/jbig2/JBig2_HuffmanTable.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/fxcodec/jbig2/JBig2_HuffmanTable.h b/core/fxcodec/jbig2/JBig2_HuffmanTable.h
index 1f4cec0ad9..86d925c3d4 100644
--- a/core/fxcodec/jbig2/JBig2_HuffmanTable.h
+++ b/core/fxcodec/jbig2/JBig2_HuffmanTable.h
@@ -13,13 +13,10 @@
#include "core/fxcrt/fx_system.h"
class CJBig2_BitStream;
-struct JBig2TableLine;
class CJBig2_HuffmanTable {
public:
- CJBig2_HuffmanTable(const JBig2TableLine* pTable,
- uint32_t nLines,
- bool bHTOOB);
+ explicit CJBig2_HuffmanTable(size_t idx);
explicit CJBig2_HuffmanTable(CJBig2_BitStream* pStream);
~CJBig2_HuffmanTable();
@@ -31,7 +28,7 @@ class CJBig2_HuffmanTable {
bool IsOK() const { return m_bOK; }
private:
- bool ParseFromStandardTable(const JBig2TableLine* pTable);
+ bool ParseFromStandardTable(size_t table_idx);
bool ParseFromCodedBuffer(CJBig2_BitStream* pStream);
void ExtendBuffers(bool increment);