Package com.jogamp.opengl.util.av
Enum VideoPixelFormat
- java.lang.Object
-
- java.lang.Enum<VideoPixelFormat>
-
- com.jogamp.opengl.util.av.VideoPixelFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<VideoPixelFormat>
public enum VideoPixelFormat extends Enum<VideoPixelFormat>
FFmpeg/libAV compatible video pixel format
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABGR
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...ARGB
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...BGR4
packed RGB 1:2:1 bitstream, 4bpp, (msb)1B 2G 1R(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bitsBGR4_BYTE
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)BGR444BE
BGR444LE
BGR48BE
BGR48LE
BGR555BE
BGR555LE
BGR565BE
BGR565LE
BGR8
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...COUNT
DXVA2_VLD
GBRP
GBRP10BE
GBRP10LE
GBRP16BE
GBRP16LE
GBRP9BE
GBRP9LE
GRAY16BE
Y, 16bpp, big-endianGRAY16LE
Y , 16bpp, little-endianGRAY8
Y, 8bppMONOBLACK
Y, 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsbMONOWHITE
Y, 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsbNV12
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (first byte U and the following byte V)NV21
as above, but U and V bytes are swappedPAL8
8 bit with RGB32 paletteRGB24
packed RGB 8:8:8, 24bpp, RGBRGB...RGB4
packed RGB 1:2:1 bitstream, 4bpp, (msb)1R 2G 1B(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bitsRGB4_BYTE
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)RGB444BE
RGB444LE
RGB48BE
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big-endianRGB48LE
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as little-endianRGB555BE
RGB555LE
RGB565BE
RGB565LE
RGB8
packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...UYVY422
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1 ( sharing Cb and Cr w/ 2 pixels )UYYVYY411
packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3VAAPI_IDCT
VAAPI_MOCO
VAAPI_VLD
VDA_VLD
VDPAU_H264
H.264 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headersVDPAU_MPEG1
MPEG-1 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headersVDPAU_MPEG2
MPEG-2 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headersVDPAU_MPEG4
VDPAU_VC1
VC-1 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headersVDPAU_WMV3
WMV3 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headersXVMC_MPEG2_IDCT
XVMC_MPEG2_MC
XVideo Motion Acceleration via common packet passingY400A
YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)YUV420P10BE
YUV420P10LE
YUV420P16BE
YUV420P16LE
YUV420P9BE
YUV420P9LE
YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)YUV422P10BE
YUV422P10LE
YUV422P16BE
YUV422P16LE
YUV422P9BE
YUV422P9LE
YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)YUV444P10BE
YUV444P10LE
YUV444P16BE
YUV444P16LE
YUV444P9BE
YUV444P9LE
YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)YUVJ420P
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of YUV420P and setting color_rangeYUVJ422P
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of YUV422P and setting color_rangeYUVJ440P
planar YUV 4:4:0 full scale (JPEG), deprecated in favor of YUV440P and setting color_rangeYUVJ444P
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of YUV444P and setting color_rangeYUYV422
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr ( sharing Cb and Cr w/ 2 pixels )
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VideoPixelFormat
valueOf(int ordinal)
Returns the matching PixelFormat value corresponding to the given PixelFormat's integer ordinal.static VideoPixelFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static VideoPixelFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YUV420P
public static final VideoPixelFormat YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
-
YUYV422
public static final VideoPixelFormat YUYV422
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr ( sharing Cb and Cr w/ 2 pixels )
-
RGB24
public static final VideoPixelFormat RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
-
BGR24
public static final VideoPixelFormat BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
-
YUV422P
public static final VideoPixelFormat YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
-
YUV444P
public static final VideoPixelFormat YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
-
YUV410P
public static final VideoPixelFormat YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
-
YUV411P
public static final VideoPixelFormat YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
-
GRAY8
public static final VideoPixelFormat GRAY8
Y, 8bpp
-
MONOWHITE
public static final VideoPixelFormat MONOWHITE
Y, 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb
-
MONOBLACK
public static final VideoPixelFormat MONOBLACK
Y, 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb
-
PAL8
public static final VideoPixelFormat PAL8
8 bit with RGB32 palette
-
YUVJ420P
public static final VideoPixelFormat YUVJ420P
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of YUV420P and setting color_range
-
YUVJ422P
public static final VideoPixelFormat YUVJ422P
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of YUV422P and setting color_range
-
YUVJ444P
public static final VideoPixelFormat YUVJ444P
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of YUV444P and setting color_range
-
XVMC_MPEG2_MC
public static final VideoPixelFormat XVMC_MPEG2_MC
XVideo Motion Acceleration via common packet passing
-
XVMC_MPEG2_IDCT
public static final VideoPixelFormat XVMC_MPEG2_IDCT
-
UYVY422
public static final VideoPixelFormat UYVY422
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1 ( sharing Cb and Cr w/ 2 pixels )
-
UYYVYY411
public static final VideoPixelFormat UYYVYY411
packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3
-
BGR8
public static final VideoPixelFormat BGR8
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)
-
BGR4
public static final VideoPixelFormat BGR4
packed RGB 1:2:1 bitstream, 4bpp, (msb)1B 2G 1R(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bits
-
BGR4_BYTE
public static final VideoPixelFormat BGR4_BYTE
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)
-
RGB8
public static final VideoPixelFormat RGB8
packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)
-
RGB4
public static final VideoPixelFormat RGB4
packed RGB 1:2:1 bitstream, 4bpp, (msb)1R 2G 1B(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bits
-
RGB4_BYTE
public static final VideoPixelFormat RGB4_BYTE
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)
-
NV12
public static final VideoPixelFormat NV12
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (first byte U and the following byte V)
-
NV21
public static final VideoPixelFormat NV21
as above, but U and V bytes are swapped
-
ARGB
public static final VideoPixelFormat ARGB
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
-
RGBA
public static final VideoPixelFormat RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
-
ABGR
public static final VideoPixelFormat ABGR
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
-
BGRA
public static final VideoPixelFormat BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
-
GRAY16BE
public static final VideoPixelFormat GRAY16BE
Y, 16bpp, big-endian
-
GRAY16LE
public static final VideoPixelFormat GRAY16LE
Y , 16bpp, little-endian
-
YUV440P
public static final VideoPixelFormat YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
-
YUVJ440P
public static final VideoPixelFormat YUVJ440P
planar YUV 4:4:0 full scale (JPEG), deprecated in favor of YUV440P and setting color_range
-
YUVA420P
public static final VideoPixelFormat YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
-
VDPAU_H264
public static final VideoPixelFormat VDPAU_H264
H.264 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers
-
VDPAU_MPEG1
public static final VideoPixelFormat VDPAU_MPEG1
MPEG-1 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers
-
VDPAU_MPEG2
public static final VideoPixelFormat VDPAU_MPEG2
MPEG-2 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers
-
VDPAU_WMV3
public static final VideoPixelFormat VDPAU_WMV3
WMV3 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers
-
VDPAU_VC1
public static final VideoPixelFormat VDPAU_VC1
VC-1 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers
-
RGB48BE
public static final VideoPixelFormat RGB48BE
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big-endian
-
RGB48LE
public static final VideoPixelFormat RGB48LE
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as little-endian
-
RGB565BE
public static final VideoPixelFormat RGB565BE
-
RGB565LE
public static final VideoPixelFormat RGB565LE
-
RGB555BE
public static final VideoPixelFormat RGB555BE
-
RGB555LE
public static final VideoPixelFormat RGB555LE
-
BGR565BE
public static final VideoPixelFormat BGR565BE
-
BGR565LE
public static final VideoPixelFormat BGR565LE
-
BGR555BE
public static final VideoPixelFormat BGR555BE
-
BGR555LE
public static final VideoPixelFormat BGR555LE
-
VAAPI_MOCO
public static final VideoPixelFormat VAAPI_MOCO
-
VAAPI_IDCT
public static final VideoPixelFormat VAAPI_IDCT
-
VAAPI_VLD
public static final VideoPixelFormat VAAPI_VLD
-
YUV420P16LE
public static final VideoPixelFormat YUV420P16LE
-
YUV420P16BE
public static final VideoPixelFormat YUV420P16BE
-
YUV422P16LE
public static final VideoPixelFormat YUV422P16LE
-
YUV422P16BE
public static final VideoPixelFormat YUV422P16BE
-
YUV444P16LE
public static final VideoPixelFormat YUV444P16LE
-
YUV444P16BE
public static final VideoPixelFormat YUV444P16BE
-
VDPAU_MPEG4
public static final VideoPixelFormat VDPAU_MPEG4
-
DXVA2_VLD
public static final VideoPixelFormat DXVA2_VLD
-
RGB444LE
public static final VideoPixelFormat RGB444LE
-
RGB444BE
public static final VideoPixelFormat RGB444BE
-
BGR444LE
public static final VideoPixelFormat BGR444LE
-
BGR444BE
public static final VideoPixelFormat BGR444BE
-
Y400A
public static final VideoPixelFormat Y400A
-
BGR48BE
public static final VideoPixelFormat BGR48BE
-
BGR48LE
public static final VideoPixelFormat BGR48LE
-
YUV420P9BE
public static final VideoPixelFormat YUV420P9BE
-
YUV420P9LE
public static final VideoPixelFormat YUV420P9LE
-
YUV420P10BE
public static final VideoPixelFormat YUV420P10BE
-
YUV420P10LE
public static final VideoPixelFormat YUV420P10LE
-
YUV422P10BE
public static final VideoPixelFormat YUV422P10BE
-
YUV422P10LE
public static final VideoPixelFormat YUV422P10LE
-
YUV444P9BE
public static final VideoPixelFormat YUV444P9BE
-
YUV444P9LE
public static final VideoPixelFormat YUV444P9LE
-
YUV444P10BE
public static final VideoPixelFormat YUV444P10BE
-
YUV444P10LE
public static final VideoPixelFormat YUV444P10LE
-
YUV422P9BE
public static final VideoPixelFormat YUV422P9BE
-
YUV422P9LE
public static final VideoPixelFormat YUV422P9LE
-
VDA_VLD
public static final VideoPixelFormat VDA_VLD
-
GBRP
public static final VideoPixelFormat GBRP
-
GBRP9BE
public static final VideoPixelFormat GBRP9BE
-
GBRP9LE
public static final VideoPixelFormat GBRP9LE
-
GBRP10BE
public static final VideoPixelFormat GBRP10BE
-
GBRP10LE
public static final VideoPixelFormat GBRP10LE
-
GBRP16BE
public static final VideoPixelFormat GBRP16BE
-
GBRP16LE
public static final VideoPixelFormat GBRP16LE
-
COUNT
public static final VideoPixelFormat COUNT
-
-
Method Detail
-
values
public static VideoPixelFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VideoPixelFormat c : VideoPixelFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VideoPixelFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
public static VideoPixelFormat valueOf(int ordinal) throws IllegalArgumentException
Returns the matching PixelFormat value corresponding to the given PixelFormat's integer ordinal.given: ordinal = enumValue.ordinal() reverse: enumValue = EnumClass.values()[ordinal]
- Throws:
IllegalArgumentException
- if the given ordinal is out of range, i.e. not within [ 0 .. PixelFormat.values().length-1 ]
-
-