Class EncodingAudioProfile

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class EncodingAudioProfile extends EncodingProfile
Variant of GstEncodingProfile for audio streams.
  • Constructor Details

    • EncodingAudioProfile

      public EncodingAudioProfile(MemorySegment address)
      Create a EncodingAudioProfile instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • EncodingAudioProfile

      public EncodingAudioProfile(Caps format, @Nullable String preset, @Nullable Caps restriction, int presence)

      Creates a new GstEncodingAudioProfile

      All provided allocatable arguments will be internally copied, so can be safely freed/unreferenced after calling this method.

      Parameters:
      format - the GstCaps
      preset - the preset(s) to use on the encoder, can be null
      restriction - the GstCaps used to restrict the input to the encoder, can be NULL. See gst_encoding_profile_get_restriction() for more details.
      presence - the number of time this stream must be used. 0 means any number of times (including never)
    • EncodingAudioProfile

      public EncodingAudioProfile()
      Create a new EncodingAudioProfile.
  • Method Details

    • getType

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

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected EncodingAudioProfile asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class EncodingProfile
      Returns:
      the instance as if it were its parent type
    • builder

      public static EncodingAudioProfile.Builder<? extends EncodingAudioProfile.Builder> builder()
      A EncodingAudioProfile.Builder object constructs a EncodingAudioProfile with the specified properties. Use the various set...() methods to set properties, and finish construction with EncodingAudioProfile.Builder.build().
      Returns:
      the builder object