Klasse Stream

Alle implementierten Schnittstellen:
PointerInterface

public class Stream extends PropertyHolder
A high-level object representing a single stream. It might be backed, or
not, by an actual flow of data in a pipeline (#GstPad).

A #GstStream does not care about data changes (such as decoding, encoding,
parsing,...) as long as the underlying data flow corresponds to the same
high-level flow (ex: a certain audio track).

A #GstStream contains all the information pertinent to a stream, such as
stream-id, tags, caps, type, ...

Elements can subclass a #GstStream for internal usage (to contain information
pertinent to streams of data).

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

  • Konstruktordetails

    • Stream

      public Stream(PointerContainer pointer)
    • Stream

      public Stream(@Nullable Str stream_id, @Nullable Caps caps, int type, int flags)
      Create a new #GstStream for the given @stream_id, @caps, @type
      and @flags
      Parameter:
      stream_id - the id for the new stream. If %NULL, a new one will be automatically generated
      caps - the #GstCaps of the stream
      type - the #GstStreamType of the stream
      flags - the #GstStreamFlags of the stream
    • Stream

      public Stream(String stream_id, @Nullable Caps caps, int type, int flags)
      Create a new #GstStream for the given @stream_id, @caps, @type
      and @flags
      Parameter:
      stream_id - the id for the new stream. If %NULL, a new one will be automatically generated
      caps - the #GstCaps of the stream
      type - the #GstStreamType of the stream
      flags - the #GstStreamFlags of the stream
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getCaps

      public Caps getCaps()
      Retrieve the caps for @stream, if any
      Gibt zurück:
      The #GstCaps for @stream
    • getStreamFlags

      public int getStreamFlags()
      Retrieve the current stream flags for @stream
      Gibt zurück:
      The #GstStreamFlags for @stream
    • getStreamId

      public Str getStreamId()
      Returns the stream ID of @stream.
      Gibt zurück:
      the stream ID of @stream. Only valid during the lifetime of @stream.
    • getStreamType

      public int getStreamType()
      Retrieve the stream type for @stream
      Gibt zurück:
      The #GstStreamType for @stream
    • getTags

      public TagList getTags()
      Retrieve the tags for @stream, if any
      Gibt zurück:
      The #GstTagList for @stream
    • setCaps

      public void setCaps(@Nullable Caps caps)
      Set the caps for the #GstStream
      Parameter:
      caps - a #GstCaps
    • setStreamFlags

      public void setStreamFlags(int flags)
      Set the @flags for the @stream.
      Parameter:
      flags - the flags to set on @stream
    • setStreamType

      public void setStreamType(int stream_type)
      Set the stream type of @stream
      Parameter:
      stream_type - the type to set on @stream
    • setTags

      public void setTags(@Nullable TagList tags)
      Set the tags for the #GstStream
      Parameter:
      tags - a #GstTagList
    • 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()