visualize.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 
00041 typedef struct bg_visualizer_s bg_visualizer_t;
00042 
00048 bg_visualizer_t * bg_visualizer_create(bg_plugin_registry_t * plugin_reg);
00049 
00055 void bg_visualizer_destroy(bg_visualizer_t * v);
00056 
00062 const bg_parameter_info_t * bg_visualizer_get_parameters(bg_visualizer_t* v);
00063 
00070 void bg_visualizer_set_parameter(void * priv,
00071                                  const char * name,
00072                                  const bg_parameter_value_t * val);
00073 
00079 void bg_visualizer_set_vis_plugin(bg_visualizer_t * v,
00080                                   const bg_plugin_info_t * info);
00081 
00088 void bg_visualizer_set_vis_parameter(void * priv,
00089                                      const char * name,
00090                                      const bg_parameter_value_t * val);
00091 
00098 void bg_visualizer_open_plugin(bg_visualizer_t * v,
00099                                const gavl_audio_format_t * format,
00100                                bg_plugin_handle_t * ov_handle);
00101 
00109 void bg_visualizer_open_id(bg_visualizer_t * v,
00110                            const gavl_audio_format_t * format,
00111                            const bg_plugin_info_t * ov_info,
00112                            const char * display_id);
00113 
00114 /* Set new audio format without stopping the visualization thread */
00115 
00124 void bg_visualizer_set_audio_format(bg_visualizer_t * v,
00125                                     const gavl_audio_format_t * format);
00126 
00132 void bg_visualizer_update(bg_visualizer_t * v,
00133                           const gavl_audio_frame_t * frame);
00134 
00142 void bg_visualizer_close(bg_visualizer_t * v);
00143 
00152 int bg_visualizer_need_restart(bg_visualizer_t * v);
00153 
00159 double bg_visualizer_get_fps(bg_visualizer_t * v);
00160 

Generated on Thu Dec 18 08:24:29 2008 for gmerlin by  doxygen 1.5.7.1