1 /*****************************************************************************
2 * vlc_filter.h: filter related structures
3 *****************************************************************************
4 * Copyright (C) 1999-2003 VideoLAN
7 * Authors: Gildas Bazin <gbazin@videolan.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 #define _VLC_FILTER_H 1
28 * This file defines the structure and types used by video and audio filters
31 typedef struct filter_owner_sys_t filter_owner_sys_t;
34 * \defgroup filter Filter
36 * The structure describing a filter
44 /* Module properties */
51 /* Output format of filter */
54 picture_t * ( * pf_video_filter ) ( filter_t *, picture_t * );
55 block_t * ( * pf_audio_filter ) ( filter_t *, block_t * );
56 void ( * pf_video_blend ) ( filter_t *, picture_t *,
57 picture_t *, picture_t *,
60 subpicture_t * ( *pf_sub_filter ) ( filter_t *, mtime_t );
61 int ( *pf_render_text ) ( filter_t *, subpicture_region_t *, subpicture_region_t * );
67 /* Audio output callbacks */
68 block_t * ( * pf_audio_buffer_new) ( filter_t *, int );
70 /* Video output callbacks */
71 picture_t * ( * pf_vout_buffer_new) ( filter_t * );
72 void ( * pf_vout_buffer_del) ( filter_t *, picture_t * );
73 void ( * pf_picture_link) ( filter_t *, picture_t * );
74 void ( * pf_picture_unlink) ( filter_t *, picture_t * );
76 /* SPU output callbacks */
77 subpicture_t * ( * pf_sub_buffer_new) ( filter_t * );
78 void ( * pf_sub_buffer_del) ( filter_t *, subpicture_t * );
80 /* Private structure for the owner of the decoder */
81 filter_owner_sys_t *p_owner;
88 #endif /* _VLC_FILTER_H */