95#define MLT_PRODUCER_SERVICE( producer ) ( &( producer )->parent )
96#define MLT_PRODUCER_PROPERTIES( producer ) MLT_SERVICE_PROPERTIES( MLT_PRODUCER_SERVICE( producer ) )
abstraction for all filter services
interface declaration for all service classes
mlt_time_format
The time string formats.
Definition: mlt_types.h:110
int32_t mlt_position
Definition: mlt_types.h:163
struct mlt_frame_s ** mlt_frame_ptr
pointer to Frame object
Definition: mlt_types.h:188
struct mlt_producer_s * mlt_producer
pointer to Producer object
Definition: mlt_types.h:193
void(* mlt_destructor)(void *)
pointer to destructor function
Definition: mlt_types.h:212
Filter abstract service class.
Definition: mlt_filter.h:40
Producer abstract service class.
Definition: mlt_producer.h:70
double mlt_producer_get_speed(mlt_producer self)
Get the playing speed.
Definition: mlt_producer.c:420
mlt_position mlt_producer_get_playtime(mlt_producer self)
Get the total play time.
Definition: mlt_producer.c:541
int mlt_producer_attach(mlt_producer self, mlt_filter filter)
Attach a filter.
Definition: mlt_producer.c:746
mlt_position mlt_producer_get_out(mlt_producer self)
Get the out point.
Definition: mlt_producer.c:529
int mlt_producer_set_speed(mlt_producer self, double speed)
Set the playing speed.
Definition: mlt_producer.c:408
int mlt_producer_seek(mlt_producer self, mlt_position position)
Seek to a specified position.
Definition: mlt_producer.c:311
mlt_position mlt_producer_frame(mlt_producer self)
Get the current position (relative to start of producer).
Definition: mlt_producer.c:382
int mlt_producer_is_cut(mlt_producer self)
Determine if producer is a cut.
Definition: mlt_producer.c:181
int mlt_producer_detach(mlt_producer self, mlt_filter filter)
Detach a filter.
Definition: mlt_producer.c:759
char * mlt_producer_get_length_time(mlt_producer self, mlt_time_format format)
Get the total, unedited length of the producer as a time string.
Definition: mlt_producer.c:570
char * mlt_producer_frame_time(mlt_producer self, mlt_time_format format)
Get the current position (relative to start of producer) as a time string.
Definition: mlt_producer.c:395
mlt_destructor close
the destructor virtual function
Definition: mlt_producer.h:84
mlt_position mlt_producer_get_in(mlt_producer self)
Get the in point.
Definition: mlt_producer.c:517
void * local
instance object
Definition: mlt_producer.h:87
mlt_producer mlt_producer_cut(mlt_producer self, int in, int out)
Create a cut of this producer.
Definition: mlt_producer.c:248
int mlt_producer_clear(mlt_producer self)
Physically reduce the producer (typically a cut) to a 0 length.
Definition: mlt_producer.c:497
mlt_filter mlt_producer_filter(mlt_producer self, int index)
Retrieve a filter.
Definition: mlt_producer.c:772
mlt_producer mlt_producer_cut_parent(mlt_producer self)
Obtain the parent producer.
Definition: mlt_producer.c:227
int mlt_producer_optimise(mlt_producer self)
Optimise for overlapping cuts from the same clip.
Definition: mlt_producer.c:990
int mlt_producer_seek_time(mlt_producer self, const char *time)
Seek to a specified time string.
Definition: mlt_producer.c:356
int(* get_frame)(mlt_producer, mlt_frame_ptr, int)
Get a frame of data (virtual function).
Definition: mlt_producer.h:81
int mlt_producer_is_blank(mlt_producer self)
Determine if the producer is a blank.
Definition: mlt_producer.c:210
mlt_properties mlt_producer_properties(mlt_producer self)
Get the producer properties.
Definition: mlt_producer.c:296
struct mlt_service_s parent
A producer is a service.
Definition: mlt_producer.h:72
void * close_object
the object supplied to the close virtual function
Definition: mlt_producer.h:85
int mlt_producer_is_mix(mlt_producer self)
Determine if producer is a mix.
Definition: mlt_producer.c:194
mlt_service mlt_producer_service(mlt_producer self)
Get the parent service object.
Definition: mlt_producer.c:283
void mlt_producer_close(mlt_producer self)
Close the producer.
Definition: mlt_producer.c:1071
double mlt_producer_get_fps(mlt_producer self)
Get the frames per second.
Definition: mlt_producer.c:434
mlt_producer mlt_producer_new(mlt_profile profile)
Create and initialize a new producer.
Definition: mlt_producer.c:154
int mlt_producer_set_in_and_out(mlt_producer self, mlt_position in, mlt_position out)
Set the in and out points.
Definition: mlt_producer.c:455
int64_t mlt_producer_get_creation_time(mlt_producer self)
Get the creation time for the producer.
Definition: mlt_producer.c:1185
mlt_position mlt_producer_position(mlt_producer self)
Get the current position (relative to in point).
Definition: mlt_producer.c:370
void mlt_producer_prepare_next(mlt_producer self)
Prepare for next frame.
Definition: mlt_producer.c:584
void mlt_producer_set_creation_time(mlt_producer self, int64_t creation_time)
Set the creation time for the producer.
Definition: mlt_producer.c:1265
mlt_position mlt_producer_get_length(mlt_producer self)
Get the total, unedited length of the producer.
Definition: mlt_producer.c:555
void * child
the object of a subclass
Definition: mlt_producer.h:88
int mlt_producer_init(mlt_producer self, void *child)
Initialize a producer service.
Definition: mlt_producer.c:59
Profile class.
Definition: mlt_profile.h:35
Properties class.
Definition: mlt_properties.h:37
Service abstract base class.
Definition: mlt_service.h:58
void * child
the object of a subclass
Definition: mlt_service.h:75