| Top |
| struct | GstAudioVisualizer |
| struct | GstAudioVisualizerClass |
| enum | GstAudioVisualizerShader |
GEnum ╰── GstAudioVisualizerShader GObject ╰── GInitiallyUnowned ╰── GstObject ╰── GstElement ╰── GstAudioVisualizer
A baseclass for scopes (visualizers). It takes care of re-fitting the audio-rate to video-rate and handles renegotiation (downstream video size changes).
It also provides several background shading effects. These effects are
applied to a previous picture before the render() implementation can draw a
new frame.
void (*GstAudioVisualizerShaderFunc) (GstAudioVisualizer *scope,const GstVideoFrame *s,GstVideoFrame *d);
struct GstAudioVisualizerClass {
/* virtual function, called whenever the format changes */
gboolean (*setup) (GstAudioVisualizer * scope);
/* virtual function for rendering a frame */
gboolean (*render) (GstAudioVisualizer * scope, GstBuffer * audio, GstVideoFrame * video);
gboolean (*decide_allocation) (GstAudioVisualizer * scope, GstQuery *query);
};
Different types of supported background shading functions.
“shade-amount” property“shade-amount” guint
Shading color to use (big-endian ARGB).
Flags: Read / Write
Default value: 657930
“shader” property“shader” GstAudioVisualizerShader
Shader function to apply on each frame.
Flags: Read / Write
Default value: GST_AUDIO_VISUALIZER_SHADER_FADE