Package org.freedesktop.gstreamer.video
Enum Class VideoInterlaceMode
- All Implemented Interfaces:
Serializable,Comparable<VideoInterlaceMode>,Constable,Enumeration
@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 ConstantsEnum ConstantDescription1 field is stored in one buffer,GSTVIDEOBUFFERFLAGTForGSTVIDEOBUFFERFLAGBFindicates 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 VideoInterlaceModefromString(String mode) Convertmodeto aGstVideoInterlaceModestatic @Nullable TypegetType()Get the GType of the VideoInterlaceMode classintgetValue()Get the numeric value of this enumstatic VideoInterlaceModeof(int value) Create a new VideoInterlaceMode for the provided valuestatic VideoInterlaceModeof(MemorySegment address) Create a new VideoInterlaceMode for the value in the provided memory address.toString()Convert this VideoInterlaceMode to its string representation.static VideoInterlaceModeReturns 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,GSTVIDEOBUFFERFLAGTForGSTVIDEOBUFFERFLAGBFindicates 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:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
Create a new VideoInterlaceMode 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
Get the GType of the VideoInterlaceMode class- Returns:
- the GType
-
fromString
Convertmodeto aGstVideoInterlaceMode- Parameters:
mode- a mode- Returns:
- the
GstVideoInterlaceModeofmodeorGST_VIDEO_INTERLACE_MODE_PROGRESSIVEwhenmodeis not a valid string representation for aGstVideoInterlaceMode. - Since:
- 1.6
-
toString
Convert this VideoInterlaceMode to its string representation.- Overrides:
toStringin classEnum<VideoInterlaceMode>- Returns:
- this VideoInterlaceMode as a string.
- Since:
- 1.6
-