The WiML Symposium 2023 returns December 7! Join the livestream at 9:30 AM PST
Register
ColorSpaceType
Stay organized with collections
Save and categorize content based on your preferences.
Represents the type of color space of an image.
Inherited Methods
From class
java.lang.Enum
final
int
|
|
int
|
|
final
boolean
|
|
final
Class<ColorSpaceType>
|
getDeclaringClass()
|
final
int
|
hashCode()
|
final
String
|
name()
|
final
int
|
ordinal()
|
String
|
toString()
|
static
<T extends Enum<T>>
T
|
|
From class
java.lang.Object
boolean
|
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
From interface
java.lang.Comparable
Enum Values
public
static
final
ColorSpaceType
GRAYSCALE
Each pixel is a single element representing only the amount of light.
public
static
final
ColorSpaceType
NV12
YUV420sp format, encoded as "YYYYYYYY UVUV".
public
static
final
ColorSpaceType
NV21
YUV420sp format, encoded as "YYYYYYYY VUVU", the standard picture format on Android Camera1
preview.
public
static
final
ColorSpaceType
RGB
Each pixel has red, green, and blue color components.
public
static
final
ColorSpaceType
YUV_420_888
YUV420 format corresponding to ImageFormat.YUV_420_888
. The actual
encoding format (i.e. NV12 / Nv21 / YV12 / YV21) depends on the implementation of the image.
Use this format only when you load an Image
.
public
static
final
ColorSpaceType
YV12
YUV420p format, encoded as "YYYYYYYY VV UU".
public
static
final
ColorSpaceType
YV21
YUV420p format, encoded as "YYYYYYYY UU VV".
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-09-24 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]