gmerlin
visualize.h
1 /*****************************************************************
2  * gmerlin - a general purpose multimedia framework and applications
3  *
4  * Copyright (c) 2001 - 2011 Members of the Gmerlin project
5  * gmerlin-general@lists.sourceforge.net
6  * http://gmerlin.sourceforge.net
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  * *****************************************************************/
21 
22 
41 typedef struct bg_visualizer_s bg_visualizer_t;
42 
49 
56 
63 
70  bg_ov_callbacks_t * cb);
71 
72 
79 void bg_visualizer_set_parameter(void * priv,
80  const char * name,
81  const bg_parameter_value_t * val);
82 
89  const bg_plugin_info_t * info);
90 
97 void bg_visualizer_set_vis_parameter(void * priv,
98  const char * name,
99  const bg_parameter_value_t * val);
100 
108  const gavl_audio_format_t * format,
109  bg_plugin_handle_t * ov_handle);
110 
119  const gavl_audio_format_t * format,
120  const bg_plugin_info_t * ov_info,
121  const char * display_id);
122 
123 /* Set new audio format without stopping the visualization thread */
124 
134  const gavl_audio_format_t * format);
135 
142  const gavl_audio_frame_t * frame);
143 
152 
162 
169 
struct bg_visualizer_s bg_visualizer_t
Opaque visualizer structure.
Definition: visualize.h:41
Information about a plugin.
Definition: pluginregistry.h:79
void bg_visualizer_set_vis_plugin(bg_visualizer_t *v, const bg_plugin_info_t *info)
Set the visualization plugin.
void bg_visualizer_set_parameter(void *priv, const char *name, const bg_parameter_value_t *val)
Set a parameter of a visualizer.
void bg_visualizer_set_vis_parameter(void *priv, const char *name, const bg_parameter_value_t *val)
Set a parameter of the visualization plugin.
Handle of a loaded plugin.
Definition: pluginregistry.h:157
void bg_visualizer_destroy(bg_visualizer_t *v)
Destroy a visualizer.
void bg_visualizer_close(bg_visualizer_t *v)
Close a visualizer.
Callbacks for the video output plugin.
Definition: plugin.h:1005
Parmeter description.
Definition: parameter.h:134
struct bg_plugin_registry_s bg_plugin_registry_t
Opaque handle for a plugin registry.
Definition: pluginregistry.h:141
bg_visualizer_t * bg_visualizer_create(bg_plugin_registry_t *plugin_reg)
Create a visualizer.
void bg_visualizer_open_plugin(bg_visualizer_t *v, const gavl_audio_format_t *format, bg_plugin_handle_t *ov_handle)
Open visualization with a video output plugin.
double bg_visualizer_get_fps(bg_visualizer_t *v)
Get the frames per second.
void bg_visualizer_set_audio_format(bg_visualizer_t *v, const gavl_audio_format_t *format)
Set the audio format of a visualizer.
Container for a parameter value.
Definition: parameter.h:82
const bg_parameter_info_t * bg_visualizer_get_parameters(bg_visualizer_t *v)
Get the parameters of a visualizer.
int bg_visualizer_need_restart(bg_visualizer_t *v)
Check, whether a visualizer needs to be restarted.
void bg_visualizer_open_id(bg_visualizer_t *v, const gavl_audio_format_t *format, const bg_plugin_info_t *ov_info, const char *display_id)
Open visualization with a plugin info and a window ID.
void bg_visualizer_set_callbacks(bg_visualizer_t *v, bg_ov_callbacks_t *cb)
Set ov callbacks.
void bg_visualizer_update(bg_visualizer_t *v, const gavl_audio_frame_t *frame)
Send audio data to a visualizer.