]> git.sesse.net Git - vlc/blobdiff - include/vlc_filter.h
A bit of vlc/libvlc cleanup:
[vlc] / include / vlc_filter.h
index 367f55a258e8ae6939b53345dcb30d1033833687..4e420c24ee524e44c490786a379a110a618a9f2e 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
+
+#if !defined( __LIBVLC__ )
+  #error You are not libvlc or one of its plugins. You cannot include this file
+#endif
+
 #ifndef _VLC_FILTER_H
 #define _VLC_FILTER_H 1
 
+#include <vlc_es.h>
+
 /**
  * \file
  * This file defines the structure and types used by video and audio filters
 
 typedef struct filter_owner_sys_t filter_owner_sys_t;
 
-/**
- * \defgroup filter Filter
- *
- * The structure describing a filter
- *
- * @{
- */
-
-/*
- * BIG FAT WARNING : the code relies in the first 4 members of filter_t
- * and decoder_t to be the same, so if you have anything to add, do it
- * at the end of the structure.
+/** Structure describing a filter
+ * @warning BIG FAT WARNING : the code relies in the first 4 members of
+ * filter_t and decoder_t to be the same, so if you have anything to add,
+ * do it at the end of the structure.
  */
 struct filter_t
 {
@@ -58,7 +57,7 @@ struct filter_t
     es_format_t         fmt_out;
 
     /* Filter configuration */
-    sout_cfg_t *        p_cfg;
+    config_chain_t *    p_cfg;
 
     picture_t *         ( * pf_video_filter ) ( filter_t *, picture_t * );
     block_t *           ( * pf_audio_filter ) ( filter_t *, block_t * );
@@ -67,7 +66,8 @@ struct filter_t
                                                 int, int, int );
 
     subpicture_t *      ( *pf_sub_filter ) ( filter_t *, mtime_t );
-    int                 ( *pf_render_text ) ( filter_t *, subpicture_region_t *, subpicture_region_t * );
+    int                 ( *pf_render_text ) ( filter_t *, subpicture_region_t *,
+                                              subpicture_region_t * );
 
     /*
      * Buffers allocation
@@ -90,8 +90,4 @@ struct filter_t
     filter_owner_sys_t *p_owner;
 };
 
-/**
- * @}
- */
-
 #endif /* _VLC_FILTER_H */