gi-gst-1.0.12: GStreamer bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gst.Objects.Stream

Contents

Description

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).

Synopsis

Exported types

newtype Stream Source #

Constructors

Stream (ManagedPtr Stream) 

Instances

GObject Stream Source # 

Methods

gobjectType :: Stream -> IO GType #

IsObject Stream Source # 
IsStream Stream Source # 
IsObject Stream Source # 
((~) * info (ResolveStreamMethod t Stream), MethodInfo * info Stream p) => IsLabel t (Stream -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Stream -> p #

((~) * info (ResolveStreamMethod t Stream), MethodInfo * info Stream p) => IsLabelProxy t (Stream -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Stream -> p #

HasAttributeList * Stream Source # 
type AttributeList Stream Source # 
type SignalList Stream Source # 

Methods

getCaps

data StreamGetCapsMethodInfo Source #

Instances

((~) * signature (m (Maybe Caps)), MonadIO m, IsStream a) => MethodInfo * StreamGetCapsMethodInfo a signature Source # 

streamGetCaps Source #

Arguments

:: (HasCallStack, MonadIO m, IsStream a) 
=> a

stream: a Stream

-> m (Maybe Caps)

Returns: The Caps for stream

Retrieve the caps for stream, if any

Since: 1.10

getStreamFlags

streamGetStreamFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsStream a) 
=> a

stream: a Stream

-> m [StreamFlags]

Returns: The StreamFlags for stream

Retrieve the current stream flags for stream

Since: 1.10

getStreamId

streamGetStreamId Source #

Arguments

:: (HasCallStack, MonadIO m, IsStream a) 
=> a

stream: a Stream

-> m (Maybe Text)

Returns: the stream ID of stream. Only valid during the lifetime of stream.

Returns the stream ID of stream.

Since: 1.10

getStreamType

streamGetStreamType Source #

Arguments

:: (HasCallStack, MonadIO m, IsStream a) 
=> a

stream: a Stream

-> m [StreamType]

Returns: The StreamType for stream

Retrieve the stream type for stream

Since: 1.10

getTags

data StreamGetTagsMethodInfo Source #

Instances

((~) * signature (m (Maybe TagList)), MonadIO m, IsStream a) => MethodInfo * StreamGetTagsMethodInfo a signature Source # 

streamGetTags Source #

Arguments

:: (HasCallStack, MonadIO m, IsStream a) 
=> a

stream: a Stream

-> m (Maybe TagList)

Returns: The TagList for stream

Retrieve the tags for stream, if any

Since: 1.10

new

streamNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Maybe Text

streamId: the id for the new stream. If Nothing, a new one will be automatically generated

-> Maybe Caps

caps: the Caps of the stream

-> [StreamType]

type: the StreamType of the stream

-> [StreamFlags]

flags: the StreamFlags of the stream

-> m Stream

Returns: The new Stream

Create a new Stream for the given streamId, caps, type and flags

Since: 1.10

setCaps

data StreamSetCapsMethodInfo Source #

Instances

((~) * signature (Maybe Caps -> m ()), MonadIO m, IsStream a) => MethodInfo * StreamSetCapsMethodInfo a signature Source # 

streamSetCaps Source #

Arguments

:: (HasCallStack, MonadIO m, IsStream a) 
=> a

stream: a Stream

-> Maybe Caps

caps: a Caps

-> m () 

Set the caps for the Stream

Since: 1.10

setStreamFlags

streamSetStreamFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsStream a) 
=> a

stream: a Stream

-> [StreamFlags]

flags: the flags to set on stream

-> m () 

Set the flags for the stream.

Since: 1.10

setStreamType

streamSetStreamType Source #

Arguments

:: (HasCallStack, MonadIO m, IsStream a) 
=> a

stream: a Stream

-> [StreamType]

streamType: the type to set on stream

-> m () 

Set the stream type of stream

Since: 1.10

setTags

data StreamSetTagsMethodInfo Source #

Instances

((~) * signature (Maybe TagList -> m ()), MonadIO m, IsStream a) => MethodInfo * StreamSetTagsMethodInfo a signature Source # 

streamSetTags Source #

Arguments

:: (HasCallStack, MonadIO m, IsStream a) 
=> a

stream: a Stream

-> Maybe TagList

tags: a TagList

-> m () 

Set the tags for the Stream

Since: 1.10

Properties

caps

data StreamCapsPropertyInfo Source #

Instances

AttrInfo StreamCapsPropertyInfo Source # 
type AttrOrigin StreamCapsPropertyInfo Source # 
type AttrLabel StreamCapsPropertyInfo Source # 
type AttrGetType StreamCapsPropertyInfo Source # 
type AttrBaseTypeConstraint StreamCapsPropertyInfo Source # 
type AttrSetTypeConstraint StreamCapsPropertyInfo Source # 
type AttrAllowedOps StreamCapsPropertyInfo Source # 

clearStreamCaps :: (MonadIO m, IsStream o) => o -> m () Source #

setStreamCaps :: (MonadIO m, IsStream o) => o -> Caps -> m () Source #

streamFlags

data StreamStreamFlagsPropertyInfo Source #

Instances

AttrInfo StreamStreamFlagsPropertyInfo Source # 
type AttrOrigin StreamStreamFlagsPropertyInfo Source # 
type AttrLabel StreamStreamFlagsPropertyInfo Source # 
type AttrGetType StreamStreamFlagsPropertyInfo Source # 
type AttrBaseTypeConstraint StreamStreamFlagsPropertyInfo Source # 
type AttrSetTypeConstraint StreamStreamFlagsPropertyInfo Source # 
type AttrAllowedOps StreamStreamFlagsPropertyInfo Source # 

streamId

data StreamStreamIdPropertyInfo Source #

Instances

AttrInfo StreamStreamIdPropertyInfo Source # 
type AttrOrigin StreamStreamIdPropertyInfo Source # 
type AttrLabel StreamStreamIdPropertyInfo Source # 
type AttrGetType StreamStreamIdPropertyInfo Source # 
type AttrBaseTypeConstraint StreamStreamIdPropertyInfo Source # 
type AttrSetTypeConstraint StreamStreamIdPropertyInfo Source # 
type AttrAllowedOps StreamStreamIdPropertyInfo Source # 

streamType

data StreamStreamTypePropertyInfo Source #

Instances

AttrInfo StreamStreamTypePropertyInfo Source # 
type AttrOrigin StreamStreamTypePropertyInfo Source # 
type AttrLabel StreamStreamTypePropertyInfo Source # 
type AttrGetType StreamStreamTypePropertyInfo Source # 
type AttrBaseTypeConstraint StreamStreamTypePropertyInfo Source # 
type AttrSetTypeConstraint StreamStreamTypePropertyInfo Source # 
type AttrAllowedOps StreamStreamTypePropertyInfo Source # 

tags

data StreamTagsPropertyInfo Source #

Instances

AttrInfo StreamTagsPropertyInfo Source # 
type AttrOrigin StreamTagsPropertyInfo Source # 
type AttrLabel StreamTagsPropertyInfo Source # 
type AttrGetType StreamTagsPropertyInfo Source # 
type AttrBaseTypeConstraint StreamTagsPropertyInfo Source # 
type AttrSetTypeConstraint StreamTagsPropertyInfo Source # 
type AttrAllowedOps StreamTagsPropertyInfo Source # 

clearStreamTags :: (MonadIO m, IsStream o) => o -> m () Source #

setStreamTags :: (MonadIO m, IsStream o) => o -> TagList -> m () Source #