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

Description

 
Synopsis

Methods

addMissingUriRelocationUri

addMissingUriRelocationUri :: (HasCallStack, MonadIO m) => Text -> Bool -> m Bool Source #

No description available in the introspection data.

deinit

deinit :: (HasCallStack, MonadIO m) => m () Source #

Clean up any resources created by GES in init.

It is normally not needed to call this function in a normal application as the resources will automatically be freed when the program terminates. This function is therefore mostly used by testsuites and other memory profiling tools. This function should be called from the thread where init was called.

After this call GES should not be used until another init call.

findFormatterForUri

findFormatterForUri Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text 
-> m Asset

Returns: The Asset for the best formatter to save to uri

Get the best formatter for uri. It tries to find a formatter compatible with uri extension, if none is found, it returns the default formatter asset.

Since: 1.18

init

init :: (HasCallStack, MonadIO m) => m Bool Source #

Initialize the GStreamer Editing Service. Call this before any usage of GES. You should take care of initilizing GStreamer before calling this function.

MT safety. GStreamer Editing Services do not guarantee MT safety. An application is required to use GES APIs (including deinit) in the thread where init was called.

initCheck

initCheck Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Maybe [Text]

argv: pointer to application's argv

-> m (Maybe [Text])

(Can throw GError)

Initializes the GStreamer Editing Services library, setting up internal path lists, and loading evrything needed.

This function will return False if GES could not be initialized for some reason.

isInitialized

isInitialized Source #

Arguments

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

Returns: True if initialization has been done, False otherwise.

Use this function to check if GES has been initialized with init or initCheck.

Since: 1.16

listAssets

listAssets Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GType

filter: The type of object that can be extracted from the asset

-> m [Asset]

Returns: A list of all Asset-s currently in the cache whose Asset:extractableType is of the filter type.

List all the assets in the current cache whose Asset:extractableType are of the given type (including subclasses).

Note that, since only a Extractable can be extracted from an asset, using GES_TYPE_EXTRACTABLE as filter will return all the assets in the current cache.

playSinkConvertFrame

playSinkConvertFrame Source #

Arguments

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

playsink: The playsink to get last frame from

-> Caps

caps: The caps defining the format the return value will have

-> m (Maybe Sample)

Returns: A Sample containing the last frame from playsink in the format defined by the caps

Deprecated: (Since version 1.18)Use the "convert-sample" action signal ofplaysink instead.

Get the last buffer playsink showed

pspecEqual

pspecEqual :: (HasCallStack, MonadIO m) => Ptr () -> Ptr () -> m Bool Source #

No description available in the introspection data.

pspecHash

pspecHash :: (HasCallStack, MonadIO m) => Ptr () -> m Word32 Source #

No description available in the introspection data.

validateRegisterActionTypes

validateRegisterActionTypes :: (HasCallStack, MonadIO m) => m Bool Source #

No description available in the introspection data.

version

version :: (HasCallStack, MonadIO m) => m (Word32, Word32, Word32, Word32) Source #

Gets the version number of the GStreamer Editing Services library.