Class HuffmanTable

java.lang.Object
com.twelvemonkeys.imageio.plugins.jpeg.Segment
com.twelvemonkeys.imageio.plugins.jpeg.HuffmanTable

final class HuffmanTable extends Segment
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final short[][][]
     
    private static final int
     
    private final boolean[][]
     
    private final short[][][][]
     

    Fields inherited from class com.twelvemonkeys.imageio.plugins.jpeg.Segment

    marker
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    buildHuffTable(int[] tab, short[] L, short[][] V)
     
    (package private) void
    buildHuffTables(int[][][] huffTab)
     
    boolean
    isPresent(int tableId, int tableClass)
     
    private short[]
    lengths(int tableId, int tableClass)
     
    static Segment
    read(DataInput data, int length)
     
    private short[]
    tables(int tableId, int tableClass)
     
    (package private) JPEGHuffmanTable
    toNativeTable(int tableId, int tableClass)
     
     

    Methods inherited from class com.twelvemonkeys.imageio.plugins.jpeg.Segment

    read

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • l

      private final short[][][] l
    • v

      private final short[][][][] v
    • tc

      private final boolean[][] tc
    • MSB

      private static final int MSB
      See Also:
  • Constructor Details

    • HuffmanTable

      private HuffmanTable()
  • Method Details

    • buildHuffTables

      void buildHuffTables(int[][][] huffTab) throws IOException
      Throws:
      IOException
    • buildHuffTable

      private void buildHuffTable(int[] tab, short[] L, short[][] V) throws IOException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • read

      public static Segment read(DataInput data, int length) throws IOException
      Throws:
      IOException
    • isPresent

      public boolean isPresent(int tableId, int tableClass)
    • lengths

      private short[] lengths(int tableId, int tableClass)
    • tables

      private short[] tables(int tableId, int tableClass)
    • toNativeTable

      JPEGHuffmanTable toNativeTable(int tableId, int tableClass)