|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfi.helsinki.cs.ohtu.mpeg2.video.YCbCrToRGBConverter
public class YCbCrToRGBConverter
A converter from YCbCr to RGB.
| Field Summary | |
|---|---|
private double[] |
coefficients
|
static double[] |
ITU_R_BT_470_2_COEFFICIENTS
If sequence header matrix coefficients value == 5. |
static double[] |
ITU_R_BT_709_COEFFICIENTS
If sequence header matrix coefficients value == 1. |
| Constructor Summary | |
|---|---|
YCbCrToRGBConverter()
Initializes with default coefficients. |
|
YCbCrToRGBConverter(double[] c)
Initializes with given coefficients. |
|
| Method Summary | |
|---|---|
int[] |
convert(int y,
int cb,
int cr)
Converts from yCbCr to RGB. |
void |
setCoefficients(double[] coefficients)
Sets coefficients. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double[] ITU_R_BT_709_COEFFICIENTS
public static final double[] ITU_R_BT_470_2_COEFFICIENTS
private double[] coefficients
| Constructor Detail |
|---|
public YCbCrToRGBConverter()
public YCbCrToRGBConverter(double[] c)
c - coefficient table to use for conversion.| Method Detail |
|---|
public void setCoefficients(double[] coefficients)
coefficients - array containing the matrix coefficients used in conversion.
public int[] convert(int y,
int cb,
int cr)
YCbCrToRGBConverter object.
y - luminancecb - blue chrominancecr - red chrominance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||