Package org.freedesktop.gstreamer.video
Enum Class VideoCaptionType
- All Implemented Interfaces:
Serializable,Comparable<VideoCaptionType>,Constable,Enumeration
@Generated("io.github.jwharm.JavaGI")
public enum VideoCaptionType
extends Enum<VideoCaptionType>
implements Enumeration
The various known types of Closed Caption (CC).
- Since:
- 1.16
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCEA-608 as byte pairs.CEA-608 as byte triplets as defined in SMPTE S334-1 Annex A.CEA-708 (and optionally CEA-608) in a CDP (Caption Distribution Packet) defined by SMPTE S-334-2.CEA-708 as cc_data byte triplets.Unknown type of CC -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoCaptionTypeParses fixed Closed CaptionGstCapsand returns the corresponding caption type, orUNKNOWN.static @Nullable TypegetType()Get the GType of the VideoCaptionType classintgetValue()Get the numeric value of this enumstatic VideoCaptionTypeof(int value) Create a new VideoCaptionType for the provided valuestatic VideoCaptionTypeof(MemorySegment address) Create a new VideoCaptionType for the value in the provided memory address.toCaps()Creates new caps corresponding totype.static VideoCaptionTypeReturns the enum constant of this class with the specified name.static VideoCaptionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown type of CC -
CEA608_RAW
CEA-608 as byte pairs. Note that this format is not recommended since is does not specify to which field the caption comes from and therefore assumes it comes from the first field (and that there is no information on the second field). UseGSTVIDEOCAPTIONTYPECEA708RAWif you wish to store CEA-608 from two fields and prefix each byte pair with 0xFC for the first field and 0xFD for the second field. -
CEA608_S334_1A
CEA-608 as byte triplets as defined in SMPTE S334-1 Annex A. The second and third byte of the byte triplet is the raw CEA608 data, the first byte is a bitfield: The top/7th bit is 0 for the second field, 1 for the first field, bit 6 and 5 are 0 and bits 4 to 0 are a 5 bit unsigned integer that represents the line offset relative to the base-line of the original image format (line 9 for 525-line field 1, line 272 for 525-line field 2, line 5 for 625-line field 1 and line 318 for 625-line field 2). -
CEA708_RAW
CEA-708 as cc_data byte triplets. They can also contain 608-in-708 and the first byte of each triplet has to be inspected for detecting the type. -
CEA708_CDP
CEA-708 (and optionally CEA-608) in a CDP (Caption Distribution Packet) defined by SMPTE S-334-2. Contains the whole CDP (starting with 0x9669).
-
-
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 VideoCaptionType 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 VideoCaptionType 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 VideoCaptionType class- Returns:
- the GType
-
fromCaps
Parses fixed Closed CaptionGstCapsand returns the corresponding caption type, orUNKNOWN.- Parameters:
caps- FixedGstCapsto parse- Returns:
GstVideoCaptionType.- Since:
- 1.16
-
toCaps
-