| Modifier and Type | Field and Description |
|---|---|
| private ArithmeticDecoder | |
| private CX | |
| private long | |
| private long | |
| private long | |
| private long | |
| private boolean[] | |
| private short[] | gbAtX
Generic region segment AT flags, 7.4.6.3 |
| private short[] | |
| private byte | |
| private boolean | |
| private boolean | |
| private MMRDecompressor | |
| private boolean | override
If true, AT pixels are not on their nominal location and have to be overridden |
| private Bitmap | regionBitmap
Decoded data as pixel values (use row stride/width to wrap line) |
| private RegionSegmentInformation | regionInfo
Region segment information field, 7.4.1 |
| private SubInputStream | |
| private boolean | useExtTemplates
Generic region segment flags, 7.4.6.2 |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | copyLineAbove(final int
- Coordinate of the row that should be set. lineNumber)Each pixel gets the value from the corresponding pixel of the row above. |
| private void | |
| private int | |
| private void | decodeTemplate0a(final int lineNumber, final int width, final int rowStride, final int paddedWidth, int byteIndex, int idx)
|
| private void | decodeTemplate0b(final int lineNumber, final int width, final int rowStride, final int paddedWidth, int byteIndex, int idx)
|
| private void | decodeTemplate1(final int lineNumber, int width, final int rowStride, final int paddedWidth, int byteIndex, int idx)
|
| private void | decodeTemplate2(final int lineNumber, final int width, final int rowStride, final int paddedWidth, int byteIndex, int idx)
|
| private void | decodeTemplate3(final int lineNumber, final int width, final int rowStride, final int paddedWidth, int byteIndex, int idx)
|
| protected short[] | |
| protected short[] | |
| protected byte | |
| private byte | |
| public Bitmap | Returns: The decodedBitmap of this region.Implements org. The procedure is described in 6.2.5.7, page 17. |
| 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. |
| protected boolean | |
| protected boolean | |
| private int | overrideAtTemplate0a(int context, final int x, final int y, final int result, final int minorX, final int toShift)
|
| private int | overrideAtTemplate0b(int context, final int x, final int y, final int result, final int minorX, final int toShift)
|
| private int | |
| private int | |
| private int | |
| private void | |
| private void | |
| protected void | |
| private void | |
| protected void | setParameters(final boolean
the data is MMR encoded isMMREncoded, final long the offset dataOffset, final long the length of the data dataLength, final int bitmap height gbh, final int bitmap width gbw)Used by |
| protected void | setParameters(final boolean
the data is MMR encoded isMMREncoded, final byte sd template sdTemplate, final boolean is TPGDon isTPGDon, final boolean use skip useSkip, final short[] x values gbA pixels sdATX, final short[] y values gbA pixels sdATY, final int bitmap width symWidth, final int bitmap height hcHeight, final CX context for the arithmetic decoder cx, final ArithmeticDecoder the arithmetic decode to be used
Used by arithmeticDecoder)SymbolDictionary.
|
| protected void | setParameters(final boolean
the data is MMR encoded isMMREncoded, final long the offset dataOffset, final long the length of the data dataLength, final int bitmap height gbh, final int bitmap width gbw, final byte gb template gbTemplate, final boolean is TPGDon isTPGDon, final boolean use skip useSkip, final short[] x values of gbA pixels gbAtX, final short[] y values of gbA pixels gbAtY)Used by |
| private void | |
| protected boolean |
| arithDecoder | back to summary |
|---|---|
| private ArithmeticDecoder arithDecoder | |
| cx | back to summary |
|---|---|
| private CX cx | |
| dataHeaderLength | back to summary |
|---|---|
| private long dataHeaderLength | |
| dataHeaderOffset | back to summary |
|---|---|
| private long dataHeaderOffset | |
| dataLength | back to summary |
|---|---|
| private long dataLength | |
| dataOffset | back to summary |
|---|---|
| private long dataOffset | |
| gbAtOverride | back to summary |
|---|---|
| private boolean[] gbAtOverride | |
| gbAtX | back to summary |
|---|---|
| private short[] gbAtX Generic region segment AT flags, 7.4.6.3 | |
| gbAtY | back to summary |
|---|---|
| private short[] gbAtY | |
| gbTemplate | back to summary |
|---|---|
| private byte gbTemplate | |
| isMMREncoded | back to summary |
|---|---|
| private boolean isMMREncoded | |
| isTPGDon | back to summary |
|---|---|
| private boolean isTPGDon | |
| mmrDecompressor | back to summary |
|---|---|
| private MMRDecompressor mmrDecompressor | |
| override | back to summary |
|---|---|
| private boolean override If true, AT pixels are not on their nominal location and have to be overridden | |
| 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 field, 7.4.1 | |
| subInputStream | back to summary |
|---|---|
| private SubInputStream subInputStream | |
| useExtTemplates | back to summary |
|---|---|
| private boolean useExtTemplates Generic region segment flags, 7.4.6.2 | |
| GenericRegion | back to summary |
|---|---|
| public GenericRegion() | |
| GenericRegion | back to summary |
|---|---|
| public GenericRegion(final SubInputStream subInputStream) | |
| computeSegmentDataStructure | back to summary |
|---|---|
| private void computeSegmentDataStructure() throws IOException | |
| copyLineAbove | back to summary |
|---|---|
| private void copyLineAbove(final int lineNumber) Each pixel gets the value from the corresponding pixel of the row above. Line 0 cannot get copied values (source will be -1, doesn't exist).
| |
| decodeLine | back to summary |
|---|---|
| private void decodeLine(final int lineNumber, final int width, final int rowStride, final int paddedWidth) throws IOException | |
| decodeSLTP | back to summary |
|---|---|
| private int decodeSLTP() throws IOException | |
| decodeTemplate0a | back to summary |
|---|---|
| private void decodeTemplate0a(final int lineNumber, final int width, final int rowStride, final int paddedWidth, int byteIndex, int idx) throws IOException | |
| decodeTemplate0b | back to summary |
|---|---|
| private void decodeTemplate0b(final int lineNumber, final int width, final int rowStride, final int paddedWidth, int byteIndex, int idx) throws IOException | |
| decodeTemplate1 | back to summary |
|---|---|
| private void decodeTemplate1(final int lineNumber, int width, final int rowStride, final int paddedWidth, int byteIndex, int idx) throws IOException | |
| decodeTemplate2 | back to summary |
|---|---|
| private void decodeTemplate2(final int lineNumber, final int width, final int rowStride, final int paddedWidth, int byteIndex, int idx) throws IOException | |
| decodeTemplate3 | back to summary |
|---|---|
| private void decodeTemplate3(final int lineNumber, final int width, final int rowStride, final int paddedWidth, int byteIndex, int idx) throws IOException | |
| getGbAtX | back to summary |
|---|---|
| protected short[] getGbAtX() | |
| getGbAtY | back to summary |
|---|---|
| protected short[] getGbAtY() | |
| getGbTemplate | back to summary |
|---|---|
| protected byte getGbTemplate() | |
| getPixel | back to summary |
|---|---|
| private byte getPixel(final int x, final int y) throws IOException | |
| getRegionBitmap | back to summary |
|---|---|
| public Bitmap getRegionBitmap() throws IOException Implements org. The procedure is described in 6.2.5.7, page 17.
| |
| 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 InvalidHeaderValueException, IOException Implements org. Doc from org. Parse the stream and read information of header.
| |
| isMMREncoded | back to summary |
|---|---|
| protected boolean isMMREncoded() | |
| isTPGDon | back to summary |
|---|---|
| protected boolean isTPGDon() | |
| overrideAtTemplate0a | back to summary |
|---|---|
| private int overrideAtTemplate0a(int context, final int x, final int y, final int result, final int minorX, final int toShift) throws IOException | |
| overrideAtTemplate0b | back to summary |
|---|---|
| private int overrideAtTemplate0b(int context, final int x, final int y, final int result, final int minorX, final int toShift) throws IOException | |
| overrideAtTemplate1 | back to summary |
|---|---|
| private int overrideAtTemplate1(int context, final int x, final int y, final int result, final int minorX) throws IOException | |
| overrideAtTemplate2 | back to summary |
|---|---|
| private int overrideAtTemplate2(int context, final int x, final int y, final int result, final int minorX) throws IOException | |
| overrideAtTemplate3 | back to summary |
|---|---|
| private int overrideAtTemplate3(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, InvalidHeaderValueException | |
| readGbAtPixels | back to summary |
|---|---|
| private void readGbAtPixels(final int amountOfGbAt) throws IOException | |
| resetBitmap | back to summary |
|---|---|
| protected void resetBitmap() Simply sets the memory-critical bitmap of this region to | |
| setOverrideFlag | back to summary |
|---|---|
| private void setOverrideFlag(final int index) | |
| setParameters | back to summary |
|---|---|
| protected void setParameters(final boolean isMMREncoded, final long dataOffset, final long dataLength, final int gbh, final int gbw) Used by
| |
| setParameters | back to summary |
|---|---|
protected void setParameters(final boolean isMMREncoded, final byte sdTemplate, final boolean isTPGDon, final boolean useSkip, final short[] sdATX, final short[] sdATY, final int symWidth, final int hcHeight, final CX cx, final ArithmeticDecoder arithmeticDecoder)
| |
| setParameters | back to summary |
|---|---|
| protected void setParameters(final boolean isMMREncoded, final long dataOffset, final long dataLength, final int gbh, final int gbw, final byte gbTemplate, final boolean isTPGDon, final boolean useSkip, final short[] gbAtX, final short[] gbAtY) Used by
| |
| updateOverrideFlags | back to summary |
|---|---|
| private void updateOverrideFlags() | |
| useExtTemplates | back to summary |
|---|---|
| protected boolean useExtTemplates() | |