Package org.freedesktop.gstreamer.video
Enum Class VideoFormat
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<VideoFormat>
,Constable
@Generated("io.github.jwharm.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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionplanar 4:4:2:0 AYUVplanar 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 channelplanar 4:4:2:0 YUV, 12 bits per channelplanar 4:4:2:0 YUV, 16 bits per channelplanar 4:4:2:0 YUV, 16 bits per channelplanar 4:4:2:2 YUV, 8 bits per channelplanar 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 channelplanar 4:4:2:2 YUV, 12 bits per channelplanar 4:4:2:2 YUV, 16 bits per channelplanar 4:4:2:2 YUV, 16 bits per channelplanar 4:4:4:4 YUV, 8 bits per channelplanar 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 channelplanar 4:4:4:4 YUV, 12 bits per channelplanar 4:4:4:4 YUV, 16 bits per channelplanar 4:4:4:4 YUV, 16 bits per channelreverse rgb with alpha channel firstReverse 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 firstrgb with alpha channel first, 16 bits (native endianness) per channelRGB 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 componentreverse rgb 5-6-5 bits per componentreverse rgb with alpha channel lastReverse 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 ordersparse reverse rgb packed into 32 bit, space lastGSTVIDEOFORMATDMADRM
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 channelplanar 4:4:4 RGB, 16 bits per channelplanar 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 32bit words (2 bits padding) (Since: 1.14)16-bit grayscale, most significant byte first16-bit grayscale, least significant byte first8-bit grayscaleplanar 4:2:0 YUVplanar 4:2:0 YUV, 10 bits per channelplanar 4:2:0 YUV, 10 bits per channelplanar 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 channelplanar 4:2:2 YUV, 10 bits per channelplanar 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 planeNV12 10bit big endian with 8x128 tiles in linear order.10-bit variant ofGSTVIDEOFORMATNV12
, 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 ofGSTVIDEOFORMATNV16
, packed into 32bit words (MSB 2 bits padding) (Since: 1.14)planar 4:2:0 YUV with interleaved VU planeplanar 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 channelpacked RGB with alpha, 8 bits per channelRGB 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 componentrgb 5-6-5 bits per component8-bit paletted RGBrgb with alpha channel lastRGB 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 ordersparse rgb packed into 32 bit, space lastUnknown or unset video format idpacked 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 formatpacked 4:2:2 16-bit YUV, Y0-U0-Y1-V1 orderpacked 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 firstsparse rgb packed into 32 bit, space firstpacked 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: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)planar 4:1:1 YUVplanar 4:2:2 YUVplanar 4:4:4 YUVplanar 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 YUVpacked 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 TypeMethodDescriptionstatic VideoFormat
fromFourcc
(int fourcc) Converts a FOURCC value into the correspondingGstVideoFormat
.static VideoFormat
fromMasks
(int depth, int bpp, int endianness, int redMask, int greenMask, int blueMask, int alphaMask) Find theGstVideoFormat
for the given parameters.static VideoFormat
fromString
(String format) Convert theformat
string to itsGstVideoFormat
.getInfo()
Get theGstVideoFormatInfo
for this VideoFormatgetPalette
(Out<Long> size) Get the default palette of this VideoFormat.static Type
getType()
Get the GType of the VideoFormat classint
getValue()
Get the numeric value of this enumstatic VideoFormat
of
(int value) Create a new VideoFormat for the provided valueint
toFourcc()
Converts aGstVideoFormat
value into the corresponding FOURCC.toString()
Returns a string containing a descriptive name for theGstVideoFormat
if there is one, or NULL otherwise.static VideoFormat
Returns the enum constant of this class with the specified name.static VideoFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown or unset video format id -
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
planar 4:2:0 YUV -
YV12
planar 4:2:0 YVU (like I420 but UV planes swapped) -
YUY2
packed 4:2:2 YUV (Y0-U0-Y1-V0 Y2-U2-Y3-V2 Y4 ...) -
UYVY
packed 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 ...) -
AYUV
packed 4:4:4 YUV with alpha channel (A0-Y0-U0-V0 ...) -
RGBX
sparse rgb packed into 32 bit, space last -
BGRX
sparse reverse rgb packed into 32 bit, space last -
XRGB
sparse rgb packed into 32 bit, space first -
XBGR
sparse reverse rgb packed into 32 bit, space first -
RGBA
rgb with alpha channel last -
BGRA
reverse rgb with alpha channel last -
ARGB
rgb with alpha channel first -
ABGR
reverse rgb with alpha channel first -
RGB
RGB packed into 24 bits without padding (R-G-B-R-G-B
) -
BGR
reverse RGB packed into 24 bits without padding (B-G-R-B-G-R
) -
Y41B
planar 4:1:1 YUV -
Y42B
planar 4:2:2 YUV -
YVYU
packed 4:2:2 YUV (Y0-V0-Y1-U0 Y2-V2-Y3-U2 Y4 ...) -
Y444
planar 4:4:4 YUV -
V210
packed 4:2:2 10-bit YUV, complex format -
V216
packed 4:2:2 16-bit YUV, Y0-U0-Y1-V1 order -
NV12
planar 4:2:0 YUV with interleaved UV plane -
NV21
planar 4:2:0 YUV with interleaved VU plane -
GRAY8
8-bit grayscale -
GRAY16_BE
16-bit grayscale, most significant byte first -
GRAY16_LE
16-bit grayscale, least significant byte first -
V308
packed 4:4:4 YUV (Y-U-V ...) -
RGB16
rgb 5-6-5 bits per component -
BGR16
reverse rgb 5-6-5 bits per component -
RGB15
rgb 5-5-5 bits per component -
BGR15
reverse rgb 5-5-5 bits per component -
UYVP
packed 10-bit 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 ...) -
A420
planar 4:4:2:0 AYUV -
RGB8P
8-bit paletted RGB -
YUV9
planar 4:1:0 YUV -
YVU9
planar 4:1:0 YUV (like YUV9 but UV planes swapped) -
IYU1
packed 4:1:1 YUV (Cb-Y0-Y1-Cr-Y2-Y3 ...) -
ARGB64
rgb with alpha channel first, 16 bits (native endianness) per channel -
AYUV64
packed 4:4:4 YUV with alpha channel, 16 bits (native endianness) per channel (A0-Y0-U0-V0 ...) -
R210
packed 4:4:4 RGB, 10 bits per channel -
I420_10BE
planar 4:2:0 YUV, 10 bits per channel -
I420_10LE
planar 4:2:0 YUV, 10 bits per channel -
I422_10BE
planar 4:2:2 YUV, 10 bits per channel -
I422_10LE
planar 4:2:2 YUV, 10 bits per channel -
Y444_10BE
planar 4:4:4 YUV, 10 bits per channel (Since: 1.2) -
Y444_10LE
planar 4:4:4 YUV, 10 bits per channel (Since: 1.2) -
GBR
planar 4:4:4 RGB, 8 bits per channel (Since: 1.2) -
GBR_10BE
planar 4:4:4 RGB, 10 bits per channel (Since: 1.2) -
GBR_10LE
planar 4:4:4 RGB, 10 bits per channel (Since: 1.2) -
NV16
planar 4:2:2 YUV with interleaved UV plane (Since: 1.2) -
NV24
planar 4:4:4 YUV with interleaved UV plane (Since: 1.2) -
NV12_64Z32
NV12 with 64x32 tiling in zigzag pattern (Since: 1.4) -
A420_10BE
planar 4:4:2:0 YUV, 10 bits per channel (Since: 1.6) -
A420_10LE
planar 4:4:2:0 YUV, 10 bits per channel (Since: 1.6) -
A422_10BE
planar 4:4:2:2 YUV, 10 bits per channel (Since: 1.6) -
A422_10LE
planar 4:4:2:2 YUV, 10 bits per channel (Since: 1.6) -
A444_10BE
planar 4:4:4:4 YUV, 10 bits per channel (Since: 1.6) -
A444_10LE
planar 4:4:4:4 YUV, 10 bits per channel (Since: 1.6) -
NV61
planar 4:2:2 YUV with interleaved VU plane (Since: 1.6) -
P010_10BE
planar 4:2:0 YUV with interleaved UV plane, 10 bits per channel (Since: 1.10) -
P010_10LE
planar 4:2:0 YUV with interleaved UV plane, 10 bits per channel (Since: 1.10) -
IYU2
packed 4:4:4 YUV (U-Y-V ...) (Since: 1.10) -
VYUY
packed 4:2:2 YUV (V0-Y0-U0-Y1 V2-Y2-U2-Y3 V4 ...) -
GBRA
planar 4:4:4:4 ARGB, 8 bits per channel (Since: 1.12) -
GBRA_10BE
planar 4:4:4:4 ARGB, 10 bits per channel (Since: 1.12) -
GBRA_10LE
planar 4:4:4:4 ARGB, 10 bits per channel (Since: 1.12) -
GBR_12BE
planar 4:4:4 RGB, 12 bits per channel (Since: 1.12) -
GBR_12LE
planar 4:4:4 RGB, 12 bits per channel (Since: 1.12) -
GBRA_12BE
planar 4:4:4:4 ARGB, 12 bits per channel (Since: 1.12) -
GBRA_12LE
planar 4:4:4:4 ARGB, 12 bits per channel (Since: 1.12) -
I420_12BE
planar 4:2:0 YUV, 12 bits per channel (Since: 1.12) -
I420_12LE
planar 4:2:0 YUV, 12 bits per channel (Since: 1.12) -
I422_12BE
planar 4:2:2 YUV, 12 bits per channel (Since: 1.12) -
I422_12LE
planar 4:2:2 YUV, 12 bits per channel (Since: 1.12) -
Y444_12BE
planar 4:4:4 YUV, 12 bits per channel (Since: 1.12) -
Y444_12LE
planar 4:4:4 YUV, 12 bits per channel (Since: 1.12) -
GRAY10_LE32
10-bit grayscale, packed into 32bit words (2 bits padding) (Since: 1.14) -
NV12_10LE32
10-bit variant ofGSTVIDEOFORMATNV12
, packed into 32bit words (MSB 2 bits padding) (Since: 1.14) -
NV16_10LE32
10-bit variant ofGSTVIDEOFORMATNV16
, packed into 32bit words (MSB 2 bits padding) (Since: 1.14) -
NV12_10LE40
Fully packed variant of NV12_10LE32 (Since: 1.16) -
Y210
packed 4:2:2 YUV, 10 bits per channel (Since: 1.16) -
Y410
packed 4:4:4 YUV, 10 bits per channel(A-V-Y-U...) (Since: 1.16) -
VUYA
packed 4:4:4 YUV with alpha channel (V0-U0-Y0-A0...) (Since: 1.16) -
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
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
planar 4:4:4 YUV, 16 bits per channel (Since: 1.18) -
Y444_16LE
planar 4:4:4 YUV, 16 bits per channel (Since: 1.18) -
P016_BE
planar 4:2:0 YUV with interleaved UV plane, 16 bits per channel (Since: 1.18) -
P016_LE
planar 4:2:0 YUV with interleaved UV plane, 16 bits per channel (Since: 1.18) -
P012_BE
planar 4:2:0 YUV with interleaved UV plane, 12 bits per channel (Since: 1.18) -
P012_LE
planar 4:2:0 YUV with interleaved UV plane, 12 bits per channel (Since: 1.18) -
Y212_BE
packed 4:2:2 YUV, 12 bits per channel (Y-U-Y-V) (Since: 1.18) -
Y212_LE
packed 4:2:2 YUV, 12 bits per channel (Y-U-Y-V) (Since: 1.18) -
Y412_BE
packed 4:4:4:4 YUV, 12 bits per channel(U-Y-V-A...) (Since: 1.18) -
Y412_LE
packed 4:4:4:4 YUV, 12 bits per channel(U-Y-V-A...) (Since: 1.18) -
NV12_4L4
NV12 with 4x4 tiles in linear order. -
NV12_32L32
NV12 with 32x32 tiles in linear order. -
RGBP
Planar 4:4:4 RGB, R-G-B order -
BGRP
Planar 4:4:4 RGB, B-G-R order -
AV12
Planar 4:2:0 YUV with interleaved UV plane with alpha as 3rd plane. -
ARGB64_LE
RGB with alpha channel first, 16 bits (little endian) per channel. -
ARGB64_BE
RGB with alpha channel first, 16 bits (big endian) per channel. -
RGBA64_LE
RGB with alpha channel last, 16 bits (little endian) per channel. -
RGBA64_BE
RGB with alpha channel last, 16 bits (big endian) per channel. -
BGRA64_LE
Reverse RGB with alpha channel last, 16 bits (little endian) per channel. -
BGRA64_BE
Reverse RGB with alpha channel last, 16 bits (big endian) per channel. -
ABGR64_LE
Reverse RGB with alpha channel first, 16 bits (little endian) per channel. -
ABGR64_BE
Reverse RGB with alpha channel first, 16 bits (big endian) per channel. -
NV12_16L32S
NV12 with 16x32 Y tiles and 16x16 UV tiles. -
NV12_8L128
NV12 with 8x128 tiles in linear order. -
NV12_10BE_8L128
NV12 10bit big endian with 8x128 tiles in linear order. -
NV12_10LE40_4L4
GSTVIDEOFORMATNV1210LE40
with 4x4 pixels tiles (5 bytes per tile row). This format is produced by Verisilicon/Hantro decoders. -
DMA_DRM
GSTVIDEOFORMATDMADRM
represent the DMA DRM special format. It's only used with memory:DMABufGstCapsFeatures
, where an extra parameter (drm-format) is required to define the image format and its memory layout. -
MT2110T
Mediatek 10bit NV12 little endian with 16x32 tiles in linear order, tile 2 bits. -
MT2110R
Mediatek 10bit NV12 little endian with 16x32 tiles in linear order, raster 2 bits. -
A422
planar 4:4:2:2 YUV, 8 bits per channel -
A444
planar 4:4:4:4 YUV, 8 bits per channel -
A444_12LE
planar 4:4:4:4 YUV, 12 bits per channel -
A444_12BE
planar 4:4:4:4 YUV, 12 bits per channel -
A422_12LE
planar 4:4:2:2 YUV, 12 bits per channel -
A422_12BE
planar 4:4:2:2 YUV, 12 bits per channel -
A420_12LE
planar 4:4:2:0 YUV, 12 bits per channel -
A420_12BE
planar 4:4:2:0 YUV, 12 bits per channel -
A444_16LE
planar 4:4:4:4 YUV, 16 bits per channel -
A444_16BE
planar 4:4:4:4 YUV, 16 bits per channel -
A422_16LE
planar 4:4:2:2 YUV, 16 bits per channel -
A422_16BE
planar 4:4:2:2 YUV, 16 bits per channel -
A420_16LE
planar 4:4:2:0 YUV, 16 bits per channel -
A420_16BE
planar 4:4:2:0 YUV, 16 bits per channel -
GBR_16LE
planar 4:4:4 RGB, 16 bits per channel -
GBR_16BE
planar 4:4:4 RGB, 16 bits per channel -
RBGA
packed RGB with alpha, 8 bits per channel
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
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 interfaceEnumeration
- Returns:
- the enum value
-
getType
-
fromFourcc
Converts a FOURCC value into the correspondingGstVideoFormat
. If the FOURCC cannot be represented byGstVideoFormat
,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 theGstVideoFormat
for the given parameters.- Parameters:
depth
- the amount of bits used for a pixelbpp
- the amount of bits used to store a pixel. This value is bigger thandepth
endianness
- the endianness of the masks,G_LITTLE_ENDIAN
orG_BIG_ENDIAN
redMask
- the red maskgreenMask
- the green maskblueMask
- the blue maskalphaMask
- 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
Convert theformat
string to itsGstVideoFormat
.- Parameters:
format
- a format string- Returns:
- the
GstVideoFormat
forformat
or GST_VIDEO_FORMAT_UNKNOWN when the string is not a known format.
-
getInfo
Get theGstVideoFormatInfo
for this VideoFormat- Returns:
- The
GstVideoFormatInfo
for this VideoFormat.
-
getPalette
Get the default palette of this VideoFormat. 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.
-
toFourcc
public int toFourcc()Converts aGstVideoFormat
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
Returns a string containing a descriptive name for theGstVideoFormat
if there is one, or NULL otherwise.- Overrides:
toString
in classEnum<VideoFormat>
- Returns:
- the name corresponding to this VideoFormat
-