public static class JpegImageUtils.JpegImageParams extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addQTable(int tableIndex,
int[] table)
Adds quantization table to image data.
|
float |
approximateQuality(int[] table,
int[] stdTable)
Quality is defined in terms of the base quantization tables used by encoder.
|
float |
getApproxQualityFactor() |
float |
getChromaQualityFactor() |
float |
getLumaQualityFactor() |
JpegImageUtils.SamplingModes |
getSamplingMode() |
boolean |
isHuffmanOptimized() |
void |
setChromaIndex(int index) |
void |
setHuffmanOptimized(boolean huffmanOptimized) |
void |
setLumaIndex(int index) |
void |
setSamplingMode(int samplingMode) |
public JpegImageUtils.SamplingModes getSamplingMode()
public void setSamplingMode(int samplingMode)
public boolean isHuffmanOptimized()
public void setHuffmanOptimized(boolean huffmanOptimized)
public void setLumaIndex(int index)
public void setChromaIndex(int index)
public float approximateQuality(int[] table,
int[] stdTable)
table - quantization table specified in the jpeg header.stdTable - reference quantization table specified in jpeg standard.public void addQTable(int tableIndex,
int[] table)
tableIndex - quantization table index.table - quantization table that is used in while encoding.public float getChromaQualityFactor()
public float getLumaQualityFactor()
public float getApproxQualityFactor()
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.