X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_consumer.h;h=d05d307d3858704e99183d7f51d492213ecde085;hb=945a27e179cc4d1290b488a5b7cba466f06d009b;hp=290d02b88293a7648ebca9bb3abb0c01e88c9bc3;hpb=9ab18ed63c37a9ef65e06697ae25f5c198d788bb;p=melted diff --git a/src/framework/mlt_consumer.h b/src/framework/mlt_consumer.h index 290d02b..d05d307 100644 --- a/src/framework/mlt_consumer.h +++ b/src/framework/mlt_consumer.h @@ -39,28 +39,37 @@ struct mlt_consumer_s void ( *close )( mlt_consumer ); // Private data - void *private; + void *local; void *child; + int real_time; int ahead; - int width; - int height; mlt_image_format format; mlt_deque queue; pthread_t ahead_thread; + pthread_mutex_t mutex; + pthread_cond_t cond; + pthread_mutex_t put_mutex; + pthread_cond_t put_cond; + mlt_frame put; }; /** Public final methods */ -extern int mlt_consumer_init( mlt_consumer this, void *child ); -extern mlt_service mlt_consumer_service( mlt_consumer this ); -extern mlt_properties mlt_consumer_properties( mlt_consumer this ); -extern int mlt_consumer_connect( mlt_consumer this, mlt_service producer ); -extern int mlt_consumer_start( mlt_consumer this ); -extern mlt_frame mlt_consumer_get_frame( mlt_consumer this ); -extern int mlt_consumer_stop( mlt_consumer this ); -extern int mlt_consumer_is_stopped( mlt_consumer this ); +extern int mlt_consumer_init( mlt_consumer self, void *child ); +extern mlt_consumer mlt_consumer_new( ); +extern mlt_service mlt_consumer_service( mlt_consumer self ); +extern mlt_properties mlt_consumer_properties( mlt_consumer self ); +extern int mlt_consumer_connect( mlt_consumer self, mlt_service producer ); +extern int mlt_consumer_start( mlt_consumer self ); +extern void mlt_consumer_purge( mlt_consumer self ); +extern int mlt_consumer_put_frame( mlt_consumer self, mlt_frame frame ); +extern mlt_frame mlt_consumer_get_frame( mlt_consumer self ); +extern mlt_frame mlt_consumer_rt_frame( mlt_consumer self ); +extern int mlt_consumer_stop( mlt_consumer self ); +extern int mlt_consumer_is_stopped( mlt_consumer self ); +extern void mlt_consumer_stopped( mlt_consumer self ); extern void mlt_consumer_close( mlt_consumer ); #endif