Enum Class DsdFormat

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

@Generated("org.javagi.JavaGI") public enum DsdFormat extends Enum<DsdFormat> implements Enumeration
Enum value describing how DSD bits are grouped.
Since:
1.24
  • Enum Constant Details

    • DSD_FORMAT_UNKNOWN

      public static final DsdFormat DSD_FORMAT_UNKNOWN
      unknown / invalid DSD format
    • DSD_FORMAT_U8

      public static final DsdFormat DSD_FORMAT_U8
      8 DSD bits in 1 byte
    • DSD_FORMAT_U16LE

      public static final DsdFormat DSD_FORMAT_U16LE
      16 DSD bits in 2 bytes, little endian order
    • DSD_FORMAT_U16BE

      public static final DsdFormat DSD_FORMAT_U16BE
      16 DSD bits in 2 bytes, big endian order
    • DSD_FORMAT_U32LE

      public static final DsdFormat DSD_FORMAT_U32LE
      32 DSD bits in 4 bytes, little endian order
    • DSD_FORMAT_U32BE

      public static final DsdFormat DSD_FORMAT_U32BE
      32 DSD bits in 4 bytes, big endian order
    • NUM_DSD_FORMATS

      public static final DsdFormat NUM_DSD_FORMATS
      number of valid DSD formats
  • Field Details

    • DSD_FORMAT_U16

      public static final DsdFormat DSD_FORMAT_U16
      16 DSD bits in 2 bytes, native endianness
    • DSD_FORMAT_U32

      public static final DsdFormat DSD_FORMAT_U32
      32 DSD bits in 4 bytes, native endianness
  • Method Details

    • values

      public static DsdFormat[] 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 DsdFormat 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 DsdFormat of(int value)
      Create a new DsdFormat 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 DsdFormat of(MemorySegment address)
      Create a new DsdFormat 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 DsdFormat class.
      Returns:
      the GType
    • fromString

      public static DsdFormat fromString(String str)
      Convert the DSD format string str to its GstDsdFormat.
      Parameters:
      str - a DSD format string
      Returns:
      the GstDsdFormat for format or GST_DSD_FORMAT_UNKNOWN when the string is not a known format.
      Since:
      1.24
    • getWidth

      public int getWidth()
    • toString

      public String toString()
      Returns a string containing a descriptive name for the GstDsdFormat if there is one, or NULL otherwise.
      Overrides:
      toString in class Enum<DsdFormat>
      Returns:
      the name corresponding to this DsdFormat
      Since:
      1.24