Top Description Fields Constructors Methods
jogamp.opengl.util.av

public final Enum VideoPixelFormat

extends Enum<VideoPixelFormat>
Class Inheritance

FFMPEG/libAV compatible video pixel format

Field Summary

Modifier and TypeField and Description
public static final VideoPixelFormat
ABGR

packed ABGR 8:8:8:8, 32bpp, ABGRABGR...

public static final VideoPixelFormat
ARGB

packed ARGB 8:8:8:8, 32bpp, ARGBARGB...

public static final VideoPixelFormat
BGR24

packed RGB 8:8:8, 24bpp, BGRBGR...

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

public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
BGR4_BYTE

packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)

public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
BGR8

packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)

public static final VideoPixelFormat
BGRA

packed BGRA 8:8:8:8, 32bpp, BGRABGRA...

public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
GRAY16BE

Y, 16bpp, big-endian

public static final VideoPixelFormat
GRAY16LE

Y , 16bpp, little-endian

public static final VideoPixelFormat
GRAY8

Y, 8bpp

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

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

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)

public static final VideoPixelFormat
NV21

as above, but U and V bytes are swapped

public static final VideoPixelFormat
PAL8

8 bit with RGB32 palette

public static final VideoPixelFormat
RGB24

packed RGB 8:8:8, 24bpp, RGBRGB...

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

public static final VideoPixelFormat
public static final VideoPixelFormat
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

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

public static final VideoPixelFormat
RGB4_BYTE

packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)

public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
RGB8

packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)

public static final VideoPixelFormat
RGBA

packed RGBA 8:8:8:8, 32bpp, RGBARGBA...

public static final VideoPixelFormat
UYVY422

packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1 ( sharing Cb and Cr w/ 2 pixels )

public static final VideoPixelFormat
UYYVYY411

packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3

public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
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

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

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

public static final VideoPixelFormat
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

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

public static final VideoPixelFormat
public static final VideoPixelFormat
XVMC_MPEG2_MC

XVideo Motion Acceleration via common packet passing

public static final VideoPixelFormat
public static final VideoPixelFormat
YUV410P

planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)

public static final VideoPixelFormat
YUV411P

planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)

public static final VideoPixelFormat
YUV420P

planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)

public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
YUV422P

planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)

public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
YUV440P

planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)

public static final VideoPixelFormat
YUV444P

planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)

public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
public static final VideoPixelFormat
YUVA420P

planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)

public static final VideoPixelFormat
YUVJ420P

planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of YUV420P and setting color_range

public static final VideoPixelFormat
YUVJ422P

planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of YUV422P and setting color_range

public static final VideoPixelFormat
YUVJ440P

planar YUV 4:4:0 full scale (JPEG), deprecated in favor of YUV440P and setting color_range

public static final VideoPixelFormat
YUVJ444P

planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of YUV444P and setting color_range

public static final VideoPixelFormat
YUYV422

packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr ( sharing Cb and Cr w/ 2 pixels )

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static VideoPixelFormat
public static VideoPixelFormat
valueOf(final int ordinal)

Returns the matching PixelFormat value corresponding to the given PixelFormat's integer ordinal.

public static VideoPixelFormat[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ABGRback to summary
public static final VideoPixelFormat ABGR

packed ABGR 8:8:8:8, 32bpp, ABGRABGR...

ARGBback to summary
public static final VideoPixelFormat ARGB

packed ARGB 8:8:8:8, 32bpp, ARGBARGB...

BGR24back to summary
public static final VideoPixelFormat BGR24

packed RGB 8:8:8, 24bpp, BGRBGR...

BGR4back to summary
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

BGR444BEback to summary
public static final VideoPixelFormat BGR444BE
BGR444LEback to summary
public static final VideoPixelFormat BGR444LE
BGR48BEback to summary
public static final VideoPixelFormat BGR48BE
BGR48LEback to summary
public static final VideoPixelFormat BGR48LE
BGR4_BYTEback to summary
public static final VideoPixelFormat BGR4_BYTE

packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)

BGR555BEback to summary
public static final VideoPixelFormat BGR555BE
BGR555LEback to summary
public static final VideoPixelFormat BGR555LE
BGR565BEback to summary
public static final VideoPixelFormat BGR565BE
BGR565LEback to summary
public static final VideoPixelFormat BGR565LE
BGR8back to summary
public static final VideoPixelFormat BGR8

packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)

BGRAback to summary
public static final VideoPixelFormat BGRA

packed BGRA 8:8:8:8, 32bpp, BGRABGRA...

COUNTback to summary
public static final VideoPixelFormat COUNT
DXVA2_VLDback to summary
public static final VideoPixelFormat DXVA2_VLD
GBRPback to summary
public static final VideoPixelFormat GBRP
GBRP10BEback to summary
public static final VideoPixelFormat GBRP10BE
GBRP10LEback to summary
public static final VideoPixelFormat GBRP10LE
GBRP16BEback to summary
public static final VideoPixelFormat GBRP16BE
GBRP16LEback to summary
public static final VideoPixelFormat GBRP16LE
GBRP9BEback to summary
public static final VideoPixelFormat GBRP9BE
GBRP9LEback to summary
public static final VideoPixelFormat GBRP9LE
GRAY16BEback to summary
public static final VideoPixelFormat GRAY16BE

Y, 16bpp, big-endian

GRAY16LEback to summary
public static final VideoPixelFormat GRAY16LE

Y , 16bpp, little-endian

GRAY8back to summary
public static final VideoPixelFormat GRAY8

Y, 8bpp

MONOBLACKback to summary
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

MONOWHITEback to summary
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

NV12back to summary
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)

NV21back to summary
public static final VideoPixelFormat NV21

as above, but U and V bytes are swapped

PAL8back to summary
public static final VideoPixelFormat PAL8

8 bit with RGB32 palette

RGB24back to summary
public static final VideoPixelFormat RGB24

packed RGB 8:8:8, 24bpp, RGBRGB...

RGB4back to summary
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

RGB444BEback to summary
public static final VideoPixelFormat RGB444BE
RGB444LEback to summary
public static final VideoPixelFormat RGB444LE
RGB48BEback to summary
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

RGB48LEback to summary
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

RGB4_BYTEback to summary
public static final VideoPixelFormat RGB4_BYTE

packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)

RGB555BEback to summary
public static final VideoPixelFormat RGB555BE
RGB555LEback to summary
public static final VideoPixelFormat RGB555LE
RGB565BEback to summary
public static final VideoPixelFormat RGB565BE
RGB565LEback to summary
public static final VideoPixelFormat RGB565LE
RGB8back to summary
public static final VideoPixelFormat RGB8

packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)

RGBAback to summary
public static final VideoPixelFormat RGBA

packed RGBA 8:8:8:8, 32bpp, RGBARGBA...

UYVY422back to summary
public static final VideoPixelFormat UYVY422

packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1 ( sharing Cb and Cr w/ 2 pixels )

UYYVYY411back to summary
public static final VideoPixelFormat UYYVYY411

packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3

VAAPI_IDCTback to summary
public static final VideoPixelFormat VAAPI_IDCT
VAAPI_MOCOback to summary
public static final VideoPixelFormat VAAPI_MOCO
VAAPI_VLDback to summary
public static final VideoPixelFormat VAAPI_VLD
VDA_VLDback to summary
public static final VideoPixelFormat VDA_VLD
VDPAU_H264back to summary
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_MPEG1back to summary
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_MPEG2back to summary
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_MPEG4back to summary
public static final VideoPixelFormat VDPAU_MPEG4
VDPAU_VC1back to summary
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

VDPAU_WMV3back to summary
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

XVMC_MPEG2_IDCTback to summary
public static final VideoPixelFormat XVMC_MPEG2_IDCT
XVMC_MPEG2_MCback to summary
public static final VideoPixelFormat XVMC_MPEG2_MC

XVideo Motion Acceleration via common packet passing

Y400Aback to summary
public static final VideoPixelFormat Y400A
YUV410Pback to summary
public static final VideoPixelFormat YUV410P

planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)

YUV411Pback to summary
public static final VideoPixelFormat YUV411P

planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)

YUV420Pback to summary
public static final VideoPixelFormat YUV420P

planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)

YUV420P10BEback to summary
public static final VideoPixelFormat YUV420P10BE
YUV420P10LEback to summary
public static final VideoPixelFormat YUV420P10LE
YUV420P16BEback to summary
public static final VideoPixelFormat YUV420P16BE
YUV420P16LEback to summary
public static final VideoPixelFormat YUV420P16LE
YUV420P9BEback to summary
public static final VideoPixelFormat YUV420P9BE
YUV420P9LEback to summary
public static final VideoPixelFormat YUV420P9LE
YUV422Pback to summary
public static final VideoPixelFormat YUV422P

planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)

YUV422P10BEback to summary
public static final VideoPixelFormat YUV422P10BE
YUV422P10LEback to summary
public static final VideoPixelFormat YUV422P10LE
YUV422P16BEback to summary
public static final VideoPixelFormat YUV422P16BE
YUV422P16LEback to summary
public static final VideoPixelFormat YUV422P16LE
YUV422P9BEback to summary
public static final VideoPixelFormat YUV422P9BE
YUV422P9LEback to summary
public static final VideoPixelFormat YUV422P9LE
YUV440Pback to summary
public static final VideoPixelFormat YUV440P

planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)

YUV444Pback to summary
public static final VideoPixelFormat YUV444P

planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)

YUV444P10BEback to summary
public static final VideoPixelFormat YUV444P10BE
YUV444P10LEback to summary
public static final VideoPixelFormat YUV444P10LE
YUV444P16BEback to summary
public static final VideoPixelFormat YUV444P16BE
YUV444P16LEback to summary
public static final VideoPixelFormat YUV444P16LE
YUV444P9BEback to summary
public static final VideoPixelFormat YUV444P9BE
YUV444P9LEback to summary
public static final VideoPixelFormat YUV444P9LE
YUVA420Pback to summary
public static final VideoPixelFormat YUVA420P

planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)

YUVJ420Pback to summary
public static final VideoPixelFormat YUVJ420P

planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of YUV420P and setting color_range

YUVJ422Pback to summary
public static final VideoPixelFormat YUVJ422P

planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of YUV422P and setting color_range

YUVJ440Pback to summary
public static final VideoPixelFormat YUVJ440P

planar YUV 4:4:0 full scale (JPEG), deprecated in favor of YUV440P and setting color_range

YUVJ444Pback to summary
public static final VideoPixelFormat YUVJ444P

planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of YUV444P and setting color_range

YUYV422back to summary
public static final VideoPixelFormat YUYV422

packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr ( sharing Cb and Cr w/ 2 pixels )

Constructor Detail

VideoPixelFormatback to summary
private VideoPixelFormat()

Method Detail

valueOfback to summary
public static VideoPixelFormat valueOf(String name)
valueOfback to summary
public static VideoPixelFormat valueOf(final 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]
Exceptions
IllegalArgumentException:
if the given ordinal is out of range, i.e. not within [ 0 .. PixelFormat.values().length-1 ]
valuesback to summary
public static VideoPixelFormat[] values()