Top Fields Constructors Methods
com.sun.imageio.plugins.tiff

public Class TIFFYCbCrColorConverter

extends TIFFColorConverter
Class Inheritance
Imports
javax.imageio.plugins.tiff.BaselineTIFFTagSet, .TIFFField

Field Summary

Modifier and TypeField and Description
private static final float
private static final float
private float
private float
private float
private float
private float
private float
private float
private float
private float

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
fromRGB(float
the red value.
r
,
float
the green value.
g
,
float
the blue value.
b
,
float[]
an array of floats containing three elements.
result
)

Implements abstract com.sun.imageio.plugins.tiff.TIFFColorConverter.fromRGB.

Converts an RGB triple into the native color space of this TIFFColorConverter, and stores the result in the first three entries of the result array.

public void
toRGB(float
the value of channel 0.
x0
,
float
the value of channel 1.
x1
,
float
the value of channel 2.
x2
,
float[]
an array of floats containing three elements.
rgb
)

Implements abstract com.sun.imageio.plugins.tiff.TIFFColorConverter.toRGB.

Converts a triple in the native color space of this TIFFColorConverter into an RGB triple, and stores the result in the first three entries of the rgb array.

Field Detail

CODING_RANGE_CB_CRback to summary
private static final float CODING_RANGE_CB_CR
CODING_RANGE_Yback to summary
private static final float CODING_RANGE_Y
lumaBlueback to summary
private float lumaBlue
lumaGreenback to summary
private float lumaGreen
lumaRedback to summary
private float lumaRed
referenceBlackCbback to summary
private float referenceBlackCb
referenceBlackCrback to summary
private float referenceBlackCr
referenceBlackYback to summary
private float referenceBlackY
referenceWhiteCbback to summary
private float referenceWhiteCb
referenceWhiteCrback to summary
private float referenceWhiteCr
referenceWhiteYback to summary
private float referenceWhiteY

Constructor Detail

TIFFYCbCrColorConverterback to summary
public TIFFYCbCrColorConverter(TIFFImageMetadata metadata)

Method Detail

fromRGBback to summary
public void fromRGB(float r, float g, float b, float[] result)

Implements abstract com.sun.imageio.plugins.tiff.TIFFColorConverter.fromRGB.

Doc from com.sun.imageio.plugins.tiff.TIFFColorConverter.fromRGB.

Converts an RGB triple into the native color space of this TIFFColorConverter, and stores the result in the first three entries of the result array.

Parameters
r:float

the red value.

g:float

the green value.

b:float

the blue value.

result:float[]

an array of floats containing three elements.

toRGBback to summary
public void toRGB(float x0, float x1, float x2, float[] rgb)

Implements abstract com.sun.imageio.plugins.tiff.TIFFColorConverter.toRGB.

Doc from com.sun.imageio.plugins.tiff.TIFFColorConverter.toRGB.

Converts a triple in the native color space of this TIFFColorConverter into an RGB triple, and stores the result in the first three entries of the rgb array.

Parameters
x0:float

the value of channel 0.

x1:float

the value of channel 1.

x2:float

the value of channel 2.

rgb:float[]

an array of floats containing three elements.