|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlockQuantizer
Quantization of block discrete data.
Field Summary |
---|
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Method Summary | |
---|---|
int |
dequantize(int[] quant,
double[] coef)
Dequantization = reconstruction (floating-point form). |
int |
dequantize(int[] quant,
int[] coef)
Dequantization = reconstruction (integer form). |
int |
quantize(double[] coef,
int[] quant)
Quantization (floating-point form). |
int |
quantize(int[] coef,
int[] quant)
Quantization (integer form). |
void |
setBlockSize(int width,
int height)
Sets actual block size. |
void |
setData(int[] qtable)
Sets quantization table for the current variant. |
void |
setQuality(float quality)
Sets actual quality coefficient. |
int |
setVariant(int variant)
Set actual quantizer variant (context). |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Methods inherited from interface cz.cuni.jagrlib.iface.PersistentParamsBinary |
---|
loadData, storeData |
Method Detail |
---|
int setVariant(int variant)
variant
- Variant number (from 0).
setBlockSize(int, int)
,
setQuality(float)
,
setData(int[])
void setBlockSize(int width, int height)
width
- Horizontal block size (1D block size).height
- Vertical block size (1 for 1D).setVariant(int)
,
setQuality(float)
,
setData(int[])
void setQuality(float quality)
quality
- New quality coefficient.setVariant(int)
,
setBlockSize(int, int)
,
setData(int[])
void setData(int[] qtable)
qtable
- New quantization table.
Should have the correct size and layout (scanline top-first, left-first).setVariant(int)
,
setQuality(float)
,
setBlockSize(int, int)
int quantize(double[] coef, int[] quant)
coef
- Source data (coefficients). Size = array size.
Should have the correct size and layout (scanline top-first, left-first).quant
- Pre-allocated result array or null if
it's size needs to be determined.
quantize(int[],int[])
,
dequantize(int[],double[])
int quantize(int[] coef, int[] quant)
coef
- Source data (coefficients). Size = array size.
Should have the correct size and layout (scanline top-first, left-first).quant
- Pre-allocated result array or null if
it's size needs to be determined.
quantize(double[],int[])
,
dequantize(int[],int[])
int dequantize(int[] quant, double[] coef)
quant
- Source data (quantized coefficients). Size = array size.
Should have the correct size and layout (scanline top-first, left-first).coef
- Pre-allocated coefficient array or null if
it's size needs to be determined.
dequantize(int[],int[])
,
quantize(double[],int[])
int dequantize(int[] quant, int[] coef)
quant
- Source data (quantized coefficients). Size = array size.
Should have the correct size and layout (scanline top-first, left-first).coef
- Pre-allocated coefficient array or null if
it's size needs to be determined.
dequantize(int[],double[])
,
quantize(int[],int[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |