X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fsrc%2FMltPlaylist.h;h=d1c019dbb091d26b0a85b8e6ee66f788a064624c;hb=b5453ebae648422ca342f9d8d7ca4d7ecc5c3ef7;hp=1326ca79bcb680cbe60ebcc05df18ccdddac41b0;hpb=01c1d44e8df201c3061cf20addf5421d21d8bcb0;p=melted diff --git a/mlt++/src/MltPlaylist.h b/mlt++/src/MltPlaylist.h index 1326ca7..d1c019d 100644 --- a/mlt++/src/MltPlaylist.h +++ b/mlt++/src/MltPlaylist.h @@ -27,28 +27,60 @@ namespace Mlt { - class Playlist : public Producer + class Producer; + class Service; + class Playlist; + class Transition; + + class ClipInfo { public: - virtual mlt_playlist get_playlist( ) = 0; - mlt_producer get_producer( ); - int count( ); - int clear( ); - int append( Producer &producer, mlt_position in = -1, mlt_position out = -1 ); - int blank( mlt_position length ); + ClipInfo( mlt_playlist_clip_info *info ); + ~ClipInfo( ); + int clip; + Producer *producer; + Producer *cut; + int start; + char *resource; + int frame_in; + int frame_out; + int frame_count; + int length; + float fps; + int repeat; }; - - class PlaylistInstance : public Playlist + + class Playlist : public Producer { private: - bool destroy; mlt_playlist instance; public: - mlt_playlist get_playlist( ); - PlaylistInstance( ); - PlaylistInstance( Playlist &playlist ); - PlaylistInstance( mlt_playlist playlist ); - virtual ~PlaylistInstance( ); + Playlist( ); + Playlist( Service &playlist ); + Playlist( Playlist &playlist ); + Playlist( mlt_playlist playlist ); + virtual ~Playlist( ); + virtual mlt_playlist get_playlist( ); + mlt_producer get_producer( ); + int count( ); + int clear( ); + int append( Producer &producer, int in = -1, int out = -1 ); + int blank( int length ); + int clip( mlt_whence whence, int index ); + int current_clip( ); + Producer *current( ); + ClipInfo *clip_info( int index ); + int insert( Producer &producer, int where, int in = -1, int out = -1 ); + int remove( int where ); + int move( int from, int to ); + int resize_clip( int clip, int in, int out ); + int split( int clip, int position ); + int join( int clip, int count = 1, int merge = 1 ); + int mix( int clip, int length, Transition *transition = NULL ); + int mix_add( int clip, Transition *transition ); + int repeat( int clip, int count ); + Producer *get_clip( int clip ); + bool is_mix( int clip ); }; }