* Copyright (C) 2004-2005 Charles Yates
* Author: Charles Yates <charles.yates@pandora.be>
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published
- * by the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdlib.h>
#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( ) );
+}