Struct gstreamer::Stream[]

pub struct Stream(_, _);

A high-level object representing a single stream. It might be backed, or not, by an actual flow of data in a pipeline (Pad).

A Stream 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 Stream contains all the information pertinent to a stream, such as stream-id, tags, caps, type, ...

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

Feature: v1_10

Implements

GstObjectExt, glib::object::ObjectExt

Methods

impl Stream
[src]

Retrieve the caps for self, if any

Feature: v1_10

Returns

The Caps for self

Retrieve the current stream flags for self

Feature: v1_10

Returns

The StreamFlags for self

Returns the stream ID of self.

Feature: v1_10

Returns

the stream ID of self. Only valid during the lifetime of self.

Retrieve the stream type for self

Feature: v1_10

Returns

The StreamType for self

Retrieve the tags for self, if any

Feature: v1_10

Returns

The TagList for self

Set the caps for the Stream

Feature: v1_10

caps

a Caps

Set the flags for the self.

Feature: v1_10

flags

the flags to set on self

Set the stream type of self

Feature: v1_10

stream_type

the type to set on self

Set the tags for the Stream

Feature: v1_10

tags

a TagList

impl Stream
[src]

Create a new Stream for the given stream_id, caps, type_ and flags

Feature: v1_10

stream_id

the id for the new stream. If None, a new one will be automatically generated

caps

the Caps of the stream

type_

the StreamType of the stream

flags

the StreamFlags of the stream

Returns

The new Stream

Trait Implementations

impl Clone for Stream

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Stream

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for Stream

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl StaticType for Stream

Returns the type identifier of Self.

impl<T: IsA<Object>> PartialEq<T> for Stream

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Stream

impl<T: IsA<Object>> PartialOrd<T> for Stream

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for Stream

Formats the value using the given formatter. Read more

impl IsA<Object> for Stream

impl IsA<Object> for Stream

impl Send for Stream
[src]

impl Sync for Stream
[src]