public class Channel extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
pLinear
Hint to lossy compression methods that indicates whether human perception
of the quantity represented by this channel is closer to linear or closer
to logarithmic.
|
PixelType |
type
Pixel data type.
|
int |
xSampling
Subsampling: pixel
(x,y) is present in the channel only if
(x % xSampling == 0 && y % ySampling == 0) . |
int |
ySampling
Subsampling: pixel
(x,y) is present in the channel only if
(x % xSampling == 0 && y % ySampling == 0) . |
public PixelType type
public boolean pLinear
For example, perception of rec, green blue and luminance is approximately logarithmic; the difference between 0.1 and 0.2 is perceived to be roughly the same as the difference between 1.0 and 2.0. Perception of chroma coordinates tends to be closer to linear than logarithmic; the difference between 0.1 and 0.2 is perceived to be roughly the same as the difference between 1.0 and 1.1.
public int xSampling
(x,y)
is present in the channel only if
(x % xSampling == 0 && y % ySampling == 0)
.ySampling
public int ySampling
(x,y)
is present in the channel only if
(x % xSampling == 0 && y % ySampling == 0)
.xSampling
public Channel()
public Channel(PixelType type)
pLinear
is set to
false
.type
- the non-null pixel type for the channelpublic Channel(Channel other)