| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private ArithmeticDecoder | |
| private CX | |
| private boolean[] | |
| private short[] | grAtX
Generic refinement region segment AT flags, 7.4.7.3 |
| private short[] | |
| private boolean | isTPGROn
Generic refinement region segment flags, 7.4.7.2 |
| private boolean | override
If true, AT pixels are not on their nominal location and have to be overridden. |
| private Bitmap | referenceBitmap
Variables for decoding |
| private int | |
| private int | |
| private Bitmap | regionBitmap
Decoded data as pixel values (use row stride/width to wrap line) |
| private RegionSegmentInformation | regionInfo
Region segment information flags, 7.4.1 |
| private SegmentHeader | |
| private SubInputStream | |
| private static final GenericRefinementRegion. | |
| private static final GenericRefinementRegion. | |
| private GenericRefinementRegion. | |
| private short |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | decodeOptimized(final int lineNumber, final int width, final int rowStride, final int refRowStride, final int paddedWidth, final int deltaRefStride, final int lineOffset)
|
| private int | |
| private void | decodeTemplate(final int lineNumber, final int width, final int rowStride, final int refRowStride, final int paddedWidth, final int deltaRefStride, final int lineOffset, int byteIndex, final int currentLine, int refByteIndex, GenericRefinementRegion.
|
| private void | decodeTypicalPredictedLine(final int lineNumber, final int width, final int rowStride, final int refRowStride, final int paddedWidth, final int deltaRefStride)
|
| private void | decodeTypicalPredictedLineTemplate0(final int lineNumber, final int width, final int rowStride, final int refRowStride, final int paddedWidth, final int deltaRefStride, int byteIndex, final int currentLine, int refByteIndex)
|
| private void | decodeTypicalPredictedLineTemplate1(final int lineNumber, final int width, final int rowStride, final int refRowStride, final int paddedWidth, final int deltaRefStride, int byteIndex, final int currentLine, int refByteIndex)
|
| private Bitmap | |
| private byte | |
| public Bitmap | getRegionBitmap()
Implements org. Decode using a template and arithmetic coding, as described in 6.3.5.6 |
| public RegionSegmentInformation | getRegionInfo()
Implements org. Simply returns the |
| public void | init(final SegmentHeader
- The segments' header (to make referred-to segments available in data part). header, final SubInputStream - Wrapped sis)ImageInputStream into SubInputStream.Implements org. Parse the stream and read information of header. |
| private int | |
| private void | parseHeader()
Parses the flags described in JBIG2 ISO standard:
|
| private void | |
| protected void | setParameters(final CX cx, final ArithmeticDecoder arithmeticDecoder, final short grTemplate, final int regionWidth, final int regionHeight, final Bitmap grReference, final int grReferenceDX, final int grReferenceDY, final boolean isTPGRon, final short[] grAtX, final short[] grAtY)
|
| private void |
| arithDecoder | back to summary |
|---|---|
| private ArithmeticDecoder arithDecoder | |
| cx | back to summary |
|---|---|
| private CX cx | |
| grAtOverride | back to summary |
|---|---|
| private boolean[] grAtOverride | |
| grAtX | back to summary |
|---|---|
| private short[] grAtX Generic refinement region segment AT flags, 7.4.7.3 | |
| grAtY | back to summary |
|---|---|
| private short[] grAtY | |
| isTPGROn | back to summary |
|---|---|
| private boolean isTPGROn Generic refinement region segment flags, 7.4.7.2 | |
| override | back to summary |
|---|---|
| private boolean override If true, AT pixels are not on their nominal location and have to be overridden. | |
| referenceBitmap | back to summary |
|---|---|
| private Bitmap referenceBitmap Variables for decoding | |
| referenceDX | back to summary |
|---|---|
| private int referenceDX | |
| referenceDY | back to summary |
|---|---|
| private int referenceDY | |
| regionBitmap | back to summary |
|---|---|
| private Bitmap regionBitmap Decoded data as pixel values (use row stride/width to wrap line) | |
| regionInfo | back to summary |
|---|---|
| private RegionSegmentInformation regionInfo Region segment information flags, 7.4.1 | |
| segmentHeader | back to summary |
|---|---|
| private SegmentHeader segmentHeader | |
| subInputStream | back to summary |
|---|---|
| private SubInputStream subInputStream | |
| T0 | back to summary |
|---|---|
| private static final GenericRefinementRegion. | |
| T1 | back to summary |
|---|---|
| private static final GenericRefinementRegion. | |
| template | back to summary |
|---|---|
| private GenericRefinementRegion. | |
| templateID | back to summary |
|---|---|
| private short templateID | |
| GenericRefinementRegion | back to summary |
|---|---|
| public GenericRefinementRegion() | |
| GenericRefinementRegion | back to summary |
|---|---|
| public GenericRefinementRegion(final SubInputStream subInputStream) | |
| GenericRefinementRegion | back to summary |
|---|---|
| public GenericRefinementRegion(final SubInputStream subInputStream, final SegmentHeader segmentHeader) | |
| decodeOptimized | back to summary |
|---|---|
| private void decodeOptimized(final int lineNumber, final int width, final int rowStride, final int refRowStride, final int paddedWidth, final int deltaRefStride, final int lineOffset) throws IOException | |
| decodeSLTP | back to summary |
|---|---|
| private int decodeSLTP() throws IOException | |
| decodeTemplate | back to summary |
|---|---|
| private void decodeTemplate(final int lineNumber, final int width, final int rowStride, final int refRowStride, final int paddedWidth, final int deltaRefStride, final int lineOffset, int byteIndex, final int currentLine, int refByteIndex, GenericRefinementRegion. | |
| decodeTypicalPredictedLine | back to summary |
|---|---|
| private void decodeTypicalPredictedLine(final int lineNumber, final int width, final int rowStride, final int refRowStride, final int paddedWidth, final int deltaRefStride) throws IOException | |
| decodeTypicalPredictedLineTemplate0 | back to summary |
|---|---|
| private void decodeTypicalPredictedLineTemplate0(final int lineNumber, final int width, final int rowStride, final int refRowStride, final int paddedWidth, final int deltaRefStride, int byteIndex, final int currentLine, int refByteIndex) throws IOException | |
| decodeTypicalPredictedLineTemplate1 | back to summary |
|---|---|
| private void decodeTypicalPredictedLineTemplate1(final int lineNumber, final int width, final int rowStride, final int refRowStride, final int paddedWidth, final int deltaRefStride, int byteIndex, final int currentLine, int refByteIndex) throws IOException | |
| getGrReference | back to summary |
|---|---|
| private Bitmap getGrReference() throws IntegerMaxValueException, InvalidHeaderValueException, IOException | |
| getPixel | back to summary |
|---|---|
| private byte getPixel(final Bitmap b, final int x, final int y) throws IOException | |
| getRegionBitmap | back to summary |
|---|---|
| public Bitmap getRegionBitmap() throws IOException, IntegerMaxValueException, InvalidHeaderValueException Implements org. Decode using a template and arithmetic coding, as described in 6.3.5.6
| |
| getRegionInfo | back to summary |
|---|---|
| public RegionSegmentInformation getRegionInfo() Implements org. Doc from org. Simply returns the
| |
| init | back to summary |
|---|---|
| public void init(final SegmentHeader header, final SubInputStream sis) throws IOException Implements org. Doc from org. Parse the stream and read information of header.
| |
| overrideAtTemplate0 | back to summary |
|---|---|
| private int overrideAtTemplate0(int context, final int x, final int y, final int result, final int minorX) throws IOException | |
| parseHeader | back to summary |
|---|---|
| private void parseHeader() throws IOException Parses the flags described in JBIG2 ISO standard:
| |
| readAtPixels | back to summary |
|---|---|
| private void readAtPixels() throws IOException | |
| setParameters | back to summary |
|---|---|
| protected void setParameters(final CX cx, final ArithmeticDecoder arithmeticDecoder, final short grTemplate, final int regionWidth, final int regionHeight, final Bitmap grReference, final int grReferenceDX, final int grReferenceDY, final boolean isTPGRon, final short[] grAtX, final short[] grAtY) | |
| updateOverride | back to summary |
|---|---|
| private void updateOverride() | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract short | |
| protected abstract void |
| Template | back to summary |
|---|---|
| public Template() | |
| form | back to summary |
|---|---|
| protected abstract short form(short c1, short c2, short c3, short c4, short c5) | |
| setIndex | back to summary |
|---|---|
| protected abstract void setIndex(CX cx) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected short | form(short c1, short c2, short c3, short c4, short c5)
Implements abstract org.
|
| protected void | setIndex(CX cx)
Implements abstract org.
|
| Template0 | back to summary |
|---|---|
| private Template0() | |
| form | back to summary |
|---|---|
| protected short form(short c1, short c2, short c3, short c4, short c5) Implements abstract org.
| |
| setIndex | back to summary |
|---|---|
| protected void setIndex(CX cx) Implements abstract org.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected short | form(short c1, short c2, short c3, short c4, short c5)
Implements abstract org.
|
| protected void | setIndex(CX cx)
Implements abstract org.
|
| Template1 | back to summary |
|---|---|
| private Template1() | |
| form | back to summary |
|---|---|
| protected short form(short c1, short c2, short c3, short c4, short c5) Implements abstract org.
| |
| setIndex | back to summary |
|---|---|
| protected void setIndex(CX cx) Implements abstract org.
| |