Class JPEGLosslessDecoder

java.lang.Object
com.twelvemonkeys.imageio.plugins.jpeg.JPEGLosslessDecoder

final class JPEGLosslessDecoder extends Object
  • Field Details

    • input

      private final ImageInputStream input
    • listenerDelegate

      private final JPEGImageReader listenerDelegate
    • frame

      private final Frame frame
    • huffTables

      private final List<HuffmanTable> huffTables
    • quantTable

      private final QuantizationTable quantTable
    • scan

      private Scan scan
    • HuffTab

      private final int[][][] HuffTab
    • IDCT_Source

      private final int[] IDCT_Source
    • nBlock

      private final int[] nBlock
    • acTab

      private final int[][] acTab
    • dcTab

      private final int[][] dcTab
    • qTab

      private final int[][] qTab
    • restarting

      private boolean restarting
    • marker

      private int marker
    • markerIndex

      private int markerIndex
    • numComp

      private int numComp
    • restartInterval

      private int restartInterval
    • selection

      private int selection
    • xDim

      private int xDim
    • yDim

      private int yDim
    • xLoc

      private int xLoc
    • yLoc

      private int yLoc
    • mask

      private int mask
    • outputData

      private int[][] outputData
    • IDCT_P

      private static final int[] IDCT_P
    • RESTART_MARKER_BEGIN

      private static final int RESTART_MARKER_BEGIN
      See Also:
    • RESTART_MARKER_END

      private static final int RESTART_MARKER_END
      See Also:
    • MAX_HUFFMAN_SUBTREE

      private static final int MAX_HUFFMAN_SUBTREE
      See Also:
    • MSB

      private static final int MSB
      See Also:
  • Constructor Details

  • Method Details

    • getDimX

      int getDimX()
    • getDimY

      int getDimY()
    • getAll

      private <T> List<T> getAll(List<Segment> segments, Class<T> type)
    • get

      private <T> T get(List<Segment> segments, Class<T> type)
    • decode

      int[][] decode() throws IOException
      Throws:
      IOException
    • processWarningOccured

      private void processWarningOccured(String warning)
    • useACForDC

      private boolean useACForDC(int dcTabSel)
    • isLossless

      private boolean isLossless()
    • getComponentSpec

      private Frame.Component getComponentSpec(Frame.Component[] components, int sel)
    • readScan

      private Scan readScan() throws IOException
      Throws:
      IOException
    • decode

      private int decode(int[] prev, int[] temp, int[] index) throws IOException
      Throws:
      IOException
    • decodeSingle

      private int decodeSingle(int[] prev, int[] temp, int[] index) throws IOException
      Throws:
      IOException
    • decodeRGB

      private int decodeRGB(int[] prev, int[] temp, int[] index) throws IOException
      Throws:
      IOException
    • decodeAny

      private int decodeAny(int[] prev, int[] temp, int[] index) throws IOException
      Throws:
      IOException
    • decode0

      private int decode0(int[] prev, int[] temp, int[] index) throws IOException
      Throws:
      IOException
    • getHuffmanValue

      private int getHuffmanValue(int[] table, int[] temp, int[] index) throws IOException
      Throws:
      IOException
    • getn

      private int getn(int[] pred, int n, int[] temp, int[] index) throws IOException
      Throws:
      IOException
    • getPreviousX

      private int getPreviousX(int[] data)
    • getPreviousXY

      private int getPreviousXY(int[] data)
    • getPreviousY

      private int getPreviousY(int[] data)
    • isLastPixel

      private boolean isLastPixel()
    • output

      private void output(int[] pred)
    • outputSingle

      private void outputSingle(int[] pred)
    • outputRGB

      private void outputRGB(int[] pred)
    • outputAny

      private void outputAny(int[] pred)
    • readNumber

      private int readNumber() throws IOException
      Throws:
      IOException
    • getNumComponents

      int getNumComponents()
    • getPrecision

      int getPrecision()