Class TIFFYCbCrColorConverter
- java.lang.Object
-
- com.github.jaiimageio.plugins.tiff.TIFFColorConverter
-
- com.github.jaiimageio.impl.plugins.tiff.TIFFYCbCrColorConverter
-
public class TIFFYCbCrColorConverter extends TIFFColorConverter
-
-
Field Summary
Fields Modifier and Type Field Description private float
codingRangeCbCr
private float
codingRangeY
private float
LumaBlue
private float
LumaGreen
private float
LumaRed
private float
referenceBlackCb
private float
referenceBlackCr
private float
referenceBlackY
private float
referenceWhiteCb
private float
referenceWhiteCr
private float
referenceWhiteY
-
Constructor Summary
Constructors Constructor Description TIFFYCbCrColorConverter(TIFFImageMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fromRGB(float r, float g, float b, float[] result)
Converts an RGB triple into the native color space of this TIFFColorConverter, and stores the result in the first three entries of theresult
array.void
toRGB(float x0, float x1, float x2, float[] rgb)
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 thergb
array.
-
-
-
Field Detail
-
LumaRed
private float LumaRed
-
LumaGreen
private float LumaGreen
-
LumaBlue
private float LumaBlue
-
referenceBlackY
private float referenceBlackY
-
referenceWhiteY
private float referenceWhiteY
-
referenceBlackCb
private float referenceBlackCb
-
referenceWhiteCb
private float referenceWhiteCb
-
referenceBlackCr
private float referenceBlackCr
-
referenceWhiteCr
private float referenceWhiteCr
-
codingRangeY
private float codingRangeY
-
codingRangeCbCr
private float codingRangeCbCr
-
-
Constructor Detail
-
TIFFYCbCrColorConverter
public TIFFYCbCrColorConverter(TIFFImageMetadata metadata)
-
-
Method Detail
-
fromRGB
public void fromRGB(float r, float g, float b, float[] result)
Description copied from class:TIFFColorConverter
Converts an RGB triple into the native color space of this TIFFColorConverter, and stores the result in the first three entries of theresult
array.- Specified by:
fromRGB
in classTIFFColorConverter
- Parameters:
r
- the red value.g
- the green value.b
- the blue value.result
- an array offloat
s containing three elements.
-
toRGB
public void toRGB(float x0, float x1, float x2, float[] rgb)
Description copied from class:TIFFColorConverter
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 thergb
array.- Specified by:
toRGB
in classTIFFColorConverter
- Parameters:
x0
- the value of channel 0.x1
- the value of channel 1.x2
- the value of channel 2.rgb
- an array offloat
s containing three elements.
-
-