Enum Class VideoColorPrimaries

java.lang.Object
java.lang.Enum<VideoColorPrimaries>
org.freedesktop.gstreamer.video.VideoColorPrimaries
All Implemented Interfaces:
Serializable, Comparable<VideoColorPrimaries>, Constable, Enumeration

@Generated("org.javagi.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 Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Adobe RGB primaries.
    ITU-R BT2020 primaries.
    BT470BG primaries, also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM
    BT470M 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 B
    EBU 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 NTSC
    SMPTE240M primaries
    SMPTE 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 Type
    Method
    Description
    fromIso(int value)
    Converts the value to the GstVideoColorPrimaries The colour primaries (ColourPrimaries) value is defined by "ISO/IEC 23001-8 Section 7.1 Table 2" and "ITU-T H.273 Table 2".
    Get information about the chromaticity coordinates of primaries.
    static @Nullable Type
    Get the GType of the VideoColorPrimaries class.
    int
    Get the numeric value of this enum
    boolean
    Checks whether this VideoColorPrimaries and other are functionally equivalent
    of(int value)
    Create a new VideoColorPrimaries for the provided value
    of(MemorySegment address)
    Create a new VideoColorPrimaries for the value in the provided memory address.
    int
    Converts GstVideoColorPrimaries to the "colour primaries" (ColourPrimaries) value defined by "ISO/IEC 23001-8 Section 7.1 Table 2" and "ITU-T H.273 Table 2".
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • UNKNOWN

      public static final VideoColorPrimaries UNKNOWN
      unknown color primaries
    • BT709

      public static final VideoColorPrimaries BT709
      BT709 primaries, also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex B
    • BT470M

      public static final VideoColorPrimaries BT470M
      BT470M primaries, also FCC Title 47 Code of Federal Regulations 73.682 (a)(20)
    • BT470BG

      public static final VideoColorPrimaries BT470BG
      BT470BG primaries, also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM
    • SMPTE170M

      public static final VideoColorPrimaries SMPTE170M
      SMPTE170M primaries, also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC
    • SMPTE240M

      public static final VideoColorPrimaries SMPTE240M
      SMPTE240M primaries
    • FILM

      public static final VideoColorPrimaries FILM
      Generic film (colour filters using Illuminant C)
    • BT2020

      public static final VideoColorPrimaries BT2020
      ITU-R BT2020 primaries. Since: 1.6
    • ADOBERGB

      public static final VideoColorPrimaries ADOBERGB
      Adobe RGB primaries. Since: 1.8
    • SMPTEST428

      public static final VideoColorPrimaries SMPTEST428
      SMPTE ST 428 primaries (CIE 1931 XYZ). Since: 1.16
    • SMPTERP431

      public static final VideoColorPrimaries SMPTERP431
      SMPTE RP 431 primaries (ST 431-2 (2011) / DCI P3). Since: 1.16
    • SMPTEEG432

      public static final VideoColorPrimaries SMPTEEG432
      SMPTE EG 432 primaries (ST 432-1 (2010) / P3 D65). Since: 1.16
    • EBU3213

      public static final VideoColorPrimaries EBU3213
      EBU 3213 primaries (JEDEC P22 phosphors). Since: 1.16
  • Method Details

    • values

      public static VideoColorPrimaries[] 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

      public static VideoColorPrimaries valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • of

      public static VideoColorPrimaries of(int value)
      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 interface Enumeration
      Returns:
      the enum value
    • of

      public static VideoColorPrimaries of(MemorySegment address)
      Create a new VideoColorPrimaries 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

      public static @Nullable Type getType()
      Get the GType of the VideoColorPrimaries class.
      Returns:
      the GType
    • fromIso

      public static VideoColorPrimaries fromIso(int value)
      Converts the value to the GstVideoColorPrimaries 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
      Since:
      1.18
    • getInfo

      public VideoColorPrimariesInfo getInfo()
      Get information about the chromaticity coordinates of primaries.
      Returns:
      a GstVideoColorPrimariesInfo for primaries.
      Since:
      1.6
    • isEquivalent

      public boolean isEquivalent(VideoColorPrimaries other)
      Checks whether this VideoColorPrimaries and other are functionally equivalent
      Parameters:
      other - another GstVideoColorPrimaries
      Returns:
      TRUE if this VideoColorPrimaries and other can be considered equivalent.
      Since:
      1.22
    • toIso

      public int toIso()
      Converts GstVideoColorPrimaries 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.
      Since:
      1.18