Package org.freedesktop.gstreamer.video
Enum Class VideoInterlaceMode
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<VideoInterlaceMode>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum VideoInterlaceMode
extends Enum<VideoInterlaceMode>
implements Enumeration
The possible values of the
GstVideoInterlaceMode
describing the interlace
mode of the stream.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription1 field is stored in one buffer,GSTVIDEOBUFFERFLAGTF
orGSTVIDEOBUFFERFLAGBF
indicates if the buffer is carrying the top or bottom field, respectively.2 fields are stored in one buffer, use the frame ID to get access to the required field.2 fields are interleaved in one video frame.frames contains both interlaced and progressive video, the buffer flags describe the frame and fields.all frames are progressive -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoInterlaceMode
fromString
(String mode) Convertmode
to aGstVideoInterlaceMode
static Type
getType()
Get the GType of the VideoInterlaceMode classint
getValue()
Get the numeric value of this enumstatic VideoInterlaceMode
of
(int value) Create a new VideoInterlaceMode for the provided valuetoString()
Convert this VideoInterlaceMode to its string representation.static VideoInterlaceMode
Returns the enum constant of this class with the specified name.static VideoInterlaceMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROGRESSIVE
all frames are progressive -
INTERLEAVED
2 fields are interleaved in one video frame. Extra buffer flags describe the field order. -
MIXED
frames contains both interlaced and progressive video, the buffer flags describe the frame and fields. -
FIELDS
2 fields are stored in one buffer, use the frame ID to get access to the required field. For multiview (the 'views' property > 1) the fields of view N can be found at frame ID (N * 2) and (N * 2) + 1. Each field has only half the amount of lines as noted in the height property. This mode requires multiple GstVideoMeta metadata to describe the fields. -
ALTERNATE
1 field is stored in one buffer,GSTVIDEOBUFFERFLAGTF
orGSTVIDEOBUFFERFLAGBF
indicates if the buffer is carrying the top or bottom field, respectively. The top and bottom buffers must alternate in the pipeline, with this mode (Since: 1.16).
-
-
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 VideoInterlaceMode 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
-
fromString
Convertmode
to aGstVideoInterlaceMode
- Parameters:
mode
- a mode- Returns:
- the
GstVideoInterlaceMode
ofmode
orGST_VIDEO_INTERLACE_MODE_PROGRESSIVE
whenmode
is not a valid string representation for aGstVideoInterlaceMode
.
-
toString
Convert this VideoInterlaceMode to its string representation.- Overrides:
toString
in classEnum<VideoInterlaceMode>
- Returns:
- this VideoInterlaceMode as a string.
-