MLT 6.26.0
mlt_consumer.h
Go to the documentation of this file.
1
23#ifndef MLT_CONSUMER_H
24#define MLT_CONSUMER_H
25
26#include "mlt_service.h"
27#include "mlt_events.h"
28#include <pthread.h>
29
88{
91
97 int ( *start )( mlt_consumer );
98
104 int ( *stop )( mlt_consumer );
105
112
117 void ( *purge )( mlt_consumer );
118
123 void ( *close )( mlt_consumer );
124
125 void *local;
126 void *child;
127};
128
129#define MLT_CONSUMER_SERVICE( consumer ) ( &( consumer )->parent )
130#define MLT_CONSUMER_PROPERTIES( consumer ) MLT_SERVICE_PROPERTIES( MLT_CONSUMER_SERVICE( consumer ) )
131
132extern int mlt_consumer_init( mlt_consumer self, void *child, mlt_profile profile );
136extern int mlt_consumer_connect( mlt_consumer self, mlt_service producer );
147
148#endif
int mlt_consumer_start(mlt_consumer self)
mlt_frame mlt_consumer_get_frame(mlt_consumer self)
int mlt_consumer_is_stopped(mlt_consumer self)
mlt_position mlt_consumer_position(mlt_consumer)
mlt_properties mlt_consumer_properties(mlt_consumer self)
void mlt_consumer_stopped(mlt_consumer self)
void mlt_consumer_purge(mlt_consumer self)
mlt_consumer mlt_consumer_new(mlt_profile profile)
int mlt_consumer_stop(mlt_consumer self)
mlt_frame mlt_consumer_rt_frame(mlt_consumer self)
void mlt_consumer_close(mlt_consumer)
int mlt_consumer_connect(mlt_consumer self, mlt_service producer)
mlt_service mlt_consumer_service(mlt_consumer self)
int mlt_consumer_put_frame(mlt_consumer self, mlt_frame frame)
int mlt_consumer_init(mlt_consumer self, void *child, mlt_profile profile)
event handling
interface declaration for all service classes
int32_t mlt_position
Definition mlt_types.h:163
struct mlt_consumer_s * mlt_consumer
pointer to Consumer object
Definition mlt_types.h:200
Consumer abstract service class.
Definition mlt_consumer.h:88
int(* is_stopped)(mlt_consumer)
Get whether the consumer is running or stopped (virtual function).
Definition mlt_consumer.h:111
void(* purge)(mlt_consumer)
Purge the consumer of buffered data (virtual function).
Definition mlt_consumer.h:117
void(* close)(mlt_consumer)
The destructor virtual function.
Definition mlt_consumer.h:123
void * local
instance object
Definition mlt_consumer.h:125
int(* stop)(mlt_consumer)
Stop the consumer (virtual function).
Definition mlt_consumer.h:104
struct mlt_service_s parent
A consumer is a service.
Definition mlt_consumer.h:90
int(* start)(mlt_consumer)
Start the consumer to pull frames (virtual function).
Definition mlt_consumer.h:97
void * child
the object of a subclass
Definition mlt_consumer.h:126
Frame class.
Definition mlt_frame.h:74
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