X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_filter.h;h=fd6897bb22c5df772f7c8277b73e29515f233fcb;hb=8988485a3b74005e3a64a7ef4f56d70b654781c0;hp=e10e14524b3a1b8516d4e5f138ad6b9bfa521557;hpb=f2c554795a02ff8acdc070bc10a00f4640fdb8ab;p=vlc diff --git a/include/vlc_filter.h b/include/vlc_filter.h index e10e14524b..fd6897bb22 100644 --- a/include/vlc_filter.h +++ b/include/vlc_filter.h @@ -1,7 +1,7 @@ /***************************************************************************** - * vlc_codec.h: codec related structures + * vlc_filter.h: filter related structures ***************************************************************************** - * Copyright (C) 1999-2003 VideoLAN + * Copyright (C) 1999-2003 the VideoLAN team * $Id$ * * Authors: Gildas Bazin @@ -18,11 +18,18 @@ * * 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 + /** * \file * This file defines the structure and types used by video and audio filters @@ -30,12 +37,10 @@ typedef struct filter_owner_sys_t filter_owner_sys_t; -/** - * \defgroup filter Filter - * - * The structure describing a filter - * - * @{ +/** 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 { @@ -43,7 +48,7 @@ struct filter_t /* Module properties */ module_t * p_module; - filter_sys_t * p_sys; + filter_sys_t * p_sys; /* Input format */ es_format_t fmt_in; @@ -51,20 +56,27 @@ struct filter_t /* Output format of filter */ es_format_t fmt_out; + /* Filter configuration */ + config_chain_t * p_cfg; + + picture_t * ( * pf_video_filter ) ( filter_t *, picture_t * ); + block_t * ( * pf_audio_filter ) ( filter_t *, block_t * ); void ( * pf_video_blend ) ( filter_t *, picture_t *, picture_t *, picture_t *, - int, int ); - picture_t * ( * pf_video_filter ) ( filter_t *, picture_t * ); + int, int, int ); - subpicture_t * ( *pf_render_string ) ( filter_t *, block_t * ); + subpicture_t * ( *pf_sub_filter ) ( filter_t *, mtime_t ); + int ( *pf_render_text ) ( filter_t *, subpicture_region_t *, + subpicture_region_t * ); + int ( *pf_render_html ) ( filter_t *, subpicture_region_t *, + subpicture_region_t * ); /* * Buffers allocation */ /* Audio output callbacks */ - aout_buffer_t * ( * pf_aout_buffer_new) ( filter_t *, int ); - void ( * pf_aout_buffer_del) ( filter_t *, aout_buffer_t * ); + block_t * ( * pf_audio_buffer_new) ( filter_t *, int ); /* Video output callbacks */ picture_t * ( * pf_vout_buffer_new) ( filter_t * ); @@ -73,15 +85,11 @@ struct filter_t void ( * pf_picture_unlink) ( filter_t *, picture_t * ); /* SPU output callbacks */ - subpicture_t * ( * pf_spu_buffer_new) ( filter_t * ); - void ( * pf_spu_buffer_del) ( filter_t *, subpicture_t * ); + subpicture_t * ( * pf_sub_buffer_new) ( filter_t * ); + void ( * pf_sub_buffer_del) ( filter_t *, subpicture_t * ); /* Private structure for the owner of the decoder */ filter_owner_sys_t *p_owner; }; -/** - * @} - */ - #endif /* _VLC_FILTER_H */