| 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 |
GI.GES.Objects.ClipAsset
Description
The UriClipAsset is a special Asset specilized in Clip.
it is mostly used to get information about the TrackType-s the objects extracted
from it can potentialy create TrackElement for.
Synopsis
- newtype ClipAsset = ClipAsset (ManagedPtr ClipAsset)
- class (GObject o, IsDescendantOf ClipAsset o) => IsClipAsset o
- toClipAsset :: (MonadIO m, IsClipAsset o) => o -> m ClipAsset
- clipAssetGetFrameTime :: (HasCallStack, MonadIO m, IsClipAsset a) => a -> Int64 -> m Word64
- clipAssetGetNaturalFramerate :: (HasCallStack, MonadIO m, IsClipAsset a) => a -> m (Bool, Int32, Int32)
- clipAssetGetSupportedFormats :: (HasCallStack, MonadIO m, IsClipAsset a) => a -> m [TrackType]
- clipAssetSetSupportedFormats :: (HasCallStack, MonadIO m, IsClipAsset a) => a -> [TrackType] -> m ()
- constructClipAssetSupportedFormats :: (IsClipAsset o, MonadIO m) => [TrackType] -> m (GValueConstruct o)
- getClipAssetSupportedFormats :: (MonadIO m, IsClipAsset o) => o -> m [TrackType]
- setClipAssetSupportedFormats :: (MonadIO m, IsClipAsset o) => o -> [TrackType] -> m ()
Exported types
Memory-managed wrapper type.
Instances
| Eq ClipAsset Source # | |
| GObject ClipAsset Source # | |
Defined in GI.GES.Objects.ClipAsset | |
| ManagedPtrNewtype ClipAsset Source # | |
Defined in GI.GES.Objects.ClipAsset Methods toManagedPtr :: ClipAsset -> ManagedPtr ClipAsset | |
| TypedObject ClipAsset Source # | |
Defined in GI.GES.Objects.ClipAsset | |
| HasParentTypes ClipAsset Source # | |
Defined in GI.GES.Objects.ClipAsset | |
| IsGValue (Maybe ClipAsset) Source # | Convert |
Defined in GI.GES.Objects.ClipAsset Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ClipAsset -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ClipAsset) | |
| type ParentTypes ClipAsset Source # | |
Defined in GI.GES.Objects.ClipAsset | |
class (GObject o, IsDescendantOf ClipAsset o) => IsClipAsset o Source #
Type class for types which can be safely cast to ClipAsset, for instance with toClipAsset.
Instances
| (GObject o, IsDescendantOf ClipAsset o) => IsClipAsset o Source # | |
Defined in GI.GES.Objects.ClipAsset | |
toClipAsset :: (MonadIO m, IsClipAsset o) => o -> m ClipAsset Source #
Methods
Click to display all available methods, including inherited ones
Methods
addMetasFromString, bindProperty, bindPropertyFull, checkMetaRegistered, extract, forceFloating, foreach, freezeNotify, getv, init, initAsync, initFinish, isFloating, listProxies, metasToString, newFinish, notify, notifyByPspec, ref, refSink, registerMeta, registerMetaBoolean, registerMetaDate, registerMetaDateTime, registerMetaDouble, registerMetaFloat, registerMetaInt, registerMetaInt64, registerMetaString, registerMetaUint, registerMetaUint64, registerStaticMeta, runDispose, stealData, stealQdata, thawNotify, unproxy, unref, watchClosure.
Getters
getBoolean, getData, getDate, getDateTime, getDouble, getError, getExtractableType, getFloat, getFrameTime, getId, getInt, getInt64, getMarkerList, getMeta, getNaturalFramerate, getProperty, getProxy, getProxyTarget, getQdata, getString, getSupportedFormats, getUint, getUint64.
Setters
setBoolean, setData, setDataFull, setDate, setDateTime, setDouble, setFloat, setInt, setInt64, setMarkerList, setMeta, setProperty, setProxy, setString, setSupportedFormats, setUint, setUint64.
getFrameTime
clipAssetGetFrameTime Source #
Arguments
| :: (HasCallStack, MonadIO m, IsClipAsset a) | |
| => a |
|
| -> Int64 |
|
| -> m Word64 | Returns: The timestamp corresponding to |
Converts the given frame number into a timestamp, using the "natural" frame rate of the asset.
You can use this to reference a specific frame in a media file and use this
as, for example, the in-point or max-duration of a Clip.
Since: 1.18
getNaturalFramerate
clipAssetGetNaturalFramerate Source #
Arguments
| :: (HasCallStack, MonadIO m, IsClipAsset a) | |
| => a |
|
| -> m (Bool, Int32, Int32) |
getSupportedFormats
clipAssetGetSupportedFormats Source #
Arguments
| :: (HasCallStack, MonadIO m, IsClipAsset a) | |
| => a |
|
| -> m [TrackType] | Returns: The track types on which |
Gets track types for which objects extracted from self can create TrackElement
setSupportedFormats
clipAssetSetSupportedFormats Source #
Arguments
| :: (HasCallStack, MonadIO m, IsClipAsset a) | |
| => a |
|
| -> [TrackType] |
|
| -> m () |
Sets track types for which objects extracted from self can create TrackElement
Properties
supportedFormats
The formats supported by the asset.
constructClipAssetSupportedFormats :: (IsClipAsset o, MonadIO m) => [TrackType] -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “supported-formats” property. This is rarely needed directly, but it is used by new.
getClipAssetSupportedFormats :: (MonadIO m, IsClipAsset o) => o -> m [TrackType] Source #
Get the value of the “supported-formats” property.
When overloading is enabled, this is equivalent to
get clipAsset #supportedFormats
setClipAssetSupportedFormats :: (MonadIO m, IsClipAsset o) => o -> [TrackType] -> m () Source #
Set the value of the “supported-formats” property.
When overloading is enabled, this is equivalent to
setclipAsset [ #supportedFormats:=value ]