Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- GES.BaseEffectTimeTranslationFunc(effect, time, time_property_values, *user_data)¶
- Parameters:
effect (
GES.BaseEffect
) – TheGES.BaseEffect
that is doing the time translationtime (
int
) – The #GstClockTime to translationtime_property_values ({
str
:GObject.Value
}) – A table of child property name/value pairsuser_data (
object
orNone
) – Data passed toGES.BaseEffect.set_time_translation_funcs
()
- Returns:
The translated time.
- Return type:
A function for querying how an effect would translate a time if it had the given child property values set. The keys for time_properties will be the same string that was passed to
GES.BaseEffect.register_time_property
(), the values will beGObject.Value
values of the corresponding child properties. You should always use the values given in time_properties before using the currently set values.New in version 1.18.
- GES.CreateTrackElementFunc(clip, type)¶
- Parameters:
type (
GES.TrackType
) – AGES.TrackType
to create aGES.TrackElement
for
- Returns:
The
GES.TrackElement
created by clip, orNone
if clip can not provide a track element for the given type or an error occurred.- Return type:
A method for creating the core
GES.TrackElement
of a clip, to be added to aGES.Track
of the given track type.If a clip may produce several track elements per track type,
GES.CreateTrackElementsFunc
is more appropriate.
- GES.CreateTrackElementsFunc(clip, type)¶
- Parameters:
type (
GES.TrackType
) – AGES.TrackType
to createGES.TrackElement
-s for
- Returns:
A list of the
GES.TrackElement
-s created by clip for the given type, orNone
if no track elements are created or an error occurred.- Return type:
A method for creating the core
GES.TrackElement
-s of a clip, to be added toGES.Track
-s of the given track type.
- GES.ExtractableCheckId(type, id)¶
- Parameters:
type (
GObject.GType
) – TheGES.Extractable
type to check id forid (
str
) – The ID to check
- Return type:
Method for checking that an ID is valid for the given
GES.Extractable
type. If the given ID is considered valid, it can be adjusted into some standard and returned to prevent the creation of separateGES.Asset
-s, with differentGES.Asset
:id
, that would otherwise act the same.Returns (transfer full) (nullable): The actual
GES.Asset
:id
to set on any corresponding assets, based on id, orNone
if id is not valid.
- GES.FillTrackElementFunc(clip, track_element, nleobj)¶
- Parameters:
clip (
GES.Clip
) – TheGES.Clip
controlling the track elementstrack_element (
GES.TrackElement
) – TheGES.TrackElement
nleobj (
Gst.Element
) – The nleobject that needs to be filled
- Returns:
True
if the implementer successfully filled the nleobj.- Return type:
A function that will be called when the nleobject of a corresponding track element needs to be filled.
The implementer of this function shall add the proper
Gst.Element
to nleobj usingGst.Bin.add
().Deprecated since version 1.18: This method type is no longer used.
- GES.FormatterCanLoadURIMethod(dummy_instance, uri)¶
- Parameters:
dummy_instance (
GES.Formatter
) –uri (
str
) –
- Return type:
- GES.FormatterLoadFromURIMethod(formatter, timeline, uri)¶
- Parameters:
formatter (
GES.Formatter
) – aGES.Formatter
timeline (
GES.Timeline
) – aGES.Timeline
- Returns:
True
if the timeline data was successfully loaded from the URI, elseFalse
.- Return type:
Virtual method for loading a timeline from a given URI.
Every
GES.Formatter
subclass needs to implement this method.
- GES.FormatterSaveToURIMethod(formatter, timeline, uri, overwrite)¶
- Parameters:
formatter (
GES.Formatter
) – aGES.Formatter
timeline (
GES.Timeline
) – aGES.Timeline
- Returns:
True
if the timeline data was successfully saved to the URI elseFalse
.- Return type:
Virtual method for saving a timeline to a uri.
Every
GES.Formatter
subclass needs to implement this method.
- GES.MetaForeachFunc(container, key, value, *user_data)¶
- Parameters:
container (
GES.MetaContainer
) – AGES.MetaContainer
key (
str
) – The key for one of container's fieldsvalue (
GObject.Value
) – The set value under key
A method to be called on all of a meta container’s fields.