visualize.h

00001 /*****************************************************************
00002  * gmerlin - a general purpose multimedia framework and applications
00003  *
00004  * Copyright (c) 2001 - 2010 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 
00069 void bg_visualizer_set_callbacks(bg_visualizer_t* v,
00070                                  bg_ov_callbacks_t * cb);
00071 
00072 
00079 void bg_visualizer_set_parameter(void * priv,
00080                                  const char * name,
00081                                  const bg_parameter_value_t * val);
00082 
00088 void bg_visualizer_set_vis_plugin(bg_visualizer_t * v,
00089                                   const bg_plugin_info_t * info);
00090 
00097 void bg_visualizer_set_vis_parameter(void * priv,
00098                                      const char * name,
00099                                      const bg_parameter_value_t * val);
00100 
00107 void bg_visualizer_open_plugin(bg_visualizer_t * v,
00108                                const gavl_audio_format_t * format,
00109                                bg_plugin_handle_t * ov_handle);
00110 
00118 void bg_visualizer_open_id(bg_visualizer_t * v,
00119                            const gavl_audio_format_t * format,
00120                            const bg_plugin_info_t * ov_info,
00121                            const char * display_id);
00122 
00123 /* Set new audio format without stopping the visualization thread */
00124 
00133 void bg_visualizer_set_audio_format(bg_visualizer_t * v,
00134                                     const gavl_audio_format_t * format);
00135 
00141 void bg_visualizer_update(bg_visualizer_t * v,
00142                           const gavl_audio_frame_t * frame);
00143 
00151 void bg_visualizer_close(bg_visualizer_t * v);
00152 
00161 int bg_visualizer_need_restart(bg_visualizer_t * v);
00162 
00168 double bg_visualizer_get_fps(bg_visualizer_t * v);
00169 
Generated on Sun Feb 28 07:43:45 2010 for gmerlin by  doxygen 1.6.3