gmerlin
visualize.h
1/*****************************************************************
2 * gmerlin - a general purpose multimedia framework and applications
3 *
4 * Copyright (c) 2001 - 2012 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
41typedef struct bg_visualizer_s bg_visualizer_t;
42
49
56
63
71
72
80 const char * name,
81 const bg_parameter_value_t * val);
82
89 const bg_plugin_info_t * info);
90
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_plugin_registry_s bg_plugin_registry_t
Opaque handle for a plugin registry.
Definition pluginregistry.h:143
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.
double bg_visualizer_get_fps(bg_visualizer_t *v)
Get the frames per second.
const bg_parameter_info_t * bg_visualizer_get_parameters(bg_visualizer_t *v)
Get the parameters of a visualizer.
void bg_visualizer_set_audio_format(bg_visualizer_t *v, const gavl_audio_format_t *format)
Set the audio format of a visualizer.
void bg_visualizer_set_vis_plugin(bg_visualizer_t *v, const bg_plugin_info_t *info)
Set the visualization plugin.
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.
int bg_visualizer_need_restart(bg_visualizer_t *v)
Check, whether a visualizer needs to be restarted.
void bg_visualizer_set_vis_parameter(void *priv, const char *name, const bg_parameter_value_t *val)
Set a parameter of the visualization plugin.
bg_visualizer_t * bg_visualizer_create(bg_plugin_registry_t *plugin_reg)
Create a visualizer.
void bg_visualizer_update(bg_visualizer_t *v, const gavl_audio_frame_t *frame)
Send audio data to a visualizer.
struct bg_visualizer_s bg_visualizer_t
Opaque visualizer structure.
Definition visualize.h:41
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_close(bg_visualizer_t *v)
Close a visualizer.
void bg_visualizer_destroy(bg_visualizer_t *v)
Destroy a visualizer.
void bg_visualizer_set_callbacks(bg_visualizer_t *v, bg_ov_callbacks_t *cb)
Set ov callbacks.
Callbacks for the video output plugin.
Definition plugin.h:1120
Parmeter description.
Definition parameter.h:135
Handle of a loaded plugin.
Definition pluginregistry.h:160
Information about a plugin.
Definition pluginregistry.h:80
Container for a parameter value.
Definition parameter.h:83