X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fframework%2Fmlt_producer.h;h=8e226f2bdd98dd13b08864b245aef95d424fb131;hb=3d1f96959dd9d2662191ef8faa821f5e129dc8fb;hp=6f98ad7439008d930be6ee7d13d703d5d36ee898;hpb=e5fd66367b6f976e3bcb0ada98408afcb40cb2ce;p=mlt diff --git a/src/framework/mlt_producer.h b/src/framework/mlt_producer.h index 6f98ad74..8e226f2b 100644 --- a/src/framework/mlt_producer.h +++ b/src/framework/mlt_producer.h @@ -1,8 +1,9 @@ /** * \file mlt_producer.h * \brief abstraction for all producer services + * \see mlt_producer_s * - * Copyright (C) 2003-2008 Ushodaya Enterprises Limited + * Copyright (C) 2003-2009 Ushodaya Enterprises Limited * \author Charles Yates * * This library is free software; you can redistribute it and/or @@ -25,6 +26,7 @@ #include "mlt_service.h" #include "mlt_filter.h" +#include "mlt_profile.h" /** \brief Producer abstract service class * @@ -34,7 +36,7 @@ * service network - that could be through synthesis or reading a stream. * * \extends mlt_service - * \event \em producer-changed + * \event \em producer-changed either service-changed was fired or the timing of the producer changed * \properties \em mlt_type the name of the service subclass, e.g. mlt_producer * \properties \em mlt_service the name of a producer subclass * \properties \em _position the current position of the play head, relative to the in point @@ -87,12 +89,14 @@ struct mlt_producer_s #define MLT_PRODUCER_PROPERTIES( producer ) MLT_SERVICE_PROPERTIES( MLT_PRODUCER_SERVICE( producer ) ) extern int mlt_producer_init( mlt_producer self, void *child ); -extern mlt_producer mlt_producer_new( ); +extern mlt_producer mlt_producer_new( mlt_profile ); extern mlt_service mlt_producer_service( mlt_producer self ); extern mlt_properties mlt_producer_properties( mlt_producer self ); extern int mlt_producer_seek( mlt_producer self, mlt_position position ); +extern int mlt_producer_seek_time( mlt_producer self, const char* time ); extern mlt_position mlt_producer_position( mlt_producer self ); extern mlt_position mlt_producer_frame( mlt_producer self ); +char* mlt_producer_frame_time( mlt_producer self, mlt_time_format ); extern int mlt_producer_set_speed( mlt_producer self, double speed ); extern double mlt_producer_get_speed( mlt_producer self ); extern double mlt_producer_get_fps( mlt_producer self ); @@ -102,6 +106,7 @@ extern mlt_position mlt_producer_get_in( mlt_producer self ); extern mlt_position mlt_producer_get_out( mlt_producer self ); extern mlt_position mlt_producer_get_playtime( mlt_producer self ); extern mlt_position mlt_producer_get_length( mlt_producer self ); +extern char* mlt_producer_get_length_time( mlt_producer self, mlt_time_format ); extern void mlt_producer_prepare_next( mlt_producer self ); extern int mlt_producer_attach( mlt_producer self, mlt_filter filter ); extern int mlt_producer_detach( mlt_producer self, mlt_filter filter );