Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- GES.BaseEffectTimeTranslationFunc(effect, time, time_property_values, *user_data)¶
- Parameters:
effect (
GES.BaseEffect) – TheGES.BaseEffectthat is doing the time translationtime (
int) – The #GstClockTime to translationtime_property_values ({
str:GObject.Value}) – A table of child property name/value pairsuser_data (
objectorNone) – 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.Valuevalues 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.TrackTypeto create aGES.TrackElementfor
- Returns:
The
GES.TrackElementcreated by clip, orNoneif clip can not provide a track element for the given type or an error occurred.- Return type:
A method for creating the core
GES.TrackElementof a clip, to be added to aGES.Trackof the given track type.If a clip may produce several track elements per track type,
GES.CreateTrackElementsFuncis more appropriate.
- GES.CreateTrackElementsFunc(clip, type)¶
- Parameters:
type (
GES.TrackType) – AGES.TrackTypeto createGES.TrackElement-s for
- Returns:
A list of the
GES.TrackElement-s created by clip for the given type, orNoneif 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.Extractabletype to check id forid (
str) – The ID to check
- Return type:
Method for checking that an ID is valid for the given
GES.Extractabletype. 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:idto set on any corresponding assets, based on id, orNoneif id is not valid.
- GES.FillTrackElementFunc(clip, track_element, nleobj)¶
- Parameters:
clip (
GES.Clip) – TheGES.Clipcontrolling the track elementstrack_element (
GES.TrackElement) – TheGES.TrackElementnleobj (
Gst.Element) – The nleobject that needs to be filled
- Returns:
Trueif 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.Elementto 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.Formattertimeline (
GES.Timeline) – aGES.Timeline
- Returns:
Trueif the timeline data was successfully loaded from the URI, elseFalse.- Return type:
Virtual method for loading a timeline from a given URI.
Every
GES.Formattersubclass needs to implement this method.
- GES.FormatterSaveToURIMethod(formatter, timeline, uri, overwrite)¶
- Parameters:
formatter (
GES.Formatter) – aGES.Formattertimeline (
GES.Timeline) – aGES.Timeline
- Returns:
Trueif the timeline data was successfully saved to the URI elseFalse.- Return type:
Virtual method for saving a timeline to a uri.
Every
GES.Formattersubclass needs to implement this method.
- GES.MetaForeachFunc(container, key, value, *user_data)¶
- Parameters:
container (
GES.MetaContainer) – AGES.MetaContainerkey (
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.