Enum Class BufferCopyFlags

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

@Generated("org.javagi.JavaGI") public enum BufferCopyFlags extends Enum<BufferCopyFlags> implements Enumeration
A set of flags that can be provided to the gst_buffer_copy_into() function to specify which items should be copied.
  • Enum Constant Details

    • NONE

      public static final BufferCopyFlags NONE
      copy nothing
    • FLAGS

      public static final BufferCopyFlags FLAGS
      flag indicating that buffer flags should be copied
    • TIMESTAMPS

      public static final BufferCopyFlags TIMESTAMPS
      flag indicating that buffer pts, dts, duration, offset and offset_end should be copied
    • META

      public static final BufferCopyFlags META
      flag indicating that buffer meta should be copied
    • MEMORY

      public static final BufferCopyFlags MEMORY
      flag indicating that buffer memory should be reffed and appended to already existing memory. Unless the memory is marked as NO_SHARE, no actual copy of the memory is made but it is simply reffed. Add GSTBUFFERCOPYDEEP to force a real copy.
    • MERGE

      public static final BufferCopyFlags MERGE
      flag indicating that buffer memory should be merged
    • DEEP

      public static final BufferCopyFlags DEEP
      flag indicating that memory should always be copied instead of reffed
      Since:
      1.2
  • Method Details

    • values

      public static BufferCopyFlags[] 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 BufferCopyFlags 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<BufferCopyFlags> of(int flags)
      Create a new EnumSet<BufferCopyFlags> for the provided bitfield
      Parameters:
      flags - the BufferCopyFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<BufferCopyFlags> of(MemorySegment address)
      Create a new EnumSet<BufferCopyFlags> 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 BufferCopyFlags class.
      Returns:
      the GType