gi-gsttag-1.0.27: GStreamer Tag bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
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

ManagedPtrNewtype TagDemux Source # 
Instance details

Defined in GI.GstTag.Objects.TagDemux

Methods

toManagedPtr :: TagDemux -> ManagedPtr TagDemux

TypedObject TagDemux Source # 
Instance details

Defined in GI.GstTag.Objects.TagDemux

Methods

glibType :: IO GType

HasParentTypes TagDemux Source # 
Instance details

Defined in GI.GstTag.Objects.TagDemux

IsGValue (Maybe TagDemux) Source #

Convert TagDemux to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GstTag.Objects.TagDemux

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe TagDemux -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe 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.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

abortState, addControlBinding, addPad, addPropertyDeepNotifyWatch, addPropertyNotifyWatch, bindProperty, bindPropertyFull, callAsync, changeState, continueState, createAllPads, defaultError, forceFloating, foreachPad, foreachSinkPad, foreachSrcPad, freezeNotify, getv, hasActiveControlBindings, hasAncestor, hasAsAncestor, hasAsParent, isFloating, isLockedState, iteratePads, iterateSinkPads, iterateSrcPads, link, linkFiltered, linkPads, linkPadsFiltered, linkPadsFull, lostState, messageFull, messageFullWithDetails, noMorePads, notify, notifyByPspec, postMessage, provideClock, query, queryConvert, queryDuration, queryPosition, ref, refSink, releaseRequestPad, removeControlBinding, removePad, removePropertyNotifyWatch, requestPad, requestPadSimple, runDispose, seek, seekSimple, sendEvent, stealData, stealQdata, suggestNextSync, syncStateWithParent, syncValues, thawNotify, unlink, unlinkPads, unparent, unref, watchClosure.

Getters

getBaseTime, getBus, getClock, getCompatiblePad, getCompatiblePadTemplate, getContext, getContextUnlocked, getContexts, getControlBinding, getControlRate, getCurrentClockTime, getCurrentRunningTime, getData, getFactory, getGValueArray, getMetadata, getName, getPadTemplate, getPadTemplateList, getParent, getPathString, getProperty, getQdata, getRequestPad, getStartTime, getState, getStaticPad, getValue.

Setters

setBaseTime, setBus, setClock, setContext, setControlBindingDisabled, setControlBindingsDisabled, setControlRate, setData, setDataFull, setLockedState, setName, setParent, setProperty, setStartTime, setState.