Enum Class VideoPackFlags

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

@Generated("org.javagi.JavaGI") public enum VideoPackFlags extends Enum<VideoPackFlags> implements Enumeration
The different flags that can be used when packing and unpacking.
  • Enum Constant Details

    • NONE

      public static final VideoPackFlags NONE
      No flag
    • TRUNCATE_RANGE

      public static final VideoPackFlags TRUNCATE_RANGE
      When the source has a smaller depth than the target format, set the least significant bits of the target to 0. This is likely slightly faster but less accurate. When this flag is not specified, the most significant bits of the source are duplicated in the least significant bits of the destination.
    • INTERLACED

      public static final VideoPackFlags INTERLACED
      The source is interlaced. The unpacked format will be interlaced as well with each line containing information from alternating fields. (Since: 1.2)
  • Method Details

    • values

      public static VideoPackFlags[] 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 VideoPackFlags 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
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<VideoPackFlags> of(int flags)
      Create a new EnumSet<VideoPackFlags> for the provided bitfield
      Parameters:
      flags - the VideoPackFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<VideoPackFlags> of(MemorySegment address)
      Create a new EnumSet<VideoPackFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address
    • getType

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