filters.h

00001 /*****************************************************************
00002  * gmerlin - a general purpose multimedia framework and applications
00003  *
00004  * Copyright (c) 2001 - 2008 Members of the Gmerlin project
00005  * gmerlin-general@lists.sourceforge.net
00006  * http://gmerlin.sourceforge.net
00007  *
00008  * This program is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00020  * *****************************************************************/
00021 
00022 
00023 #include <gavl/gavl.h>
00024 #include <gmerlin/bggavl.h>
00025 #include <gmerlin/plugin.h>
00026 
00027 
00028 
00041 typedef struct bg_audio_filter_chain_s bg_audio_filter_chain_t;
00042 
00049 typedef struct bg_video_filter_chain_s bg_video_filter_chain_t;
00050 
00051 /* Audio */
00052 
00060 bg_audio_filter_chain_t *
00061 bg_audio_filter_chain_create(const bg_gavl_audio_options_t * opt,
00062                              bg_plugin_registry_t * plugin_reg);
00063 
00072 const bg_parameter_info_t *
00073 bg_audio_filter_chain_get_parameters(bg_audio_filter_chain_t * ch);
00074 
00085 void bg_audio_filter_chain_set_parameter(void * data,
00086                                          const char * name,
00087                                          const bg_parameter_value_t * val);
00088 
00098 int bg_audio_filter_chain_need_rebuild(bg_audio_filter_chain_t * ch);
00099 
00109 int bg_audio_filter_chain_need_restart(bg_audio_filter_chain_t * ch);
00110 
00111 
00116 void bg_audio_filter_chain_rebuild(bg_audio_filter_chain_t * ch);
00117 
00127 void bg_audio_filter_chain_connect_input(bg_audio_filter_chain_t * ch,
00128                                          bg_read_audio_func_t func,
00129                                          void * priv,
00130                                          int stream);
00131 
00138 int bg_audio_filter_chain_init(bg_audio_filter_chain_t * ch,
00139                                const gavl_audio_format_t * in_format,
00140                                gavl_audio_format_t * out_format);
00141 
00151 int bg_audio_filter_chain_set_out_format(bg_audio_filter_chain_t * ch,
00152                                           const gavl_audio_format_t * out_format);
00153 
00162 int bg_audio_filter_chain_read(void * priv, gavl_audio_frame_t* frame,
00163                                int stream,
00164                                int num_samples);
00165 
00170 void bg_audio_filter_chain_destroy(bg_audio_filter_chain_t * ch);
00171 
00179 void bg_audio_filter_chain_lock(bg_audio_filter_chain_t * ch);
00180 
00188 void bg_audio_filter_chain_unlock(bg_audio_filter_chain_t * ch);
00189 
00196 void bg_audio_filter_chain_reset(bg_audio_filter_chain_t * ch);
00197 
00198 /* Video */
00199 
00207 bg_video_filter_chain_t *
00208 bg_video_filter_chain_create(const bg_gavl_video_options_t * opt,
00209                              bg_plugin_registry_t * plugin_reg);
00210 
00219 const bg_parameter_info_t *
00220 bg_video_filter_chain_get_parameters(bg_video_filter_chain_t * ch);
00221 
00233 void bg_video_filter_chain_set_parameter(void * data, const char * name,
00234                                          const bg_parameter_value_t * val);
00235 
00245 int bg_video_filter_chain_need_rebuild(bg_video_filter_chain_t * ch);
00246 
00256 int bg_video_filter_chain_need_restart(bg_video_filter_chain_t * ch);
00257 
00258 
00263 void bg_video_filter_chain_rebuild(bg_video_filter_chain_t * ch);
00264 
00265 
00266 
00276 void bg_video_filter_chain_connect_input(bg_video_filter_chain_t * ch,
00277                                          bg_read_video_func_t func,
00278                                          void * priv, int stream);
00279 
00286 int bg_video_filter_chain_init(bg_video_filter_chain_t * ch,
00287                                const gavl_video_format_t * in_format,
00288                                gavl_video_format_t * out_format);
00289 
00298 int bg_video_filter_chain_set_out_format(bg_video_filter_chain_t * ch,
00299                                           const gavl_video_format_t * out_format);
00300 
00301 
00309 int bg_video_filter_chain_read(void * priv, gavl_video_frame_t* frame,
00310                                int stream);
00311 
00316 void bg_video_filter_chain_destroy(bg_video_filter_chain_t * ch);
00317 
00325 void bg_video_filter_chain_lock(bg_video_filter_chain_t * ch);
00326 
00334 void bg_video_filter_chain_unlock(bg_video_filter_chain_t * ch);
00335 
00342 void bg_video_filter_chain_reset(bg_video_filter_chain_t * ch);
00343 

Generated on Mon Jun 15 12:25:51 2009 for gmerlin by  doxygen 1.5.9