#include <string.h>
#include "MltTransition.h"
#include "MltProfile.h"
+#include "MltProducer.h"
using namespace Mlt;
Transition::Transition( Profile& profile, const char *id, const char *arg ) :
{
mlt_transition_set_in_and_out( get_transition( ), in, out );
}
+
+int Transition::connect( Producer &producer, int a_track, int b_track )
+{
+ return mlt_transition_connect( get_transition(), producer.get_service(), a_track, b_track );
+}
+
+int Transition::get_a_track( )
+{
+ return mlt_transition_get_a_track( get_transition() );
+}
+
+int Transition::get_b_track( )
+{
+ return mlt_transition_get_b_track( get_transition() );
+}
+
+int Transition::get_in( )
+{
+ return mlt_transition_get_in( get_transition() );
+}
+
+int Transition::get_out( )
+{
+ return mlt_transition_get_out( get_transition() );
+}
+
+int Transition::get_length( )
+{
+ return mlt_transition_get_length( get_transition( ) );
+}
+
+int Transition::get_position( Frame &frame )
+{
+ return mlt_transition_get_position( get_transition( ), frame.get_frame( ) );
+}
+
+double Transition::get_progress( Frame &frame )
+{
+ return mlt_transition_get_progress( get_transition( ), frame.get_frame( ) );
+}
+
+double Transition::get_progress_delta( Frame &frame )
+{
+ return mlt_transition_get_progress_delta( get_transition( ), frame.get_frame( ) );
+}