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 ABGRpacked ABGR 8:8:8:8, 32bpp, ABGRABGR...ARGBpacked ARGB 8:8:8:8, 32bpp, ARGBARGB...BGR24packed RGB 8:8:8, 24bpp, BGRBGR...BGR4packed 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_BYTEpacked RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)BGR444BEBGR444LEBGR48BEBGR48LEBGR555BEBGR555LEBGR565BEBGR565LEBGR8packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)BGRApacked BGRA 8:8:8:8, 32bpp, BGRABGRA...COUNTDXVA2_VLDGBRPGBRP10BEGBRP10LEGBRP16BEGBRP16LEGBRP9BEGBRP9LEGRAY16BEY, 16bpp, big-endianGRAY16LEY , 16bpp, little-endianGRAY8Y, 8bppMONOBLACKY, 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsbMONOWHITEY, 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsbNV12planar 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)NV21as above, but U and V bytes are swappedPAL88 bit with RGB32 paletteRGB24packed RGB 8:8:8, 24bpp, RGBRGB...RGB4packed 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_BYTEpacked RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)RGB444BERGB444LERGB48BEpacked RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big-endianRGB48LEpacked RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as little-endianRGB555BERGB555LERGB565BERGB565LERGB8packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)RGBApacked RGBA 8:8:8:8, 32bpp, RGBARGBA...UYVY422packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1 ( sharing Cb and Cr w/ 2 pixels )UYYVYY411packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3VAAPI_IDCTVAAPI_MOCOVAAPI_VLDVDA_VLDVDPAU_H264H.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_MPEG1MPEG-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_MPEG2MPEG-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_MPEG4VDPAU_VC1VC-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_WMV3WMV3 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_IDCTXVMC_MPEG2_MCXVideo Motion Acceleration via common packet passingY400AYUV410Pplanar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)YUV411Pplanar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)YUV420Pplanar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)YUV420P10BEYUV420P10LEYUV420P16BEYUV420P16LEYUV420P9BEYUV420P9LEYUV422Pplanar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)YUV422P10BEYUV422P10LEYUV422P16BEYUV422P16LEYUV422P9BEYUV422P9LEYUV440Pplanar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)YUV444Pplanar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)YUV444P10BEYUV444P10LEYUV444P16BEYUV444P16LEYUV444P9BEYUV444P9LEYUVA420Pplanar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)YUVJ420Pplanar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of YUV420P and setting color_rangeYUVJ422Pplanar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of YUV422P and setting color_rangeYUVJ440Pplanar YUV 4:4:0 full scale (JPEG), deprecated in favor of YUV440P and setting color_rangeYUVJ444Pplanar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of YUV444P and setting color_rangeYUYV422packed 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 VideoPixelFormatvalueOf(int ordinal)Returns the matching PixelFormat value corresponding to the given PixelFormat's integer ordinal.static VideoPixelFormatvalueOf(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 ]
-
-