Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- newtype TagDemux = TagDemux (ManagedPtr TagDemux)
- class (GObject o, IsDescendantOf TagDemux o) => IsTagDemux o
- toTagDemux :: (MonadIO m, IsTagDemux o) => o -> m TagDemux
Exported types
Memory-managed wrapper type.
Instances
Eq TagDemux Source # | |
GObject TagDemux Source # | |
Defined in GI.GstTag.Objects.TagDemux | |
ManagedPtrNewtype TagDemux Source # | |
Defined in GI.GstTag.Objects.TagDemux toManagedPtr :: TagDemux -> ManagedPtr TagDemux | |
TypedObject TagDemux Source # | |
Defined in GI.GstTag.Objects.TagDemux | |
HasParentTypes TagDemux Source # | |
Defined in GI.GstTag.Objects.TagDemux | |
IsGValue (Maybe TagDemux) Source # | Convert |
Defined in GI.GstTag.Objects.TagDemux gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe TagDemux -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe TagDemux) | |
type ParentTypes TagDemux Source # | |
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
(GObject o, IsDescendantOf TagDemux o) => IsTagDemux o Source # | |
Defined in GI.GstTag.Objects.TagDemux |
toTagDemux :: (MonadIO m, IsTagDemux o) => o -> m TagDemux Source #
Methods
Click to display all available methods, including inherited ones
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.