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.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

Exported types

newtype ClipAsset Source #

Memory-managed wrapper type.

Constructors

ClipAsset (ManagedPtr ClipAsset) 

Instances

Instances details
Eq ClipAsset Source # 
Instance details

Defined in GI.GES.Objects.ClipAsset

GObject ClipAsset Source # 
Instance details

Defined in GI.GES.Objects.ClipAsset

ManagedPtrNewtype ClipAsset Source # 
Instance details

Defined in GI.GES.Objects.ClipAsset

Methods

toManagedPtr :: ClipAsset -> ManagedPtr ClipAsset

TypedObject ClipAsset Source # 
Instance details

Defined in GI.GES.Objects.ClipAsset

Methods

glibType :: IO GType

HasParentTypes ClipAsset Source # 
Instance details

Defined in GI.GES.Objects.ClipAsset

IsGValue (Maybe ClipAsset) Source #

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

Instance details

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 # 
Instance details

Defined in GI.GES.Objects.ClipAsset

type ParentTypes ClipAsset = '[Asset, Object, MetaContainer, AsyncInitable, Initable]

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

Instances details
(GObject o, IsDescendantOf ClipAsset o) => IsClipAsset o Source # 
Instance details

Defined in GI.GES.Objects.ClipAsset

toClipAsset :: (MonadIO m, IsClipAsset o) => o -> m ClipAsset Source #

Cast to ClipAsset, for types for which this is known to be safe. For general casts, use castTo.

Methods

getFrameTime

clipAssetGetFrameTime Source #

Arguments

:: (HasCallStack, MonadIO m, IsClipAsset a) 
=> a

self: The object for which to compute timestamp for specifed frame

-> Int64

frameNumber: The frame number we want the internal time coordinate timestamp of

-> m Word64

Returns: The timestamp corresponding to frameNumber in the element source, given in internal time coordinates, or CLOCK_TIME_NONE if the clip asset does not have a natural frame rate.

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

self: The object from which to retrieve the natural framerate

-> m (Bool, Int32, Int32) 

Result: True if self has a natural framerate False otherwise

Since: 1.18

getSupportedFormats

clipAssetGetSupportedFormats Source #

Arguments

:: (HasCallStack, MonadIO m, IsClipAsset a) 
=> a

self: a ClipAsset

-> m [TrackType]

Returns: The track types on which self will create TrackElement when added to a layer

Gets track types for which objects extracted from self can create TrackElement

setSupportedFormats

clipAssetSetSupportedFormats Source #

Arguments

:: (HasCallStack, MonadIO m, IsClipAsset a) 
=> a

self: a ClipAsset

-> [TrackType]

supportedformats: The track types supported by the GESClipAsset

-> 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

set clipAsset [ #supportedFormats := value ]