Struct mlt_sys::mlt_service_s[][src]

#[repr(C)]
pub struct mlt_service_s { pub parent: mlt_properties_s, pub get_frame: Option<unsafe extern "C" fn(self_: mlt_service, frame: mlt_frame_ptr, index: c_int) -> c_int>, pub close: mlt_destructor, pub close_object: *mut c_void, pub local: *mut c_void, pub child: *mut c_void, }

\brief Service abstract base class

\extends mlt_properties The service is the base class for all of the interesting classes and plugins for MLT. A service can have multiple inputs connections to other services called its "producers" but only a single output to another service called its "consumer." A service that has both producer and consumer connections is called a filter. Any service can have zero or more filters "attached" to it. We call any collection of services and their connections a "service network," which is similar to what DirectShow calls a filter graph or what gstreamer calls an element pipeline.

\event \em service-changed a filter was attached or detached or a transition was connected or disconnected \event \em property-changed \properties \em mlt_type identifies the subclass \properties \em _mlt_service_hidden a flag that indicates whether to hide the mlt_service \properties \em mlt_service is the name of the implementation of the service \properties \em resource is either the stream identifier or grandchild-class \properties \em in when to start, what is started is service-specific \properties \em out when to stop \properties \em _filter_private Set this on a service to ensure that attached filters are handled privately. See modules/core/filter_region.c and modules/core/filter_watermark.c for examples. \properties \em _profile stores the mlt_profile for a service \properties \em _unique_id is a unique identifier \properties \em _need_previous_next boolean that instructs producers to get preceding and following frames inside of \p mlt_service_get_frame

Fields

< \private A service extends properties.

Get a frame of data (virtual function).

\param mlt_producer a producer \param mlt_frame_ptr a frame pointer by reference \param int an index \return true if there was an error

the destructor virtual function

< the object supplied to the close virtual function

< \private instance object

< \private the object of a subclass

Trait Implementations

impl Debug for mlt_service_s
[src]

Formats the value using the given formatter. Read more

impl Copy for mlt_service_s
[src]

impl Clone for mlt_service_s
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for mlt_service_s

impl !Sync for mlt_service_s