X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2Fsrc%2Fframework%2Fmlt_playlist.h;h=7bad6db38e8ac6487fae3a7eb0f312ec27f29e46;hb=ebe424a8561adf11509de6a1ed504ce07a8abdaf;hp=c6013860e73f32944614e60dfe42b3506ac59cca;hpb=1a50e779cfd5e1bc6a80054f6f56e64280c2dc41;p=melted diff --git a/mlt/src/framework/mlt_playlist.h b/mlt/src/framework/mlt_playlist.h index c601386..7bad6db 100644 --- a/mlt/src/framework/mlt_playlist.h +++ b/mlt/src/framework/mlt_playlist.h @@ -23,6 +23,23 @@ #include "mlt_producer.h" +/** Structure for returning clip information. +*/ + +typedef struct +{ + int clip; + mlt_producer producer; + mlt_position start; + char *resource; + mlt_position frame_in; + mlt_position frame_out; + mlt_position frame_count; + mlt_position length; + float fps; +} +mlt_playlist_clip_info; + /** Public final methods */ @@ -30,9 +47,19 @@ extern mlt_playlist mlt_playlist_init( ); extern mlt_producer mlt_playlist_producer( mlt_playlist this ); extern mlt_service mlt_playlist_service( mlt_playlist this ); extern mlt_properties mlt_playlist_properties( mlt_playlist this ); +extern int mlt_playlist_count( mlt_playlist this ); +extern int mlt_playlist_clear( mlt_playlist this ); extern int mlt_playlist_append( mlt_playlist this, mlt_producer producer ); -extern int mlt_playlist_blank( mlt_playlist this, mlt_timecode length ); -extern mlt_timecode mlt_playlist_clip( mlt_playlist this, mlt_whence whence, int index ); +extern int mlt_playlist_append_io( mlt_playlist this, mlt_producer producer, mlt_position in, mlt_position out ); +extern int mlt_playlist_blank( mlt_playlist this, mlt_position length ); +extern mlt_position mlt_playlist_clip( mlt_playlist this, mlt_whence whence, int index ); +extern int mlt_playlist_current_clip( mlt_playlist this ); +extern mlt_producer mlt_playlist_current( mlt_playlist this ); +extern int mlt_playlist_get_clip_info( mlt_playlist this, mlt_playlist_clip_info *info, int index ); +extern int mlt_playlist_insert( mlt_playlist this, mlt_producer producer, int where, mlt_position in, mlt_position out ); +extern int mlt_playlist_remove( mlt_playlist this, int where ); +extern int mlt_playlist_move( mlt_playlist this, int from, int to ); +extern int mlt_playlist_resize_clip( mlt_playlist this, int clip, mlt_position in, mlt_position out ); extern void mlt_playlist_close( mlt_playlist this ); #endif