in src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java [471:520]
private void setCodingStatistics() throws IOException
{
if (cxIADT == null)
{
cxIADT = new CX(512, 1);
}
if (cxIADH == null)
{
cxIADH = new CX(512, 1);
}
if (cxIADW == null)
{
cxIADW = new CX(512, 1);
}
if (cxIAAI == null)
{
cxIAAI = new CX(512, 1);
}
if (cxIAEX == null)
{
cxIAEX = new CX(512, 1);
}
if (useRefinementAggregation && cxIAID == null)
{
cxIAID = new CX(1 << sbSymCodeLen, 1);
cxIARDX = new CX(512, 1);
cxIARDY = new CX(512, 1);
}
if (cx == null)
{
cx = new CX(65536, 1);
}
if (arithmeticDecoder == null)
{
arithmeticDecoder = new ArithmeticDecoder(subInputStream);
}
if (iDecoder == null)
{
iDecoder = new ArithmeticIntegerDecoder(arithmeticDecoder);
}
}