From: lilo_booter Date: Wed, 29 Sep 2004 17:27:28 +0000 (+0000) Subject: new mix related methods X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=bb5183402001f5b7e481af14d631c68f62035abd;p=melted new mix related methods git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@457 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/mlt++/src/MltPlaylist.cpp b/mlt++/src/MltPlaylist.cpp index 2a207fb..942b219 100644 --- a/mlt++/src/MltPlaylist.cpp +++ b/mlt++/src/MltPlaylist.cpp @@ -166,7 +166,23 @@ int Playlist::mix( int clip, int length, Transition *transition ) return mlt_playlist_mix( get_playlist( ), clip, length, transition == NULL ? NULL : transition->get_transition( ) ); } +int Playlist::mix_add( int clip, Transition *transition ) +{ + return mlt_playlist_mix_add( get_playlist( ), clip, transition == NULL ? NULL : transition->get_transition( ) ); +} + int Playlist::repeat( int clip, int count ) { return mlt_playlist_repeat_clip( get_playlist( ), clip, count ); } + +Producer *Playlist::get_clip( int clip ) +{ + return new Producer( mlt_playlist_get_clip( get_playlist( ), clip ) ); +} + +bool Playlist::is_mix( int clip ) +{ + return mlt_playlist_clip_is_mix( get_playlist( ), clip ) != 0; +} + diff --git a/mlt++/src/MltPlaylist.h b/mlt++/src/MltPlaylist.h index f31c58c..d1c019d 100644 --- a/mlt++/src/MltPlaylist.h +++ b/mlt++/src/MltPlaylist.h @@ -77,7 +77,10 @@ namespace Mlt 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 ); }; } diff --git a/mlt++/swig/mltpp.i b/mlt++/swig/mltpp.i index 7793f78..518b93c 100644 --- a/mlt++/swig/mltpp.i +++ b/mlt++/swig/mltpp.i @@ -43,6 +43,7 @@ namespace Mlt { %newobject Producer::cut( int, int ); %newobject Playlist::current( ); %newobject Playlist::clip_info( int ); +%newobject Playlist::get_clip( int ); %newobject Multitrack::track( int ); %newobject Tractor::multitrack( ); %newobject Tractor::field( );