Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
javax.imageio.plugins.jpeg

Class JPEGHuffmanTable


  • public class JPEGHuffmanTable
    extends Object
    A class encapsulating a single JPEG Huffman table. Fields are provided for the "standard" tables taken from Annex K of the JPEG specification. These are the tables used as defaults.

    For more information about the operation of the standard JPEG plug-in, see the JPEG metadata format specification and usage notes

    • Field Detail

      • StdDCLuminance

        public static final JPEGHuffmanTable StdDCLuminance
        The standard DC luminance Huffman table.
      • StdDCChrominance

        public static final JPEGHuffmanTable StdDCChrominance
        The standard DC chrominance Huffman table.
      • StdACLuminance

        public static final JPEGHuffmanTable StdACLuminance
        The standard AC luminance Huffman table.
      • StdACChrominance

        public static final JPEGHuffmanTable StdACChrominance
        The standard AC chrominance Huffman table.
    • Constructor Detail

      • JPEGHuffmanTable

        public JPEGHuffmanTable(short[] lengths,
                        short[] values)
        Creates a Huffman table and initializes it. The input arrays are copied. The arrays must describe a possible Huffman table. For example, 3 codes cannot be expressed with a single bit.
        Parameters:
        lengths - an array of shorts where lengths[k] is equal to the number of values with corresponding codes of length k + 1 bits.
        values - an array of shorts containing the values in order of increasing code length.
        Throws:
        IllegalArgumentException - if lengths or values are null, the length of lengths is greater than 16, the length of values is greater than 256, if any value in lengths or values is less than zero, or if the arrays do not describe a valid Huffman table.
    • Method Detail

      • getLengths

        public short[] getLengths()
        Returns an array of shorts containing the number of values for each length in the Huffman table. The returned array is a copy.
        Returns:
        a short array where array[k-1] is equal to the number of values in the table of length k.
        See Also:
        getValues()
      • getValues

        public short[] getValues()
        Returns an array of shorts containing the values arranged by increasing length of their corresponding codes. The interpretation of the array is dependent on the values returned from getLengths. The returned array is a copy.
        Returns:
        a short array of values.
        See Also:
        getLengths()
      • toString

        public String toString()
        Returns a String representing this Huffman table.
        Overrides:
        toString in class Object
        Returns:
        a String representing this Huffman table.

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/imageio/plugins/jpeg/jpeghuffmantable.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut