X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mlt%2B%2B%2Fsrc%2FMltPlaylist.h;h=badc1d03349dbab482bbd2ccaf2de29d0bc46e73;hb=3c4272d70dd753a1aad5c4d3fce8ee46f8c47cfe;hp=d1c019dbb091d26b0a85b8e6ee66f788a064624c;hpb=bb5183402001f5b7e481af14d631c68f62035abd;p=mlt diff --git a/mlt++/src/MltPlaylist.h b/mlt++/src/MltPlaylist.h index d1c019db..badc1d03 100644 --- a/mlt++/src/MltPlaylist.h +++ b/mlt++/src/MltPlaylist.h @@ -35,8 +35,10 @@ namespace Mlt class ClipInfo { public: + ClipInfo( ); ClipInfo( mlt_playlist_clip_info *info ); ~ClipInfo( ); + void update( mlt_playlist_clip_info *info ); int clip; Producer *producer; Producer *cut; @@ -69,18 +71,34 @@ namespace Mlt int clip( mlt_whence whence, int index ); int current_clip( ); Producer *current( ); - ClipInfo *clip_info( int index ); + ClipInfo *clip_info( int index, ClipInfo *info = NULL ); 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 split_at( int position, bool left = true ); 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 ); + Producer *get_clip_at( int position ); + int get_clip_index_at( int position ); bool is_mix( int clip ); + bool is_blank( int clip ); + bool is_blank_at( int position ); + void consolidate_blanks( int keep_length = 0 ); + Producer *replace_with_blank( int clip ); + void insert_blank( int clip, int length ); + void pad_blanks( int position, int length, int find = 0 ); + int insert_at( int position, Producer *producer, int mode = 0 ); + int insert_at( int position, Producer &producer, int mode = 0 ); + int clip_start( int clip ); + int clip_length( int clip ); + int blanks_from( int clip, int bounded = 0 ); + int remove_region( int position, int length ); + int move_region( int position, int length, int new_position ); }; }