ColorSpaceType

public enum ColorSpaceType

Represents the type of color space of an image.

Inherited Methods

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".