JpegLsPresetCodingParameters
Inheritance: java.lang.Object
public class JpegLsPresetCodingParameters
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.
Constructors
Constructor | Description |
---|---|
JpegLsPresetCodingParameters() |
Methods
Method | Description |
---|---|
getMaximumSampleValue() | Gets or sets the maximum possible value for any image sample in a scan. |
setMaximumSampleValue(int value) | Gets or sets the maximum possible value for any image sample in a scan. |
getThreshold1() | Gets or sets the first quantization threshold value for the local gradients. |
setThreshold1(int value) | Gets or sets the first quantization threshold value for the local gradients. |
getThreshold2() | Gets or sets the second quantization threshold value for the local gradients. |
setThreshold2(int value) | Gets or sets the second quantization threshold value for the local gradients. |
getThreshold3() | Gets or sets the third quantization threshold value for the local gradients. |
setThreshold3(int value) | Gets or sets the third quantization threshold value for the local gradients. |
getResetValue() | Gets or sets the value at which the counters A, B, and N are halved. |
setResetValue(int value) | Gets or sets the value at which the counters A, B, and N are halved. |
JpegLsPresetCodingParameters()
public JpegLsPresetCodingParameters()
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.
Returns: int
setMaximumSampleValue(int value)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getThreshold1()
public int getThreshold1()
Gets or sets the first quantization threshold value for the local gradients.
Returns: int
setThreshold1(int value)
public void setThreshold1(int value)
Gets or sets the first quantization threshold value for the local gradients.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getThreshold2()
public int getThreshold2()
Gets or sets the second quantization threshold value for the local gradients.
Returns: int
setThreshold2(int value)
public void setThreshold2(int value)
Gets or sets the second quantization threshold value for the local gradients.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getThreshold3()
public int getThreshold3()
Gets or sets the third quantization threshold value for the local gradients.
Returns: int
setThreshold3(int value)
public void setThreshold3(int value)
Gets or sets the third quantization threshold value for the local gradients.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getResetValue()
public int getResetValue()
Gets or sets the value at which the counters A, B, and N are halved.
Returns: int
setResetValue(int value)
public void setResetValue(int value)
Gets or sets the value at which the counters A, B, and N are halved.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |