Packages

 

com.aspose.imaging.fileformats.jpeg

Class JpegLsPresetCodingParameters

  • java.lang.Object
    • com.aspose.imaging.fileformats.jpeg.JpegLsPresetCodingParameters


  • public class JpegLsPresetCodingParameters
    extends Object

    Defines the JPEG-LS preset coding parameters as defined in ISO/IEC 14495-1, C.2.4.1.1. JPEG-LS defines a default set of parameters, but custom parameters can be used. When used these parameters are written into the encoded bit stream as they are needed for the decoding process.

    • Constructor Detail

      • JpegLsPresetCodingParameters

        public JpegLsPresetCodingParameters()
    • Method Detail

      • getMaximumSampleValue

        public int getMaximumSampleValue()

        Gets or sets the maximum possible value for any image sample in a scan. This must be greater than or equal to the actual maximum value for the components in a scan.

      • setMaximumSampleValue

        public void setMaximumSampleValue(int value)

        Gets or sets the maximum possible value for any image sample in a scan. This must be greater than or equal to the actual maximum value for the components in a scan.

      • getThreshold1

        public int getThreshold1()

        Gets or sets the first quantization threshold value for the local gradients.

      • setThreshold1

        public void setThreshold1(int value)

        Gets or sets the first quantization threshold value for the local gradients.

      • getThreshold2

        public int getThreshold2()

        Gets or sets the second quantization threshold value for the local gradients.

      • setThreshold2

        public void setThreshold2(int value)

        Gets or sets the second quantization threshold value for the local gradients.

      • getThreshold3

        public int getThreshold3()

        Gets or sets the third quantization threshold value for the local gradients.

      • setThreshold3

        public void setThreshold3(int value)

        Gets or sets the third quantization threshold value for the local gradients.

      • getResetValue

        public int getResetValue()

        Gets or sets the value at which the counters A, B, and N are halved.

      • setResetValue

        public void setResetValue(int value)

        Gets or sets the value at which the counters A, B, and N are halved.

      • write

        public static void write(StreamContainer stream,
                                 JpegLsPresetCodingParameters preset)

        Writes the JPEG-LS preset parameters to the stream.

        Parameters:
        stream - The output compressed JPEG-LS stream.
        preset - The JPEG-LS preset parameters.