local: *;
};
+
+MLT_0.9.0 {
+ global:
+ "mlt_service_filter_count";
+} MLT_0.8.8;
return error;
}
-/** Retrieve a filter.
+/** Get the number of filters attached.
+ *
+ * \public \memberof mlt_service_s
+ * \param self a service
+ * \return the number of attached filters or -1 if there was an error
+ */
+
+int mlt_service_filter_count( mlt_service self )
+{
+ int result = -1;
+ if ( self )
+ {
+ mlt_service_base *base = self->local;
+ result = base->filter_count;
+ }
+ return result;
+}
+
+/** Retrieve an attached filter.
*
* \public \memberof mlt_service_s
* \param self a service
extern int mlt_service_attach( mlt_service self, mlt_filter filter );
extern int mlt_service_detach( mlt_service self, mlt_filter filter );
extern void mlt_service_apply_filters( mlt_service self, mlt_frame frame, int index );
+extern int mlt_service_filter_count( mlt_service self );
extern mlt_filter mlt_service_filter( mlt_service self, int index );
extern mlt_profile mlt_service_profile( mlt_service self );
extern void mlt_service_set_profile( mlt_service self, mlt_profile profile );
return mlt_service_detach( get_service( ), filter.get_filter( ) );
}
+int Service::filter_count()
+{
+ return mlt_service_filter_count( get_service() );
+}
+
Filter *Service::filter( int index )
{
mlt_filter result = mlt_service_filter( get_service( ), index );
mlt_service_type type( );
int attach( Filter &filter );
int detach( Filter &filter );
+ int filter_count( );
Filter *filter( int index );
void set_profile( Profile &profile );
};
global:
extern "C++" {
"Mlt::Deque::peek(int)";
+ "Mlt::Service::filter_count()";
};
} MLTPP_0.8.8;