transition region
[melted] / src / framework / mlt_consumer.h
index 6c4164b..290d02b 100644 (file)
@@ -22,6 +22,7 @@
 #define _MLT_CONSUMER_H_
 
 #include "mlt_service.h"
+#include <pthread.h>
 
 /** The interface definition for all consumers.
 */
@@ -40,6 +41,13 @@ struct mlt_consumer_s
        // Private data
        void *private;
        void *child;
+
+       int ahead;
+       int width;
+       int height;
+       mlt_image_format format;
+       mlt_deque queue;
+       pthread_t ahead_thread;
 };
 
 /** Public final methods
@@ -50,6 +58,7 @@ 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 void mlt_consumer_close( mlt_consumer );