Enum Class VideoFormat

java.lang.Object
java.lang.Enum<VideoFormat>
org.freedesktop.gstreamer.video.VideoFormat
All Implemented Interfaces:
Serializable, Comparable<VideoFormat>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum VideoFormat extends Enum<VideoFormat> implements Enumeration

Enum value describing the most common video formats.

See the GStreamer raw video format design document for details about the layout and packing of these formats in memory.

  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    planar 4:4:2:0 AYUV
    planar 4:4:2:0 YUV, 10 bits per channel (Since: 1.6)
    planar 4:4:2:0 YUV, 10 bits per channel (Since: 1.6)
    planar 4:4:2:0 YUV, 12 bits per channel
    planar 4:4:2:0 YUV, 12 bits per channel
    planar 4:4:2:0 YUV, 16 bits per channel
    planar 4:4:2:0 YUV, 16 bits per channel
    planar 4:4:2:2 YUV, 8 bits per channel
    planar 4:4:2:2 YUV, 10 bits per channel (Since: 1.6)
    planar 4:4:2:2 YUV, 10 bits per channel (Since: 1.6)
    planar 4:4:2:2 YUV, 12 bits per channel
    planar 4:4:2:2 YUV, 12 bits per channel
    planar 4:4:2:2 YUV, 16 bits per channel
    planar 4:4:2:2 YUV, 16 bits per channel
    planar 4:4:4:4 YUV, 8 bits per channel
    planar 4:4:4:4 YUV, 10 bits per channel (Since: 1.6)
    planar 4:4:4:4 YUV, 10 bits per channel (Since: 1.6)
    planar 4:4:4:4 YUV, 12 bits per channel
    planar 4:4:4:4 YUV, 12 bits per channel
    planar 4:4:4:4 YUV, 16 bits per channel
    planar 4:4:4:4 YUV, 16 bits per channel
    reverse rgb with alpha channel first
    Reverse RGB with alpha channel first, 16 bits (big endian) per channel.
    Reverse RGB with alpha channel first, 16 bits (little endian) per channel.
    rgb with alpha channel first
    rgb with alpha channel first, 16 bits (native endianness) per channel
    RGB with alpha channel first, 16 bits (big endian) per channel.
    RGB with alpha channel first, 16 bits (little endian) per channel.
    Planar 4:2:0 YUV with interleaved UV plane with alpha as 3rd plane.
    packed 4:4:4 YUV with alpha channel (A0-Y0-U0-V0 ...)
    packed 4:4:4 YUV with alpha channel, 16 bits (native endianness) per channel (A0-Y0-U0-V0 ...)
    reverse RGB packed into 24 bits without padding (B-G-R-B-G-R)
    packed 4:4:4 RGB with alpha channel(B-G-R-A), 10 bits for R/G/B channel and MSB 2 bits for alpha channel (Since: 1.16)
    reverse rgb 5-5-5 bits per component
    reverse rgb 5-6-5 bits per component
    reverse rgb with alpha channel last
    Reverse RGB with alpha channel last, 16 bits (big endian) per channel.
    Reverse RGB with alpha channel last, 16 bits (little endian) per channel.
    Planar 4:4:4 RGB, B-G-R order
    sparse reverse rgb packed into 32 bit, space last
    GSTVIDEOFORMATDMADRM represent the DMA DRM special format.
    Encoded video format.
    planar 4:4:4 RGB, 8 bits per channel (Since: 1.2)
    planar 4:4:4 RGB, 10 bits per channel (Since: 1.2)
    planar 4:4:4 RGB, 10 bits per channel (Since: 1.2)
    planar 4:4:4 RGB, 12 bits per channel (Since: 1.12)
    planar 4:4:4 RGB, 12 bits per channel (Since: 1.12)
    planar 4:4:4 RGB, 16 bits per channel
    planar 4:4:4 RGB, 16 bits per channel
    planar 4:4:4:4 ARGB, 8 bits per channel (Since: 1.12)
    planar 4:4:4:4 ARGB, 10 bits per channel (Since: 1.12)
    planar 4:4:4:4 ARGB, 10 bits per channel (Since: 1.12)
    planar 4:4:4:4 ARGB, 12 bits per channel (Since: 1.12)
    planar 4:4:4:4 ARGB, 12 bits per channel (Since: 1.12)
    10-bit grayscale, packed into 16bit words (6 bits left padding)
    10-bit grayscale, packed into 32bit words (2 bits padding) (Since: 1.14)
    16-bit grayscale, most significant byte first
    16-bit grayscale, least significant byte first
    8-bit grayscale
    planar 4:2:0 YUV
    planar 4:2:0 YUV, 10 bits per channel
    planar 4:2:0 YUV, 10 bits per channel
    planar 4:2:0 YUV, 12 bits per channel (Since: 1.12)
    planar 4:2:0 YUV, 12 bits per channel (Since: 1.12)
    planar 4:2:2 YUV, 10 bits per channel
    planar 4:2:2 YUV, 10 bits per channel
    planar 4:2:2 YUV, 12 bits per channel (Since: 1.12)
    planar 4:2:2 YUV, 12 bits per channel (Since: 1.12)
    packed 4:1:1 YUV (Cb-Y0-Y1-Cr-Y2-Y3 ...)
    packed 4:4:4 YUV (U-Y-V ...) (Since: 1.10)
    Mediatek 10bit NV12 little endian with 16x32 tiles in linear order, raster 2 bits.
    Mediatek 10bit NV12 little endian with 16x32 tiles in linear order, tile 2 bits.
    planar 4:2:0 YUV with interleaved UV plane
    NV12 10bit big endian with 8x128 tiles in linear order.
    10-bit variant of GSTVIDEOFORMATNV12, packed into 32bit words (MSB 2 bits padding) (Since: 1.14)
    Fully packed variant of NV12_10LE32 (Since: 1.16)
    GSTVIDEOFORMATNV1210LE40 with 4x4 pixels tiles (5 bytes per tile row).
    NV12 with 16x32 Y tiles and 16x16 UV tiles.
    NV12 with 32x32 tiles in linear order.
    NV12 with 4x4 tiles in linear order.
    NV12 with 64x32 tiling in zigzag pattern (Since: 1.4)
    NV12 with 8x128 tiles in linear order.
    planar 4:2:2 YUV with interleaved UV plane (Since: 1.2)
    10-bit variant of GSTVIDEOFORMATNV16, packed into 32bit words (MSB 2 bits padding) (Since: 1.14)
    planar 4:2:0 YUV with interleaved VU plane
    planar 4:4:4 YUV with interleaved UV plane (Since: 1.2)
    planar 4:2:2 YUV with interleaved VU plane (Since: 1.6)
    planar 4:2:0 YUV with interleaved UV plane, 10 bits per channel (Since: 1.10)
    planar 4:2:0 YUV with interleaved UV plane, 10 bits per channel (Since: 1.10)
    planar 4:2:0 YUV with interleaved UV plane, 12 bits per channel (Since: 1.18)
    planar 4:2:0 YUV with interleaved UV plane, 12 bits per channel (Since: 1.18)
    planar 4:2:0 YUV with interleaved UV plane, 16 bits per channel (Since: 1.18)
    planar 4:2:0 YUV with interleaved UV plane, 16 bits per channel (Since: 1.18)
    packed 4:4:4 RGB, 10 bits per channel
    packed RGB with alpha, 8 bits per channel
    RGB packed into 24 bits without padding (R-G-B-R-G-B)
    packed 4:4:4 RGB with alpha channel(R-G-B-A), 10 bits for R/G/B channel and MSB 2 bits for alpha channel (Since: 1.18)
    rgb 5-5-5 bits per component
    rgb 5-6-5 bits per component
    8-bit paletted RGB
    rgb with alpha channel last
    RGB with alpha channel last, 16 bits (big endian) per channel.
    RGB with alpha channel last, 16 bits (little endian) per channel.
    Planar 4:4:4 RGB, R-G-B order
    sparse rgb packed into 32 bit, space last
    Unknown or unset video format id
    packed 10-bit 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 ...)
    packed 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 ...)
    packed 4:2:2 10-bit YUV, complex format
    packed 4:2:2 16-bit YUV, Y0-U0-Y1-V1 order
    packed 4:4:4 YUV (Y-U-V ...)
    packed 4:4:4 YUV with alpha channel (V0-U0-Y0-A0...) (Since: 1.16)
    packed 4:2:2 YUV (V0-Y0-U0-Y1 V2-Y2-U2-Y3 V4 ...)
    sparse reverse rgb packed into 32 bit, space first
    sparse rgb packed into 32 bit, space first
    packed 4:2:2 YUV, 10 bits per channel (Since: 1.16)
    packed 4:2:2 YUV, 12 bits per channel (Y-U-Y-V) (Since: 1.18)
    packed 4:2:2 YUV, 12 bits per channel (Y-U-Y-V) (Since: 1.18)
    packed 4:2:2 YUV, 16 bits per channel (Y-U-Y-V)
    packed 4:2:2 YUV, 16 bits per channel (Y-U-Y-V)
    packed 4:4:4 YUV, 10 bits per channel(A-V-Y-U...) (Since: 1.16)
    packed 4:4:4:4 YUV, 12 bits per channel(U-Y-V-A...) (Since: 1.18)
    packed 4:4:4:4 YUV, 12 bits per channel(U-Y-V-A...) (Since: 1.18)
    packed 4:4:4:4 YUV, 16 bits per channel(U-Y-V-A)
    packed 4:4:4:4 YUV, 16 bits per channel(U-Y-V-A)
    planar 4:1:1 YUV
    planar 4:2:2 YUV
    planar 4:4:4 YUV
    planar 4:4:4 YUV, 10 bits per channel (Since: 1.2)
    planar 4:4:4 YUV, 10 bits per channel (Since: 1.2)
    planar 4:4:4 YUV, 12 bits per channel (Since: 1.12)
    planar 4:4:4 YUV, 12 bits per channel (Since: 1.12)
    planar 4:4:4 YUV, 16 bits per channel (Since: 1.18)
    planar 4:4:4 YUV, 16 bits per channel (Since: 1.18)
    planar 4:1:0 YUV
    packed 4:2:2 YUV (Y0-U0-Y1-V0 Y2-U2-Y3-V2 Y4 ...)
    planar 4:2:0 YVU (like I420 but UV planes swapped)
    planar 4:1:0 YUV (like YUV9 but UV planes swapped)
    packed 4:2:2 YUV (Y0-V0-Y1-U0 Y2-V2-Y3-U2 Y4 ...)
  • Method Summary

    Modifier and Type
    Method
    Description
    fromFourcc(int fourcc)
    Converts a FOURCC value into the corresponding GstVideoFormat.
    fromMasks(int depth, int bpp, int endianness, int redMask, int greenMask, int blueMask, int alphaMask)
    Find the GstVideoFormat for the given parameters.
    Convert the format string to its GstVideoFormat.
    Get the GstVideoFormatInfo for this VideoFormat
    @Nullable MemorySegment
    Get the default palette of format. This the palette used in the pack function for paletted formats.
    static @Nullable Type
    Get the GType of the VideoFormat class.
    int
    Get the numeric value of this enum
    of(int value)
    Create a new VideoFormat for the provided value
    of(MemorySegment address)
    Create a new VideoFormat for the value in the provided memory address.
    int
    Converts a GstVideoFormat value into the corresponding FOURCC.
    Returns a string containing a descriptive name for the GstVideoFormat.
    Returns the enum constant of this class with the specified name.
    static VideoFormat[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • UNKNOWN

      public static final VideoFormat UNKNOWN
      Unknown or unset video format id
    • ENCODED

      public static final VideoFormat ENCODED
      Encoded video format. Only ever use that in caps for special video formats in combination with non-system memory GstCapsFeatures where it does not make sense to specify a real video format.
    • I420

      public static final VideoFormat I420
      planar 4:2:0 YUV
    • YV12

      public static final VideoFormat YV12
      planar 4:2:0 YVU (like I420 but UV planes swapped)
    • YUY2

      public static final VideoFormat YUY2
      packed 4:2:2 YUV (Y0-U0-Y1-V0 Y2-U2-Y3-V2 Y4 ...)
    • UYVY

      public static final VideoFormat UYVY
      packed 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 ...)
    • AYUV

      public static final VideoFormat AYUV
      packed 4:4:4 YUV with alpha channel (A0-Y0-U0-V0 ...)
    • RGBX

      public static final VideoFormat RGBX
      sparse rgb packed into 32 bit, space last
    • BGRX

      public static final VideoFormat BGRX
      sparse reverse rgb packed into 32 bit, space last
    • XRGB

      public static final VideoFormat XRGB
      sparse rgb packed into 32 bit, space first
    • XBGR

      public static final VideoFormat XBGR
      sparse reverse rgb packed into 32 bit, space first
    • RGBA

      public static final VideoFormat RGBA
      rgb with alpha channel last
    • BGRA

      public static final VideoFormat BGRA
      reverse rgb with alpha channel last
    • ARGB

      public static final VideoFormat ARGB
      rgb with alpha channel first
    • ABGR

      public static final VideoFormat ABGR
      reverse rgb with alpha channel first
    • RGB

      public static final VideoFormat RGB
      RGB packed into 24 bits without padding (R-G-B-R-G-B)
    • BGR

      public static final VideoFormat BGR
      reverse RGB packed into 24 bits without padding (B-G-R-B-G-R)
    • Y41B

      public static final VideoFormat Y41B
      planar 4:1:1 YUV
    • Y42B

      public static final VideoFormat Y42B
      planar 4:2:2 YUV
    • YVYU

      public static final VideoFormat YVYU
      packed 4:2:2 YUV (Y0-V0-Y1-U0 Y2-V2-Y3-U2 Y4 ...)
    • Y444

      public static final VideoFormat Y444
      planar 4:4:4 YUV
    • V210

      public static final VideoFormat V210
      packed 4:2:2 10-bit YUV, complex format
    • V216

      public static final VideoFormat V216
      packed 4:2:2 16-bit YUV, Y0-U0-Y1-V1 order
    • NV12

      public static final VideoFormat NV12
      planar 4:2:0 YUV with interleaved UV plane
    • NV21

      public static final VideoFormat NV21
      planar 4:2:0 YUV with interleaved VU plane
    • GRAY8

      public static final VideoFormat GRAY8
      8-bit grayscale
    • GRAY16_BE

      public static final VideoFormat GRAY16_BE
      16-bit grayscale, most significant byte first
    • GRAY16_LE

      public static final VideoFormat GRAY16_LE
      16-bit grayscale, least significant byte first
    • V308

      public static final VideoFormat V308
      packed 4:4:4 YUV (Y-U-V ...)
    • RGB16

      public static final VideoFormat RGB16
      rgb 5-6-5 bits per component
    • BGR16

      public static final VideoFormat BGR16
      reverse rgb 5-6-5 bits per component
    • RGB15

      public static final VideoFormat RGB15
      rgb 5-5-5 bits per component
    • BGR15

      public static final VideoFormat BGR15
      reverse rgb 5-5-5 bits per component
    • UYVP

      public static final VideoFormat UYVP
      packed 10-bit 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 ...)
    • A420

      public static final VideoFormat A420
      planar 4:4:2:0 AYUV
    • RGB8P

      public static final VideoFormat RGB8P
      8-bit paletted RGB
    • YUV9

      public static final VideoFormat YUV9
      planar 4:1:0 YUV
    • YVU9

      public static final VideoFormat YVU9
      planar 4:1:0 YUV (like YUV9 but UV planes swapped)
    • IYU1

      public static final VideoFormat IYU1
      packed 4:1:1 YUV (Cb-Y0-Y1-Cr-Y2-Y3 ...)
    • ARGB64

      public static final VideoFormat ARGB64
      rgb with alpha channel first, 16 bits (native endianness) per channel
    • AYUV64

      public static final VideoFormat AYUV64
      packed 4:4:4 YUV with alpha channel, 16 bits (native endianness) per channel (A0-Y0-U0-V0 ...)
    • R210

      public static final VideoFormat R210
      packed 4:4:4 RGB, 10 bits per channel
    • I420_10BE

      public static final VideoFormat I420_10BE
      planar 4:2:0 YUV, 10 bits per channel
    • I420_10LE

      public static final VideoFormat I420_10LE
      planar 4:2:0 YUV, 10 bits per channel
    • I422_10BE

      public static final VideoFormat I422_10BE
      planar 4:2:2 YUV, 10 bits per channel
    • I422_10LE

      public static final VideoFormat I422_10LE
      planar 4:2:2 YUV, 10 bits per channel
    • Y444_10BE

      public static final VideoFormat Y444_10BE
      planar 4:4:4 YUV, 10 bits per channel (Since: 1.2)
    • Y444_10LE

      public static final VideoFormat Y444_10LE
      planar 4:4:4 YUV, 10 bits per channel (Since: 1.2)
    • GBR

      public static final VideoFormat GBR
      planar 4:4:4 RGB, 8 bits per channel (Since: 1.2)
    • GBR_10BE

      public static final VideoFormat GBR_10BE
      planar 4:4:4 RGB, 10 bits per channel (Since: 1.2)
    • GBR_10LE

      public static final VideoFormat GBR_10LE
      planar 4:4:4 RGB, 10 bits per channel (Since: 1.2)
    • NV16

      public static final VideoFormat NV16
      planar 4:2:2 YUV with interleaved UV plane (Since: 1.2)
    • NV24

      public static final VideoFormat NV24
      planar 4:4:4 YUV with interleaved UV plane (Since: 1.2)
    • NV12_64Z32

      public static final VideoFormat NV12_64Z32
      NV12 with 64x32 tiling in zigzag pattern (Since: 1.4)
    • A420_10BE

      public static final VideoFormat A420_10BE
      planar 4:4:2:0 YUV, 10 bits per channel (Since: 1.6)
    • A420_10LE

      public static final VideoFormat A420_10LE
      planar 4:4:2:0 YUV, 10 bits per channel (Since: 1.6)
    • A422_10BE

      public static final VideoFormat A422_10BE
      planar 4:4:2:2 YUV, 10 bits per channel (Since: 1.6)
    • A422_10LE

      public static final VideoFormat A422_10LE
      planar 4:4:2:2 YUV, 10 bits per channel (Since: 1.6)
    • A444_10BE

      public static final VideoFormat A444_10BE
      planar 4:4:4:4 YUV, 10 bits per channel (Since: 1.6)
    • A444_10LE

      public static final VideoFormat A444_10LE
      planar 4:4:4:4 YUV, 10 bits per channel (Since: 1.6)
    • NV61

      public static final VideoFormat NV61
      planar 4:2:2 YUV with interleaved VU plane (Since: 1.6)
    • P010_10BE

      public static final VideoFormat P010_10BE
      planar 4:2:0 YUV with interleaved UV plane, 10 bits per channel (Since: 1.10)
    • P010_10LE

      public static final VideoFormat P010_10LE
      planar 4:2:0 YUV with interleaved UV plane, 10 bits per channel (Since: 1.10)
    • IYU2

      public static final VideoFormat IYU2
      packed 4:4:4 YUV (U-Y-V ...) (Since: 1.10)
    • VYUY

      public static final VideoFormat VYUY
      packed 4:2:2 YUV (V0-Y0-U0-Y1 V2-Y2-U2-Y3 V4 ...)
    • GBRA

      public static final VideoFormat GBRA
      planar 4:4:4:4 ARGB, 8 bits per channel (Since: 1.12)
    • GBRA_10BE

      public static final VideoFormat GBRA_10BE
      planar 4:4:4:4 ARGB, 10 bits per channel (Since: 1.12)
    • GBRA_10LE

      public static final VideoFormat GBRA_10LE
      planar 4:4:4:4 ARGB, 10 bits per channel (Since: 1.12)
    • GBR_12BE

      public static final VideoFormat GBR_12BE
      planar 4:4:4 RGB, 12 bits per channel (Since: 1.12)
    • GBR_12LE

      public static final VideoFormat GBR_12LE
      planar 4:4:4 RGB, 12 bits per channel (Since: 1.12)
    • GBRA_12BE

      public static final VideoFormat GBRA_12BE
      planar 4:4:4:4 ARGB, 12 bits per channel (Since: 1.12)
    • GBRA_12LE

      public static final VideoFormat GBRA_12LE
      planar 4:4:4:4 ARGB, 12 bits per channel (Since: 1.12)
    • I420_12BE

      public static final VideoFormat I420_12BE
      planar 4:2:0 YUV, 12 bits per channel (Since: 1.12)
    • I420_12LE

      public static final VideoFormat I420_12LE
      planar 4:2:0 YUV, 12 bits per channel (Since: 1.12)
    • I422_12BE

      public static final VideoFormat I422_12BE
      planar 4:2:2 YUV, 12 bits per channel (Since: 1.12)
    • I422_12LE

      public static final VideoFormat I422_12LE
      planar 4:2:2 YUV, 12 bits per channel (Since: 1.12)
    • Y444_12BE

      public static final VideoFormat Y444_12BE
      planar 4:4:4 YUV, 12 bits per channel (Since: 1.12)
    • Y444_12LE

      public static final VideoFormat Y444_12LE
      planar 4:4:4 YUV, 12 bits per channel (Since: 1.12)
    • GRAY10_LE32

      public static final VideoFormat GRAY10_LE32
      10-bit grayscale, packed into 32bit words (2 bits padding) (Since: 1.14)
    • NV12_10LE32

      public static final VideoFormat NV12_10LE32
      10-bit variant of GSTVIDEOFORMATNV12, packed into 32bit words (MSB 2 bits padding) (Since: 1.14)
    • NV16_10LE32

      public static final VideoFormat NV16_10LE32
      10-bit variant of GSTVIDEOFORMATNV16, packed into 32bit words (MSB 2 bits padding) (Since: 1.14)
    • NV12_10LE40

      public static final VideoFormat NV12_10LE40
      Fully packed variant of NV12_10LE32 (Since: 1.16)
    • Y210

      public static final VideoFormat Y210
      packed 4:2:2 YUV, 10 bits per channel (Since: 1.16)
    • Y410

      public static final VideoFormat Y410
      packed 4:4:4 YUV, 10 bits per channel(A-V-Y-U...) (Since: 1.16)
    • VUYA

      public static final VideoFormat VUYA
      packed 4:4:4 YUV with alpha channel (V0-U0-Y0-A0...) (Since: 1.16)
    • BGR10A2_LE

      public static final VideoFormat BGR10A2_LE
      packed 4:4:4 RGB with alpha channel(B-G-R-A), 10 bits for R/G/B channel and MSB 2 bits for alpha channel (Since: 1.16)
    • RGB10A2_LE

      public static final VideoFormat RGB10A2_LE
      packed 4:4:4 RGB with alpha channel(R-G-B-A), 10 bits for R/G/B channel and MSB 2 bits for alpha channel (Since: 1.18)
    • Y444_16BE

      public static final VideoFormat Y444_16BE
      planar 4:4:4 YUV, 16 bits per channel (Since: 1.18)
    • Y444_16LE

      public static final VideoFormat Y444_16LE
      planar 4:4:4 YUV, 16 bits per channel (Since: 1.18)
    • P016_BE

      public static final VideoFormat P016_BE
      planar 4:2:0 YUV with interleaved UV plane, 16 bits per channel (Since: 1.18)
    • P016_LE

      public static final VideoFormat P016_LE
      planar 4:2:0 YUV with interleaved UV plane, 16 bits per channel (Since: 1.18)
    • P012_BE

      public static final VideoFormat P012_BE
      planar 4:2:0 YUV with interleaved UV plane, 12 bits per channel (Since: 1.18)
    • P012_LE

      public static final VideoFormat P012_LE
      planar 4:2:0 YUV with interleaved UV plane, 12 bits per channel (Since: 1.18)
    • Y212_BE

      public static final VideoFormat Y212_BE
      packed 4:2:2 YUV, 12 bits per channel (Y-U-Y-V) (Since: 1.18)
    • Y212_LE

      public static final VideoFormat Y212_LE
      packed 4:2:2 YUV, 12 bits per channel (Y-U-Y-V) (Since: 1.18)
    • Y412_BE

      public static final VideoFormat Y412_BE
      packed 4:4:4:4 YUV, 12 bits per channel(U-Y-V-A...) (Since: 1.18)
    • Y412_LE

      public static final VideoFormat Y412_LE
      packed 4:4:4:4 YUV, 12 bits per channel(U-Y-V-A...) (Since: 1.18)
    • NV12_4L4

      public static final VideoFormat NV12_4L4
      NV12 with 4x4 tiles in linear order.
      Since:
      1.18
    • NV12_32L32

      public static final VideoFormat NV12_32L32
      NV12 with 32x32 tiles in linear order.
      Since:
      1.18
    • RGBP

      public static final VideoFormat RGBP
      Planar 4:4:4 RGB, R-G-B order
      Since:
      1.20
    • BGRP

      public static final VideoFormat BGRP
      Planar 4:4:4 RGB, B-G-R order
      Since:
      1.20
    • AV12

      public static final VideoFormat AV12
      Planar 4:2:0 YUV with interleaved UV plane with alpha as 3rd plane.
      Since:
      1.20
    • ARGB64_LE

      public static final VideoFormat ARGB64_LE
      RGB with alpha channel first, 16 bits (little endian) per channel.
      Since:
      1.20
    • ARGB64_BE

      public static final VideoFormat ARGB64_BE
      RGB with alpha channel first, 16 bits (big endian) per channel.
      Since:
      1.20
    • RGBA64_LE

      public static final VideoFormat RGBA64_LE
      RGB with alpha channel last, 16 bits (little endian) per channel.
      Since:
      1.20
    • RGBA64_BE

      public static final VideoFormat RGBA64_BE
      RGB with alpha channel last, 16 bits (big endian) per channel.
      Since:
      1.20
    • BGRA64_LE

      public static final VideoFormat BGRA64_LE
      Reverse RGB with alpha channel last, 16 bits (little endian) per channel.
      Since:
      1.20
    • BGRA64_BE

      public static final VideoFormat BGRA64_BE
      Reverse RGB with alpha channel last, 16 bits (big endian) per channel.
      Since:
      1.20
    • ABGR64_LE

      public static final VideoFormat ABGR64_LE
      Reverse RGB with alpha channel first, 16 bits (little endian) per channel.
      Since:
      1.20
    • ABGR64_BE

      public static final VideoFormat ABGR64_BE
      Reverse RGB with alpha channel first, 16 bits (big endian) per channel.
      Since:
      1.20
    • NV12_16L32S

      public static final VideoFormat NV12_16L32S
      NV12 with 16x32 Y tiles and 16x16 UV tiles.
      Since:
      1.22
    • NV12_8L128

      public static final VideoFormat NV12_8L128
      NV12 with 8x128 tiles in linear order.
      Since:
      1.22
    • NV12_10BE_8L128

      public static final VideoFormat NV12_10BE_8L128
      NV12 10bit big endian with 8x128 tiles in linear order.
      Since:
      1.22
    • NV12_10LE40_4L4

      public static final VideoFormat NV12_10LE40_4L4
      GSTVIDEOFORMATNV1210LE40 with 4x4 pixels tiles (5 bytes per tile row). This format is produced by Verisilicon/Hantro decoders.
      Since:
      1.24
    • DMA_DRM

      public static final VideoFormat DMA_DRM
      GSTVIDEOFORMATDMADRM represent the DMA DRM special format. It's only used with memory:DMABuf GstCapsFeatures, where an extra parameter (drm-format) is required to define the image format and its memory layout.
      Since:
      1.24
    • MT2110T

      public static final VideoFormat MT2110T
      Mediatek 10bit NV12 little endian with 16x32 tiles in linear order, tile 2 bits.
      Since:
      1.24
    • MT2110R

      public static final VideoFormat MT2110R
      Mediatek 10bit NV12 little endian with 16x32 tiles in linear order, raster 2 bits.
      Since:
      1.24
    • A422

      public static final VideoFormat A422
      planar 4:4:2:2 YUV, 8 bits per channel
      Since:
      1.24
    • A444

      public static final VideoFormat A444
      planar 4:4:4:4 YUV, 8 bits per channel
      Since:
      1.24
    • A444_12LE

      public static final VideoFormat A444_12LE
      planar 4:4:4:4 YUV, 12 bits per channel
      Since:
      1.24
    • A444_12BE

      public static final VideoFormat A444_12BE
      planar 4:4:4:4 YUV, 12 bits per channel
      Since:
      1.24
    • A422_12LE

      public static final VideoFormat A422_12LE
      planar 4:4:2:2 YUV, 12 bits per channel
      Since:
      1.24
    • A422_12BE

      public static final VideoFormat A422_12BE
      planar 4:4:2:2 YUV, 12 bits per channel
      Since:
      1.24
    • A420_12LE

      public static final VideoFormat A420_12LE
      planar 4:4:2:0 YUV, 12 bits per channel
      Since:
      1.24
    • A420_12BE

      public static final VideoFormat A420_12BE
      planar 4:4:2:0 YUV, 12 bits per channel
      Since:
      1.24
    • A444_16LE

      public static final VideoFormat A444_16LE
      planar 4:4:4:4 YUV, 16 bits per channel
      Since:
      1.24
    • A444_16BE

      public static final VideoFormat A444_16BE
      planar 4:4:4:4 YUV, 16 bits per channel
      Since:
      1.24
    • A422_16LE

      public static final VideoFormat A422_16LE
      planar 4:4:2:2 YUV, 16 bits per channel
      Since:
      1.24
    • A422_16BE

      public static final VideoFormat A422_16BE
      planar 4:4:2:2 YUV, 16 bits per channel
      Since:
      1.24
    • A420_16LE

      public static final VideoFormat A420_16LE
      planar 4:4:2:0 YUV, 16 bits per channel
      Since:
      1.24
    • A420_16BE

      public static final VideoFormat A420_16BE
      planar 4:4:2:0 YUV, 16 bits per channel
      Since:
      1.24
    • GBR_16LE

      public static final VideoFormat GBR_16LE
      planar 4:4:4 RGB, 16 bits per channel
      Since:
      1.24
    • GBR_16BE

      public static final VideoFormat GBR_16BE
      planar 4:4:4 RGB, 16 bits per channel
      Since:
      1.24
    • RBGA

      public static final VideoFormat RBGA
      packed RGB with alpha, 8 bits per channel
      Since:
      1.24
    • Y216_LE

      public static final VideoFormat Y216_LE
      packed 4:2:2 YUV, 16 bits per channel (Y-U-Y-V)
      Since:
      1.26
    • Y216_BE

      public static final VideoFormat Y216_BE
      packed 4:2:2 YUV, 16 bits per channel (Y-U-Y-V)
      Since:
      1.26
    • Y416_LE

      public static final VideoFormat Y416_LE
      packed 4:4:4:4 YUV, 16 bits per channel(U-Y-V-A)
      Since:
      1.26
    • Y416_BE

      public static final VideoFormat Y416_BE
      packed 4:4:4:4 YUV, 16 bits per channel(U-Y-V-A)
      Since:
      1.26
    • GRAY10_LE16

      public static final VideoFormat GRAY10_LE16
      10-bit grayscale, packed into 16bit words (6 bits left padding)
      Since:
      1.26
  • Method Details

    • values

      public static VideoFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VideoFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static VideoFormat of(int value)
      Create a new VideoFormat for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static VideoFormat of(MemorySegment address)
      Create a new VideoFormat for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the VideoFormat class.
      Returns:
      the GType
    • fromFourcc

      public static VideoFormat fromFourcc(int fourcc)
      Converts a FOURCC value into the corresponding GstVideoFormat. If the FOURCC cannot be represented by GstVideoFormat, GST_VIDEO_FORMAT_UNKNOWN is returned.
      Parameters:
      fourcc - a FOURCC value representing raw YUV video
      Returns:
      the GstVideoFormat describing the FOURCC value
    • fromMasks

      public static VideoFormat fromMasks(int depth, int bpp, int endianness, int redMask, int greenMask, int blueMask, int alphaMask)
      Find the GstVideoFormat for the given parameters.
      Parameters:
      depth - the amount of bits used for a pixel
      bpp - the amount of bits used to store a pixel. This value is bigger than depth
      endianness - the endianness of the masks, G_LITTLE_ENDIAN or G_BIG_ENDIAN
      redMask - the red mask
      greenMask - the green mask
      blueMask - the blue mask
      alphaMask - the alpha mask, or 0 if no alpha mask
      Returns:
      a GstVideoFormat or GST_VIDEO_FORMAT_UNKNOWN when the parameters to not specify a known format.
    • fromString

      public static VideoFormat fromString(String format)
      Convert the format string to its GstVideoFormat.
      Parameters:
      format - a format string
      Returns:
      the GstVideoFormat for format or GST_VIDEO_FORMAT_UNKNOWN when the string is not a known format.
    • getInfo

      public VideoFormatInfo getInfo()
      Get the GstVideoFormatInfo for this VideoFormat
      Returns:
      The GstVideoFormatInfo for format.
    • getPalette

      public @Nullable MemorySegment getPalette(Out<Long> size)
      Get the default palette of format. This the palette used in the pack function for paletted formats.
      Parameters:
      size - size of the palette in bytes
      Returns:
      the default palette of this VideoFormat or null when this VideoFormat does not have a palette.
      Since:
      1.2
    • toFourcc

      public int toFourcc()
      Converts a GstVideoFormat value into the corresponding FOURCC. Only a few YUV formats have corresponding FOURCC values. If this VideoFormat has no corresponding FOURCC value, 0 is returned.
      Returns:
      the FOURCC corresponding to this VideoFormat
    • toString

      public String toString()

      Returns a string containing a descriptive name for the GstVideoFormat.

      Since 1.26 this can also be used with UNKNOWN, previous versions were printing a critical warning and returned null.

      Overrides:
      toString in class Enum<VideoFormat>
      Returns:
      the name corresponding to this VideoFormat