1 /** 2 * MltTransition.h - MLT Wrapper 3 * Copyright (C) 2004-2019 Meltytech, LLC 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 */ 19 20 #ifndef MLTPP_TRANSITION_H 21 #define MLTPP_TRANSITION_H 22 23 #include "MltConfig.h" 24 25 #include <framework/mlt.h> 26 #include "MltService.h" 27 28 namespace Mlt 29 { 30 class Service; 31 class Profile; 32 class Frame; 33 class Chain; 34 class Link; 35 36 class MLTPP_DECLSPEC Transition : public Service 37 { 38 private: 39 mlt_transition instance; 40 public: 41 Transition(); 42 Transition( Profile& profile, const char *id, const char *arg = NULL ); 43 Transition( mlt_profile profile, const char *id, const char *arg = NULL ); 44 Transition( Service &transition ); 45 Transition( Transition &transition ); 46 Transition( const Transition &transition ); 47 Transition( mlt_transition transition ); 48 virtual ~Transition( ); 49 Transition& operator=( const Transition &transition ); 50 virtual mlt_transition get_transition( ); 51 mlt_service get_service( ); 52 void set_in_and_out( int in, int out ); 53 void set_tracks( int a_track, int b_track ); 54 int connect( Producer &producer, int a_track, int b_track ); 55 int connect( Service &service, int a_track, int b_track ); 56 int get_a_track( ); 57 int get_b_track( ); 58 int get_in( ); 59 int get_out( ); 60 int get_length( ); 61 int get_position( Frame &frame ); 62 double get_progress( Frame &frame ); 63 double get_progress_delta( Frame &frame ); 64 }; 65 } 66 67 #endif 68