Package com.twelvemonkeys.imageio.color
Class YCbCrConverter
- java.lang.Object
-
- com.twelvemonkeys.imageio.color.YCbCrConverter
-
public final class YCbCrConverter extends java.lang.Object
Fast YCbCr to RGB conversion.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
YCbCrConverter.ITU_R_601
private static class
YCbCrConverter.JPEG
-
Field Summary
Fields Modifier and Type Field Description private static int
CENTERJSAMPLE
private static int
MAXJSAMPLE
private static int
ONE_HALF
private static int
SCALEBITS
Define 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 byte
clamp(int val)
static void
convertJPEGYCbCr2RGB(byte[] yCbCr, byte[] rgb, int offset)
static void
convertRec601YCbCr2RGB(byte[] yCbCr, byte[] rgb, int offset)
static void
convertYCbCr2RGB(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)
-
-