git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@1114
d19143bc-622f-0410-bfdd-
b5b2a6649095
{
mlt_producer_optimise( get_producer( ) );
}
+
+Frame* Producer::get_frame( int index )
+{
+ mlt_frame f = NULL;
+ int result = get_producer()->get_frame( get_producer(), &f, index );
+ if ( f )
+ return new Frame( f );
+ return NULL;
+}
class Service;
class Filter;
class Profile;
+ class Frame;
class MLTPP_DECLSPEC Producer : public Service
{
bool same_clip( Producer &that );
bool runs_into( Producer &that );
void optimise( );
+ Frame* get_frame( int index = 0 );
};
}
%newobject Service::filter( int );
%newobject Producer::filter( int );
%newobject Producer::cut( int, int );
+%newobject Producer::get_frame( int );
%newobject Playlist::current( );
%newobject Playlist::clip_info( int );
%newobject Playlist::get_clip( int );