Set the time translation query functions for the time effect.
If an effect is a time effect, it will have two sets of coordinates: one at its sink and one at its source. The given functions should
be able to translate between these two sets of coordinates. More specifically, source_to_sink_func
should *emulate* how the
corresponding Element would translate the Segment time
field,
and sink_to_source_func
should emulate how the corresponding Element would translate the
seek query start
and stop
values, as used in seek. As such,
sink_to_source_func
should act as an approximate reverse of source_to_sink_func
.
Note, these functions will be passed a table of time properties, as registered in register_time_property, and their values. The functions should emulate what the translation *would* be *if* the time properties were set to the given values. They should not use the currently set values.
Note that this must not be part of a clip, nor can it have has_internal_source set to true .
this | |
source_to_sink_func |
The function to use for querying how a time is translated from the source coordinates to the sink coordinates of this |
sink_to_source_func |
The function to use for querying how a time is translated from the sink coordinates to the source coordinates of this |
destroy |
Method to call to destroy |
user_data |
Data to pass to both |
true if the translation functions were set. |