1 /** 2 * MltTractor.h - Tractor wrapper 3 * Copyright (C) 2004-2015 Meltytech, LLC 4 * Author: Charles Yates <charles.yates@gmail.com> 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 */ 20 21 #ifndef MLTPP_TRACTOR_H 22 #define MLTPP_TRACTOR_H 23 24 #include "MltConfig.h" 25 26 #include <framework/mlt.h> 27 28 #include "MltProducer.h" 29 30 namespace Mlt 31 { 32 class Producer; 33 class Field; 34 class Multitrack; 35 class Transition; 36 class Filter; 37 class Profile; 38 39 class MLTPP_DECLSPEC Tractor : public Producer 40 { 41 private: 42 mlt_tractor instance; 43 public: 44 Tractor( ); 45 Tractor( Profile& profile ); 46 Tractor( Service &tractor ); 47 Tractor( mlt_tractor tractor ); 48 Tractor( Tractor &tractor ); 49 Tractor( Profile& profile, char *id, char *arg = NULL ); 50 Tractor( mlt_profile profile, char *id, char *arg = NULL ); 51 virtual ~Tractor( ); 52 virtual mlt_tractor get_tractor( ); 53 mlt_producer get_producer( ); 54 Multitrack *multitrack( ); 55 Field *field( ); 56 void refresh( ); 57 int set_track( Producer &producer, int index ); 58 int insert_track( Producer &producer, int index ); 59 int remove_track( int index ); 60 Producer *track( int index ); 61 int count( ); 62 void plant_transition( Transition &transition, int a_track = 0, int b_track = 1 ); 63 void plant_transition( Transition *transition, int a_track = 0, int b_track = 1 ); 64 void plant_filter( Filter &filter, int track = 0 ); 65 void plant_filter( Filter *filter, int track = 0 ); 66 bool locate_cut( Producer *producer, int &track, int &cut ); 67 int connect( Producer &producer ); 68 }; 69 } 70 71 #endif 72 73