gi-gsttag-1.0.21: GStreamer Tag bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.GstTag.Objects.TagDemux

Description

Provides a base class for demuxing tags at the beginning or end of a stream and handles things like typefinding, querying, seeking, and different modes of operation (chain-based, pull_range-based, and providing downstream elements with random access if upstream supports that). The tag is stripped from the output, and all offsets are adjusted for the tag sizes, so that to the downstream element the stream will appear as if there was no tag at all. Also, once the tag has been parsed, GstTagDemux will try to determine the media type of the resulting stream and add a source pad with the appropriate caps in order to facilitate auto-plugging.

Deriving from GstTagDemux

Subclasses have to do four things:

  • In their base init function, they must add a pad template for the sink pad to the element class, describing the media type they can parse in the caps of the pad template.
  • In their class init function, they must override GST_TAG_DEMUX_CLASS(demux_klass)->identify_tag with their own identify function.
  • In their class init function, they must override GST_TAG_DEMUX_CLASS(demux_klass)->parse_tag with their own parse function.
  • In their class init function, they must also set GST_TAG_DEMUX_CLASS(demux_klass)->min_start_size and/or GST_TAG_DEMUX_CLASS(demux_klass)->min_end_size to the minimum size required for the identify function to decide whether the stream has a supported tag or not. A class parsing ID3v1 tags, for example, would set min_end_size to 128 bytes.
Synopsis

Exported types

newtype TagDemux Source #

Memory-managed wrapper type.

Constructors

TagDemux (ManagedPtr TagDemux) 

Instances

Instances details
Eq TagDemux Source # 
Instance details

Defined in GI.GstTag.Objects.TagDemux

GObject TagDemux Source # 
Instance details

Defined in GI.GstTag.Objects.TagDemux

Methods

gobjectType :: IO GType #

IsGValue TagDemux Source #

Convert TagDemux to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.GstTag.Objects.TagDemux

HasParentTypes TagDemux Source # 
Instance details

Defined in GI.GstTag.Objects.TagDemux

type ParentTypes TagDemux Source # 
Instance details

Defined in GI.GstTag.Objects.TagDemux

type ParentTypes TagDemux = '[Element, Object, Object]

class (GObject o, IsDescendantOf TagDemux o) => IsTagDemux o Source #

Type class for types which can be safely cast to TagDemux, for instance with toTagDemux.

Instances

Instances details
(GObject o, IsDescendantOf TagDemux o) => IsTagDemux o Source # 
Instance details

Defined in GI.GstTag.Objects.TagDemux

toTagDemux :: (MonadIO m, IsTagDemux o) => o -> m TagDemux Source #

Cast to TagDemux, for types for which this is known to be safe. For general casts, use castTo.

noTagDemux :: Maybe TagDemux Source #

A convenience alias for Nothing :: Maybe TagDemux.

Methods

Overloaded methods