Class EncodingContainerProfile

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class EncodingContainerProfile extends EncodingProfile
Encoding profiles for containers. Keeps track of a list of GstEncodingProfile
  • Constructor Details

    • EncodingContainerProfile

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

      public EncodingContainerProfile(@Nullable String name, @Nullable String description, Caps format, @Nullable String preset)
      Creates a new GstEncodingContainerProfile.
      Parameters:
      name - The name of the container profile, can be null
      description - The description of the container profile, can be null
      format - The format to use for this profile
      preset - The preset to use for this profile.
    • EncodingContainerProfile

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

    • getType

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

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

      protected EncodingContainerProfile 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
    • addProfile

      public boolean addProfile(EncodingProfile profile)

      Add a GstEncodingProfile to the list of profiles handled by container.

      No copy of profile will be made, if you wish to use it elsewhere after this method you should increment its reference count.

      Parameters:
      profile - the GstEncodingProfile to add.
      Returns:
      true if the stream was properly added, else false.
    • containsProfile

      public boolean containsProfile(EncodingProfile profile)
      Checks if this EncodingContainerProfile contains a GstEncodingProfile identical to profile.
      Parameters:
      profile - a GstEncodingProfile
      Returns:
      true if this EncodingContainerProfile contains a GstEncodingProfile identical to profile, else false.
    • getProfiles

      public List<EncodingProfile> getProfiles()
    • builder

      A EncodingContainerProfile.Builder object constructs a EncodingContainerProfile with the specified properties. Use the various set...() methods to set properties, and finish construction with EncodingContainerProfile.Builder.build().
      Returns:
      the builder object