X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fsrc%2FMltFilter.h;h=ac0a7205bf5cf633d517cb575e438c968afa1e39;hb=6468e1ff9f9e9aeed0aa9eadb0a0491cd994b979;hp=79ae98936c2e7297702287eee3e438ad2727da85;hpb=01c1d44e8df201c3061cf20addf5421d21d8bcb0;p=melted diff --git a/mlt++/src/MltFilter.h b/mlt++/src/MltFilter.h index 79ae989..ac0a720 100644 --- a/mlt++/src/MltFilter.h +++ b/mlt++/src/MltFilter.h @@ -27,30 +27,26 @@ namespace Mlt { + class Service; + class Filter : public Service { + private: + mlt_filter instance; public: - virtual mlt_filter get_filter( ) = 0; + Filter( char *id, char *service = NULL ); + Filter( Service &filter ); + Filter( Filter &filter ); + Filter( mlt_filter filter ); + virtual ~Filter( ); + virtual mlt_filter get_filter( ); mlt_service get_service( ); int connect( Service &service, int index = 0 ); - void set_in_and_out( mlt_position in, mlt_position out ); - mlt_position get_in( ); - mlt_position get_out( ); + void set_in_and_out( int in, int out ); + int get_in( ); + int get_out( ); int get_track( ); }; - - class FilterInstance : public Filter - { - private: - bool destroy; - mlt_filter instance; - public: - mlt_filter get_filter( ); - FilterInstance( char *id, char *service = NULL ); - FilterInstance( Filter &filter ); - FilterInstance( mlt_filter filter ); - virtual ~FilterInstance( ); - }; } #endif