gi-ges-1.0.4: libges bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GES.Objects.VideoTrack

Description

A VideoTrack is a default video Track, with a GES_TRACK_TYPE_VIDEO Track:trackType and "video/x-raw(ANY)" Track:caps.

By default, a video track will have its Track:restrictionCaps set to "video/x-raw" with the following properties:

  • width: 1280
  • height: 720
  • framerate: 30/1

These fields are needed for negotiation purposes, but you can change their values if you wish. It is advised that you do so using trackUpdateRestrictionCaps with new values for the fields you wish to change, and any additional fields you may want to add. Unlike using trackSetRestrictionCaps, this will ensure that these default fields will at least have some value set.

Synopsis

Exported types

newtype VideoTrack Source #

Memory-managed wrapper type.

Constructors

VideoTrack (ManagedPtr VideoTrack) 

Instances

Instances details
Eq VideoTrack Source # 
Instance details

Defined in GI.GES.Objects.VideoTrack

GObject VideoTrack Source # 
Instance details

Defined in GI.GES.Objects.VideoTrack

ManagedPtrNewtype VideoTrack Source # 
Instance details

Defined in GI.GES.Objects.VideoTrack

Methods

toManagedPtr :: VideoTrack -> ManagedPtr VideoTrack

TypedObject VideoTrack Source # 
Instance details

Defined in GI.GES.Objects.VideoTrack

Methods

glibType :: IO GType

HasParentTypes VideoTrack Source # 
Instance details

Defined in GI.GES.Objects.VideoTrack

IsGValue (Maybe VideoTrack) Source #

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

Instance details

Defined in GI.GES.Objects.VideoTrack

Methods

gvalueGType_ :: IO GType

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

gvalueGet_ :: Ptr GValue -> IO (Maybe VideoTrack)

type ParentTypes VideoTrack Source # 
Instance details

Defined in GI.GES.Objects.VideoTrack

type ParentTypes VideoTrack = '[Track, Bin, Element, Object, Object, MetaContainer, ChildProxy]

class (GObject o, IsDescendantOf VideoTrack o) => IsVideoTrack o Source #

Type class for types which can be safely cast to VideoTrack, for instance with toVideoTrack.

Instances

Instances details
(GObject o, IsDescendantOf VideoTrack o) => IsVideoTrack o Source # 
Instance details

Defined in GI.GES.Objects.VideoTrack

toVideoTrack :: (MonadIO m, IsVideoTrack o) => o -> m VideoTrack Source #

Cast to VideoTrack, 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, add, addControlBinding, addElement, addElementFull, addMetasFromString, addPad, addPropertyDeepNotifyWatch, addPropertyNotifyWatch, bindProperty, bindPropertyFull, callAsync, changeState, checkMetaRegistered, childAdded, childRemoved, commit, continueState, createAllPads, defaultError, findUnlinkedPad, forceFloating, foreach, foreachPad, foreachSinkPad, foreachSrcPad, freezeNotify, getv, hasActiveControlBindings, hasAncestor, hasAsAncestor, hasAsParent, isFloating, isLockedState, iterateAllByElementFactoryName, iterateAllByInterface, iterateElements, iteratePads, iterateRecurse, iterateSinkPads, iterateSinks, iterateSorted, iterateSources, iterateSrcPads, link, linkFiltered, linkPads, linkPadsFiltered, linkPadsFull, lookup, lostState, messageFull, messageFullWithDetails, metasToString, noMorePads, notify, notifyByPspec, postMessage, provideClock, query, queryConvert, queryDuration, queryPosition, recalculateLatency, ref, refSink, registerMeta, registerMetaBoolean, registerMetaDate, registerMetaDateTime, registerMetaDouble, registerMetaFloat, registerMetaInt, registerMetaInt64, registerMetaString, registerMetaUint, registerMetaUint64, registerStaticMeta, releaseRequestPad, remove, removeControlBinding, removeElement, removeElementFull, removePad, removePropertyNotifyWatch, requestPad, requestPadSimple, runDispose, seek, seekSimple, sendEvent, stealData, stealQdata, suggestNextSync, syncChildrenStates, syncStateWithParent, syncValues, thawNotify, unlink, unlinkPads, unparent, unref, updateRestrictionCaps, watchClosure.

Getters

getBaseTime, getBoolean, getBus, getByInterface, getByName, getByNameRecurseUp, getCaps, getChildByIndex, getChildByName, getChildByNameRecurse, getChildrenCount, getClock, getCompatiblePad, getCompatiblePadTemplate, getContext, getContextUnlocked, getContexts, getControlBinding, getControlRate, getCurrentClockTime, getCurrentRunningTime, getData, getDate, getDateTime, getDouble, getElements, getFactory, getFloat, getGValueArray, getInt, getInt64, getMarkerList, getMeta, getMetadata, getMixing, getName, getPadTemplate, getPadTemplateList, getParent, getPathString, getProperty, getQdata, getRequestPad, getRestrictionCaps, getStartTime, getState, getStaticPad, getString, getSuppressedFlags, getTimeline, getUint, getUint64, getValue.

Setters

setBaseTime, setBoolean, setBus, setClock, setContext, setControlBindingDisabled, setControlBindingsDisabled, setControlRate, setData, setDataFull, setDate, setDateTime, setDouble, setFloat, setInt, setInt64, setLockedState, setMarkerList, setMeta, setMixing, setName, setParent, setProperty, setRestrictionCaps, setStartTime, setState, setString, setSuppressedFlags, setTimeline, setUint, setUint64.

new

videoTrackNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m VideoTrack

Returns: The newly created video track.

Creates a new video track, with a GES_TRACK_TYPE_VIDEO Track:trackType and "video/x-raw(ANY)" Track:caps, and "video/x-raw" Track:restrictionCaps with the properties:

  • width: 1280
  • height: 720
  • framerate: 30/1

You should use trackUpdateRestrictionCaps if you wish to modify these fields, or add additional ones.