new mix related methods
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 29 Sep 2004 17:27:28 +0000 (17:27 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 29 Sep 2004 17:27:28 +0000 (17:27 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@457 d19143bc-622f-0410-bfdd-b5b2a6649095

mlt++/src/MltPlaylist.cpp
mlt++/src/MltPlaylist.h
mlt++/swig/mltpp.i

index 2a207fb..942b219 100644 (file)
@@ -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;
+}
+
index f31c58c..d1c019d 100644 (file)
@@ -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 );
        };
 }
 
index 7793f78..518b93c 100644 (file)
@@ -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( );