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 |
Base class for video sources
Synopsis
- newtype VideoSource = VideoSource (ManagedPtr VideoSource)
- class (GObject o, IsDescendantOf VideoSource o) => IsVideoSource o
- toVideoSource :: (MonadIO m, IsVideoSource o) => o -> m VideoSource
- videoSourceGetNaturalSize :: (HasCallStack, MonadIO m, IsVideoSource a) => a -> m (Bool, Int32, Int32)
Exported types
newtype VideoSource Source #
Memory-managed wrapper type.
VideoSource (ManagedPtr VideoSource) |
Instances
Eq VideoSource Source # | |
Defined in GI.GES.Objects.VideoSource (==) :: VideoSource -> VideoSource -> Bool # (/=) :: VideoSource -> VideoSource -> Bool # | |
GObject VideoSource Source # | |
Defined in GI.GES.Objects.VideoSource | |
ManagedPtrNewtype VideoSource Source # | |
Defined in GI.GES.Objects.VideoSource toManagedPtr :: VideoSource -> ManagedPtr VideoSource | |
TypedObject VideoSource Source # | |
Defined in GI.GES.Objects.VideoSource | |
HasParentTypes VideoSource Source # | |
Defined in GI.GES.Objects.VideoSource | |
IsGValue (Maybe VideoSource) Source # | Convert |
Defined in GI.GES.Objects.VideoSource gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe VideoSource -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe VideoSource) | |
type ParentTypes VideoSource Source # | |
Defined in GI.GES.Objects.VideoSource type ParentTypes VideoSource = '[Source, TrackElement, TimelineElement, Object, Extractable, MetaContainer] |
class (GObject o, IsDescendantOf VideoSource o) => IsVideoSource o Source #
Type class for types which can be safely cast to VideoSource
, for instance with toVideoSource
.
Instances
(GObject o, IsDescendantOf VideoSource o) => IsVideoSource o Source # | |
Defined in GI.GES.Objects.VideoSource |
toVideoSource :: (MonadIO m, IsVideoSource o) => o -> m VideoSource Source #
Cast to VideoSource
, 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
addChildProperty, addChildrenProps, addMetasFromString, bindProperty, bindPropertyFull, checkMetaRegistered, clampControlSource, copy, edit, editFull, forceFloating, foreach, freezeNotify, getv, hasInternalSource, isActive, isCore, isFloating, listChildrenProperties, lookupChild, metasToString, notify, notifyByPspec, paste, ref, refSink, registerMeta, registerMetaBoolean, registerMetaDate, registerMetaDateTime, registerMetaDouble, registerMetaFloat, registerMetaInt, registerMetaInt64, registerMetaString, registerMetaUint, registerMetaUint64, registerStaticMeta, removeChildProperty, removeControlBinding, ripple, rippleEnd, rollEnd, rollStart, runDispose, stealData, stealQdata, thawNotify, trim, unref, watchClosure.
Getters
getAllControlBindings, getAsset, getAutoClampControlSources, getBoolean, getChildProperty, getChildPropertyByPspec, getControlBinding, getData, getDate, getDateTime, getDouble, getDuration, getElement, getFloat, getGnlobject, getId, getInpoint, getInt, getInt64, getLayerPriority, getMarkerList, getMaxDuration, getMeta, getName, getNaturalFramerate, getNaturalSize, getNleobject, getParent, getPriority, getProperty, getQdata, getStart, getString, getTimeline, getToplevelParent, getTrack, getTrackType, getTrackTypes, getUint, getUint64.
Setters
setActive, setAsset, setAutoClampControlSources, setBoolean, setChildProperty, setChildPropertyByPspec, setChildPropertyFull, setControlSource, setData, setDataFull, setDate, setDateTime, setDouble, setDuration, setFloat, setHasInternalSource, setInpoint, setInt, setInt64, setMarkerList, setMaxDuration, setMeta, setName, setParent, setPriority, setProperty, setStart, setString, setTimeline, setTrackType, setUint, setUint64.
getNaturalSize
videoSourceGetNaturalSize Source #
:: (HasCallStack, MonadIO m, IsVideoSource a) | |
=> a |
|
-> m (Bool, Int32, Int32) | Returns: |
Retrieves the natural size of the video stream. The natural size, is the size at which it will be displayed if no scaling is being applied.
NOTE: The sources take into account the potential video rotation applied
by the videoflip
element that is inside the source, effects applied on
the clip which potentially also rotate the element are not taken into
account.
Since: 1.18