]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_filter.h
Updates to vid.stab module.
[mlt] / src / framework / mlt_filter.h
index c67c9abcc745ffad1c0c415b019507e0b7827ac0..187833d46cdedf26547dab016bbf8fb6b9657d0e 100644 (file)
@@ -1,7 +1,10 @@
-/*
- * mlt_filter.h -- abstraction for all filter services
- * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
- * Author: Charles Yates <charles.yates@pandora.be>
+/**
+ * \file mlt_filter.h
+ * \brief abstraction for all filter services
+ * \see mlt_filter_s
+ *
+ * Copyright (C) 2003-2009 Ushodaya Enterprises Limited
+ * \author Charles Yates <charles.yates@pandora.be>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
 #include "mlt_service.h"
 
 /** \brief Filter abstract service class
+ *
+ * A filter is a service that may modify the output of a single producer.
  *
  * \extends mlt_service_s
+ * \properties \em track the index of the track of a multitrack on which the filter is applied
+ * \properties \em service a reference to the service to which this filter is attached.
+ * \properties \em disable Set this to disable the filter while keeping it in the object model.
+ * Currently this is not cleared when the filter is detached.
  */
 
 struct mlt_filter_s
 {
-       /* We're implementing service here */
+       /** We're implementing service here */
        struct mlt_service_s parent;
 
-       /* public virtual */
+       /** public virtual */
        void ( *close )( mlt_filter );
 
-       /* protected filter method */
+       /** protected filter method */
        mlt_frame ( *process )( mlt_filter, mlt_frame );
 
-       /* Protected */
+       /** Protected */
        void *child;
 };
 
-/** Public final methods
-*/
-
 #define MLT_FILTER_SERVICE( filter )           ( &( filter )->parent )
 #define MLT_FILTER_PROPERTIES( filter )                MLT_SERVICE_PROPERTIES( MLT_FILTER_SERVICE( filter ) )
 
@@ -59,6 +65,10 @@ extern void mlt_filter_set_in_and_out( mlt_filter self, mlt_position in, mlt_pos
 extern int mlt_filter_get_track( mlt_filter self );
 extern mlt_position mlt_filter_get_in( mlt_filter self );
 extern mlt_position mlt_filter_get_out( mlt_filter self );
+extern mlt_position mlt_filter_get_length( mlt_filter self );
+extern mlt_position mlt_filter_get_length2( mlt_filter self, mlt_frame frame );
+extern mlt_position mlt_filter_get_position( mlt_filter self, mlt_frame frame );
+extern double mlt_filter_get_progress( mlt_filter self, mlt_frame frame );
 extern void mlt_filter_close( mlt_filter );
 
 #endif