vlc_filter.h
上传用户:riyaled888
上传日期:2009-03-27
资源大小:7338k
文件大小:3k
- /*****************************************************************************
- * vlc_codec.h: codec related structures
- *****************************************************************************
- * Copyright (C) 1999-2003 VideoLAN
- * $Id: vlc_filter.h 9200 2004-11-06 16:51:26Z gbazin $
- *
- * Authors: Gildas Bazin <gbazin@videolan.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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.
- *****************************************************************************/
- #ifndef _VLC_FILTER_H
- #define _VLC_FILTER_H 1
- /**
- * 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
- *
- * @{
- */
- struct filter_t
- {
- VLC_COMMON_MEMBERS
- /* Module properties */
- module_t * p_module;
- filter_sys_t * p_sys;
- /* Input format */
- es_format_t fmt_in;
- /* Output format of filter */
- es_format_t fmt_out;
- 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, int );
- subpicture_t * ( *pf_sub_filter ) ( filter_t *, mtime_t );
- subpicture_t * ( *pf_render_string ) ( filter_t *, block_t * );
- /*
- * Buffers allocation
- */
- /* Audio output callbacks */
- block_t * ( * pf_audio_buffer_new) ( filter_t *, int );
- /* Video output callbacks */
- picture_t * ( * pf_vout_buffer_new) ( filter_t * );
- void ( * pf_vout_buffer_del) ( filter_t *, picture_t * );
- void ( * pf_picture_link) ( filter_t *, picture_t * );
- void ( * pf_picture_unlink) ( filter_t *, picture_t * );
- /* SPU output callbacks */
- 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 */