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 |
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
- newtype VideoTrack = VideoTrack (ManagedPtr VideoTrack)
- class (GObject o, IsDescendantOf VideoTrack o) => IsVideoTrack o
- toVideoTrack :: (MonadIO m, IsVideoTrack o) => o -> m VideoTrack
- videoTrackNew :: (HasCallStack, MonadIO m) => m VideoTrack
Exported types
newtype VideoTrack Source #
Memory-managed wrapper type.
VideoTrack (ManagedPtr VideoTrack) |
Instances
Eq VideoTrack Source # | |
Defined in GI.GES.Objects.VideoTrack (==) :: VideoTrack -> VideoTrack -> Bool # (/=) :: VideoTrack -> VideoTrack -> Bool # | |
GObject VideoTrack Source # | |
Defined in GI.GES.Objects.VideoTrack | |
ManagedPtrNewtype VideoTrack Source # | |
Defined in GI.GES.Objects.VideoTrack toManagedPtr :: VideoTrack -> ManagedPtr VideoTrack | |
TypedObject VideoTrack Source # | |
Defined in GI.GES.Objects.VideoTrack | |
HasParentTypes VideoTrack Source # | |
Defined in GI.GES.Objects.VideoTrack | |
IsGValue (Maybe VideoTrack) Source # | Convert |
Defined in GI.GES.Objects.VideoTrack gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe VideoTrack -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe VideoTrack) | |
type ParentTypes VideoTrack Source # | |
Defined in GI.GES.Objects.VideoTrack |
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
(GObject o, IsDescendantOf VideoTrack o) => IsVideoTrack o Source # | |
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
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
:: (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.