public class ColorSpace
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
matrix
The indices are equal to the values specified in T-REC H.273 Table 4.
|
private int |
primaries
The indices are equal to the values specified in T-REC H.273 Table 2.
|
private int |
range
The indices are equal to the values specified at
https://www.webmproject.org/docs/container/#colour for the element Range.
|
private int |
transfer
The indices are equal to the values specified in T-REC H.273 Table 3.
|
| Constructor and Description |
|---|
ColorSpace()
Default constructor for ColorSpace.
|
ColorSpace(int primaries,
int transfer,
int matrix,
int range)
Constructs ColorSpace with all parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMatrix()
Gets the matrix coefficients index.
|
int |
getPrimaries()
Gets the color primaries index.
|
int |
getRange()
Gets the color range index.
|
int |
getTransfer()
Gets the transfer characteristics index.
|
void |
setMatrix(int matrix)
Sets the matrix coefficients index.
|
void |
setPrimaries(int primaries)
Sets the color primaries index.
|
void |
setRange(int range)
Sets the color range index.
|
void |
setTransfer(int transfer)
Sets the transfer characteristics index.
|
java.lang.String |
toString() |
private int primaries
private int transfer
private int matrix
private int range
public ColorSpace()
public ColorSpace(int primaries,
int transfer,
int matrix,
int range)
primaries - Color primaries indextransfer - Transfer characteristics indexmatrix - Matrix coefficients indexrange - Color range indexpublic int getPrimaries()
public void setPrimaries(int primaries)
primaries - Color primaries indexpublic int getTransfer()
public void setTransfer(int transfer)
transfer - Transfer characteristics indexpublic int getMatrix()
public void setMatrix(int matrix)
matrix - Matrix coefficients indexpublic int getRange()
public void setRange(int range)
range - Color range indexpublic java.lang.String toString()
toString in class java.lang.Object