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 |
Synopsis
- addMissingUriRelocationUri :: (HasCallStack, MonadIO m) => Text -> Bool -> m Bool
- deinit :: (HasCallStack, MonadIO m) => m ()
- findFormatterForUri :: (HasCallStack, MonadIO m) => Text -> m Asset
- init :: (HasCallStack, MonadIO m) => m Bool
- initCheck :: (HasCallStack, MonadIO m) => Maybe [Text] -> m (Maybe [Text])
- isInitialized :: (HasCallStack, MonadIO m) => m Bool
- listAssets :: (HasCallStack, MonadIO m) => GType -> m [Asset]
- playSinkConvertFrame :: (HasCallStack, MonadIO m, IsElement a) => a -> Caps -> m (Maybe Sample)
- pspecEqual :: (HasCallStack, MonadIO m) => Ptr () -> Ptr () -> m Bool
- pspecHash :: (HasCallStack, MonadIO m) => Ptr () -> m Word32
- validateRegisterActionTypes :: (HasCallStack, MonadIO m) => m Bool
- version :: (HasCallStack, MonadIO m) => m (Word32, Word32, Word32, Word32)
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
:: (HasCallStack, MonadIO m) | |
=> Text | |
-> m Asset | Returns: The |
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
:: (HasCallStack, MonadIO m) | |
=> Maybe [Text] |
|
-> m (Maybe [Text]) | (Can throw |
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
:: (HasCallStack, MonadIO m) | |
=> m Bool | Returns: |
listAssets
:: (HasCallStack, MonadIO m) | |
=> GType |
|
-> m [Asset] | Returns: A list of all
|
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
:: (HasCallStack, MonadIO m, IsElement a) | |
=> a |
|
-> Caps |
|
-> m (Maybe Sample) | Returns: A |
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.