|
mlt 0.7.6
|
Filter abstract service class. More...
#include <mlt_filter.h>
Public Member Functions | |
| void | mlt_filter_close (mlt_filter self) |
| Close and destroy the filter. | |
| int | mlt_filter_connect (mlt_filter self, mlt_service producer, int index) |
| Connect this filter to a producers track. | |
| mlt_position | mlt_filter_get_in (mlt_filter self) |
| Get the in point. | |
| mlt_position | mlt_filter_get_length (mlt_filter self) |
| Get the duration. | |
| mlt_position | mlt_filter_get_length2 (mlt_filter self, mlt_frame frame) |
| Get the duration. | |
| mlt_position | mlt_filter_get_out (mlt_filter self) |
| Get the out point. | |
| mlt_position | mlt_filter_get_position (mlt_filter self, mlt_frame frame) |
| Get the position within the filter. | |
| double | mlt_filter_get_progress (mlt_filter self, mlt_frame frame) |
| Get the percent complete. | |
| int | mlt_filter_get_track (mlt_filter self) |
| Return the track that this filter is operating on. | |
| int | mlt_filter_init (mlt_filter self, void *child) |
| Initialize a new filter. | |
| mlt_filter | mlt_filter_new () |
| Create a new filter and initialize it. | |
| mlt_frame | mlt_filter_process (mlt_filter self, mlt_frame frame) |
| Process the frame. | |
| mlt_properties | mlt_filter_properties (mlt_filter self) |
| Get the filter properties. | |
| mlt_service | mlt_filter_service (mlt_filter self) |
| Get the service class interface. | |
| void | mlt_filter_set_in_and_out (mlt_filter self, mlt_position in, mlt_position out) |
| Set the starting and ending time. | |
Data Fields | |
| void * | child |
| Protected. | |
| void(* | close )(mlt_filter) |
| public virtual | |
| struct mlt_service_s | parent |
| We're implementing service here. | |
| mlt_frame(* | process )(mlt_filter, mlt_frame) |
| protected filter method | |
Private Member Functions | |
| static int | filter_get_frame (mlt_service service, mlt_frame_ptr frame, int index) |
| Get a frame from this filter. | |
Filter abstract service class.
A filter is a service that may modify the output of a single producer.
track the index of the track of a multitrack on which the filter is applied
service a reference to the service to which this filter is attached. Currently this is not cleared when the filter is detached.
| static int filter_get_frame | ( | mlt_service | service, |
| mlt_frame_ptr | frame, | ||
| int | index | ||
| ) | [private] |
Get a frame from this filter.
| service | a service | |
| [out] | frame | a frame by reference |
| index | as determined by the producer |
| void mlt_filter_close | ( | mlt_filter | self | ) |
Close and destroy the filter.
| self | a filter |
| int mlt_filter_connect | ( | mlt_filter | self, |
| mlt_service | producer, | ||
| int | index | ||
| ) |
Connect this filter to a producers track.
Note that a filter only operates on a single track, and by default it operates on the entirety of that track.
| self | a filter |
| producer | the producer to which to connect this filter |
| index | which of potentially multiple producers to this service (0 based) |
| mlt_position mlt_filter_get_in | ( | mlt_filter | self | ) |
Get the in point.
| self | a filter |
| mlt_position mlt_filter_get_length | ( | mlt_filter | self | ) |
Get the duration.
| self | a filter |
| mlt_position mlt_filter_get_length2 | ( | mlt_filter | self, |
| mlt_frame | frame | ||
| ) |
Get the duration.
This version works with filters with no explicit in and out by getting the length of the frame's producer.
| self | a filter |
| frame | a frame from which to get its producer |
| mlt_position mlt_filter_get_out | ( | mlt_filter | self | ) |
Get the out point.
| self | a filter |
| mlt_position mlt_filter_get_position | ( | mlt_filter | self, |
| mlt_frame | frame | ||
| ) |
Get the position within the filter.
The position is relative to the in point. This will only be valid once mlt_filter_process is called.
| self | a filter |
| frame | a frame |
| double mlt_filter_get_progress | ( | mlt_filter | self, |
| mlt_frame | frame | ||
| ) |
Get the percent complete.
This will only be valid once mlt_filter_process is called.
| self | a filter |
| frame | a frame |
| int mlt_filter_get_track | ( | mlt_filter | self | ) |
Return the track that this filter is operating on.
| self | a filter |
| int mlt_filter_init | ( | mlt_filter | self, |
| void * | child | ||
| ) |
Initialize a new filter.
| self | a filter |
| child | the object of a subclass |
| mlt_filter mlt_filter_new | ( | ) |
Create a new filter and initialize it.
| mlt_frame mlt_filter_process | ( | mlt_filter | self, |
| mlt_frame | frame | ||
| ) |
Process the frame.
When fetching the frame position in a subclass process method, the frame's position is relative to the filter's producer - not the filter's in point or timeline.
| self | a filter |
| frame | a frame |
| mlt_properties mlt_filter_properties | ( | mlt_filter | self | ) |
Get the filter properties.
| self | a filter |
| mlt_service mlt_filter_service | ( | mlt_filter | self | ) |
Get the service class interface.
| self | a filter |
| void mlt_filter_set_in_and_out | ( | mlt_filter | self, |
| mlt_position | in, | ||
| mlt_position | out | ||
| ) |
Set the starting and ending time.
| self | a filter |
| in | the time relative to the producer at which start applying the filter |
| out | the time relative to the producer at which to stop applying the filter |
| void* mlt_filter_s::child |
Protected.
Reimplemented from mlt_service_s.
| void( * mlt_filter_s::close)(mlt_filter) |
public virtual
Reimplemented from mlt_service_s.
We're implementing service here.
Reimplemented from mlt_service_s.
protected filter method
1.7.3