Package org.freedesktop.gstreamer.video
Enum Class VideoColorPrimaries
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<VideoColorPrimaries>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum VideoColorPrimaries
extends Enum<VideoColorPrimaries>
implements Enumeration
The color primaries define the how to transform linear RGB values to and from
the CIE XYZ colorspace.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAdobe RGB primaries.ITU-R BT2020 primaries.BT470BG primaries, also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAMBT470M primaries, also FCC Title 47 Code of Federal Regulations 73.682 (a)(20)BT709 primaries, also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex BEBU 3213 primaries (JEDEC P22 phosphors).Generic film (colour filters using Illuminant C)SMPTE170M primaries, also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSCSMPTE240M primariesSMPTE EG 432 primaries (ST 432-1 (2010) / P3 D65).SMPTE RP 431 primaries (ST 431-2 (2011) / DCI P3).SMPTE ST 428 primaries (CIE 1931 XYZ).unknown color primaries -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoColorPrimaries
fromIso
(int value) Converts thevalue
to theGstVideoColorPrimaries
The colour primaries (ColourPrimaries) value is defined by "ISO/IEC 23001-8 Section 7.1 Table 2" and "ITU-T H.273 Table 2".getInfo()
Get information about the chromaticity coordinates of this VideoColorPrimaries.static Type
getType()
Get the GType of the VideoColorPrimaries classint
getValue()
Get the numeric value of this enumboolean
isEquivalent
(VideoColorPrimaries other) Checks whether this VideoColorPrimaries andother
are functionally equivalentstatic VideoColorPrimaries
of
(int value) Create a new VideoColorPrimaries for the provided valueint
toIso()
ConvertsGstVideoColorPrimaries
to the "colour primaries" (ColourPrimaries) value defined by "ISO/IEC 23001-8 Section 7.1 Table 2" and "ITU-T H.273 Table 2".static VideoColorPrimaries
Returns the enum constant of this class with the specified name.static VideoColorPrimaries[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
unknown color primaries -
BT709
BT709 primaries, also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex B -
BT470M
BT470M primaries, also FCC Title 47 Code of Federal Regulations 73.682 (a)(20) -
BT470BG
BT470BG primaries, also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM -
SMPTE170M
SMPTE170M primaries, also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC -
SMPTE240M
SMPTE240M primaries -
FILM
Generic film (colour filters using Illuminant C) -
BT2020
ITU-R BT2020 primaries. Since: 1.6 -
ADOBERGB
Adobe RGB primaries. Since: 1.8 -
SMPTEST428
SMPTE ST 428 primaries (CIE 1931 XYZ). Since: 1.16 -
SMPTERP431
SMPTE RP 431 primaries (ST 431-2 (2011) / DCI P3). Since: 1.16 -
SMPTEEG432
SMPTE EG 432 primaries (ST 432-1 (2010) / P3 D65). Since: 1.16 -
EBU3213
EBU 3213 primaries (JEDEC P22 phosphors). 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 VideoColorPrimaries 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
-
fromIso
Converts thevalue
to theGstVideoColorPrimaries
The colour primaries (ColourPrimaries) value is defined by "ISO/IEC 23001-8 Section 7.1 Table 2" and "ITU-T H.273 Table 2". "H.264 Table E-3" and "H.265 Table E.3" share the identical values.- Parameters:
value
- a ITU-T H.273 colour primaries value- Returns:
- the matched
GstVideoColorPrimaries
-
getInfo
Get information about the chromaticity coordinates of this VideoColorPrimaries.- Returns:
- a
GstVideoColorPrimariesInfo
for this VideoColorPrimaries.
-
isEquivalent
Checks whether this VideoColorPrimaries andother
are functionally equivalent- Parameters:
other
- anotherGstVideoColorPrimaries
- Returns:
- TRUE if this VideoColorPrimaries and
other
can be considered equivalent.
-
toIso
public int toIso()ConvertsGstVideoColorPrimaries
to the "colour primaries" (ColourPrimaries) value defined by "ISO/IEC 23001-8 Section 7.1 Table 2" and "ITU-T H.273 Table 2". "H.264 Table E-3" and "H.265 Table E.3" share the identical values.- Returns:
- The value of ISO/IEC 23001-8 colour primaries.
-