Klasse Sample

Alle implementierten Schnittstellen:
PointerInterface

public class Sample extends Record
A #GstSample is a small object containing data, a type, timing and
extra arbitrary information.

https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html

  • Konstruktordetails

    • Sample

      public Sample(PointerContainer pointer)
    • Sample

      public Sample(@Nullable Buffer buffer, @Nullable Caps caps, @Nullable Segment segment, @Nullable Structure info)
      Create a new #GstSample with the provided details.

      Free-function: gst_sample_unref
      Parameter:
      buffer - a #GstBuffer, or %NULL
      caps - a #GstCaps, or %NULL
      segment - a #GstSegment, or %NULL
      info - a #GstStructure, or %NULL
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getBuffer

      public Buffer getBuffer()
      Get the buffer associated with @sample
      Gibt zurück:
      the buffer of @sample or %NULL when there is no buffer. The buffer remains valid as long as @sample is valid. If you need to hold on to it for longer than that, take a ref to the buffer with gst_buffer_ref().
    • getBufferList

      public BufferList getBufferList()
      Get the buffer list associated with @sample
      Gibt zurück:
      the buffer list of @sample or %NULL when there is no buffer list. The buffer list remains valid as long as @sample is valid. If you need to hold on to it for longer than that, take a ref to the buffer list with gst_mini_object_ref ().
    • getCaps

      public Caps getCaps()
      Get the caps associated with @sample
      Gibt zurück:
      the caps of @sample or %NULL when there is no caps. The caps remain valid as long as @sample is valid. If you need to hold on to the caps for longer than that, take a ref to the caps with gst_caps_ref().
    • getInfo

      public Structure getInfo()
      Get extra information associated with @sample.
      Gibt zurück:
      the extra info of @sample. The info remains valid as long as @sample is valid.
    • getSegment

      public Segment getSegment()
      Get the segment associated with @sample
      Gibt zurück:
      the segment of @sample. The segment remains valid as long as @sample is valid.
    • setBuffer

      public void setBuffer(@Nonnull Buffer buffer)
      Set the buffer associated with @sample. @sample must be writable.
      Parameter:
      buffer - A #GstBuffer
    • setBufferList

      public void setBufferList(@Nonnull BufferList buffer_list)
      Set the buffer list associated with @sample. @sample must be writable.
      Parameter:
      buffer_list - a #GstBufferList
    • setCaps

      public void setCaps(@Nonnull Caps caps)
      Set the caps associated with @sample. @sample must be writable.
      Parameter:
      caps - A #GstCaps
    • setInfo

      public boolean setInfo(@Nonnull Structure info)
      Set the info structure associated with @sample. @sample must be writable,
      and @info must not have a parent set already.
      Parameter:
      info - A #GstStructure
      Gibt zurück:
    • setSegment

      public void setSegment(@Nonnull Segment segment)
      Set the segment associated with @sample. @sample must be writable.
      Parameter:
      segment - A #GstSegment
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()