Enum VideoPixelFormat

    • 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 bits
      BGR4_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-endian
      GRAY16LE
      Y , 16bpp, little-endian
      GRAY8
      Y, 8bpp
      MONOBLACK
      Y, 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb
      MONOWHITE
      Y, 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb
      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
      as above, but U and V bytes are swapped
      PAL8
      8 bit with RGB32 palette
      RGB24
      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 bits
      RGB4_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-endian
      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
      RGB555BE  
      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 Y3
      VAAPI_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 headers
      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
      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_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 headers
      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_IDCT  
      XVMC_MPEG2_MC
      XVideo Motion Acceleration via common packet passing
      Y400A  
      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_range
      YUVJ422P
      planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of YUV422P and setting color_range
      YUVJ440P
      planar YUV 4:4:0 full scale (JPEG), deprecated in favor of YUV440P and setting color_range
      YUVJ444P
      planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of YUV444P and setting color_range
      YUYV422
      packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr ( sharing Cb and Cr w/ 2 pixels )
    • 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)
      • 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
      • 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
      • 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...
      • 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
    • 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 name
        NullPointerException - 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 ]