Package com.twelvemonkeys.imageio.color
Class YCbCrConverter
- java.lang.Object
-
- com.twelvemonkeys.imageio.color.YCbCrConverter
-
public final class YCbCrConverter extends java.lang.ObjectFast YCbCr to RGB conversion.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classYCbCrConverter.ITU_R_601private static classYCbCrConverter.JPEG
-
Field Summary
Fields Modifier and Type Field Description private static intCENTERJSAMPLEprivate static intMAXJSAMPLEprivate static intONE_HALFprivate static intSCALEBITSDefine tables for YCC->RGB color space conversion.
-
Constructor Summary
Constructors Constructor Description YCbCrConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static byteclamp(int val)static voidconvertJPEGYCbCr2RGB(byte[] yCbCr, byte[] rgb, int offset)static voidconvertRec601YCbCr2RGB(byte[] yCbCr, byte[] rgb, int offset)static voidconvertYCbCr2RGB(byte[] yCbCr, byte[] rgb, double[] coefficients, double[] referenceBW, int offset)
-
-
-
Field Detail
-
SCALEBITS
private static final int SCALEBITS
Define tables for YCC->RGB color space conversion.- See Also:
- Constant Field Values
-
MAXJSAMPLE
private static final int MAXJSAMPLE
- See Also:
- Constant Field Values
-
CENTERJSAMPLE
private static final int CENTERJSAMPLE
- See Also:
- Constant Field Values
-
ONE_HALF
private static final int ONE_HALF
- See Also:
- Constant Field Values
-
-
Method Detail
-
convertYCbCr2RGB
public static void convertYCbCr2RGB(byte[] yCbCr, byte[] rgb, double[] coefficients, double[] referenceBW, int offset)
-
convertJPEGYCbCr2RGB
public static void convertJPEGYCbCr2RGB(byte[] yCbCr, byte[] rgb, int offset)
-
convertRec601YCbCr2RGB
public static void convertRec601YCbCr2RGB(byte[] yCbCr, byte[] rgb, int offset)
-
clamp
private static byte clamp(int val)
-
-