public final class ColorSpace extends Object
Modifier and Type | Field and Description |
---|---|
static ColorSpace |
ANY
Any color space, used in the cases where any color space will do.
|
static ColorSpace |
ANY_INTERLEAVED
Any interleaved color space, used in the cases where any interleaved color space will do.
|
static ColorSpace |
ANY_PLANAR
Any planar color space, used in the cases where any planar color space will do.
|
static ColorSpace |
BGR |
int |
bitsPerPixel |
int[] |
compHeight |
int[] |
compPlane |
int[] |
compWidth |
static ColorSpace |
GREY |
static int |
MAX_PLANES |
static ColorSpace |
MONO |
int |
nComp |
boolean |
planar |
static ColorSpace |
RGB |
static ColorSpace |
SAME
Same color, used in filters to declare that the color stays unchanged.
|
static ColorSpace |
YUV420 |
static ColorSpace |
YUV420J |
static ColorSpace |
YUV422 |
static ColorSpace |
YUV422_10 |
static ColorSpace |
YUV422J |
static ColorSpace |
YUV444 |
static ColorSpace |
YUV444_10 |
static ColorSpace |
YUV444J |
Modifier and Type | Method and Description |
---|---|
Size |
compSize(Size size,
int comp)
Calculates the component size based on the fullt size and color subsampling of the given component index.
|
int |
getHeightMask() |
int |
getWidthMask() |
boolean |
matches(ColorSpace inputColor)
Determines if two colors match.
|
String |
toString() |
public static final int MAX_PLANES
public int nComp
public int[] compPlane
public int[] compWidth
public int[] compHeight
public boolean planar
public int bitsPerPixel
public static final ColorSpace BGR
public static final ColorSpace RGB
public static final ColorSpace YUV420
public static final ColorSpace YUV420J
public static final ColorSpace YUV422
public static final ColorSpace YUV422J
public static final ColorSpace YUV444
public static final ColorSpace YUV444J
public static final ColorSpace YUV422_10
public static final ColorSpace GREY
public static final ColorSpace MONO
public static final ColorSpace YUV444_10
public static final ColorSpace ANY
public static final ColorSpace ANY_PLANAR
public static final ColorSpace ANY_INTERLEAVED
public static final ColorSpace SAME
public int getWidthMask()
public int getHeightMask()
public boolean matches(ColorSpace inputColor)
inputColor
- Copyright © 2019. All rights reserved.