Package org.freedesktop.gstreamer.video
Enum Class VideoCaptionType
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<VideoCaptionType>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum VideoCaptionType
extends Enum<VideoCaptionType>
implements Enumeration
The various known types of Closed Caption (CC).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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 VideoCaptionType
Parses fixed Closed CaptionGstCaps
and returns the corresponding caption type, orUNKNOWN
.static Type
getType()
Get the GType of the VideoCaptionType classint
getValue()
Get the numeric value of this enumstatic VideoCaptionType
of
(int value) Create a new VideoCaptionType for the provided valuetoCaps()
Creates new caps corresponding to this VideoCaptionType.static VideoCaptionType
Returns 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). UseGSTVIDEOCAPTIONTYPECEA708RAW
if 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:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-
fromCaps
Parses fixed Closed CaptionGstCaps
and returns the corresponding caption type, orUNKNOWN
.- Parameters:
caps
- FixedGstCaps
to parse- Returns:
GstVideoCaptionType
.
-
toCaps
-