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.
GstAudioVisualizer
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstAudioVisualizer
Members
parent
(GstElement)
–
req_spf
(guint)
–
vinfo
(GstVideoInfo)
–
ainfo
(GstAudioInfo)
–
Class structure
GstAudioVisualizerClass
GstPbutils.AudioVisualizerClass
GstPbutils.AudioVisualizerClass
GstAudioVisualizer
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstAudioVisualizer
Members
parent
(GstElement)
–
req_spf
(Number)
–
vinfo
(GstVideoInfo)
–
ainfo
(GstAudioInfo)
–
GstAudioVisualizer
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstAudioVisualizer
Members
parent
(GstElement)
–
req_spf
(int)
–
vinfo
(GstVideoInfo)
–
ainfo
(GstAudioInfo)
–
Properties
Virtual Methods
decide_allocation
gboolean decide_allocation (GstAudioVisualizer * scope, GstQuery * query)
Parameters:
scope
–
query
–
decide_allocation
function decide_allocation(scope: GstPbutils.AudioVisualizer, query: Gst.Query): {
// javascript implementation of the 'decide_allocation' virtual method
}
Parameters:
scope
(
GstPbutils.AudioVisualizer
)
–
query
(
Gst.Query
)
–
decide_allocation
def decide_allocation (scope, query):
#python implementation of the 'decide_allocation' virtual method
Parameters:
scope
(
GstPbutils.AudioVisualizer
)
–
query
(
Gst.Query
)
–
render
gboolean render (GstAudioVisualizer * scope, GstBuffer * audio, GstVideoFrame * video)
Parameters:
scope
–
audio
–
video
–
render
function render(scope: GstPbutils.AudioVisualizer, audio: Gst.Buffer, video: GstVideo.VideoFrame): {
// javascript implementation of the 'render' virtual method
}
Parameters:
scope
(
GstPbutils.AudioVisualizer
)
–
audio
(
Gst.Buffer
)
–
video
(
GstVideo.VideoFrame
)
–
render
def render (scope, audio, video):
#python implementation of the 'render' virtual method
Parameters:
scope
(
GstPbutils.AudioVisualizer
)
–
audio
(
Gst.Buffer
)
–
video
(
GstVideo.VideoFrame
)
–
setup
gboolean setup (GstAudioVisualizer * scope)
Parameters:
scope
–
setup
function setup(scope: GstPbutils.AudioVisualizer): {
// javascript implementation of the 'setup' virtual method
}
Parameters:
scope
(
GstPbutils.AudioVisualizer
)
–
setup
def setup (scope):
#python implementation of the 'setup' virtual method
Parameters:
scope
(
GstPbutils.AudioVisualizer
)
–
Function Macros
GST_IS_SYNAESTHESIA
#define GST_IS_SYNAESTHESIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_VISUALIZER))
GST_IS_SYNAESTHESIA_CLASS
#define GST_IS_SYNAESTHESIA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_VISUALIZER))
Enumerations
GstAudioVisualizerShader
Different types of supported background shading functions.
Members
GST_AUDIO_VISUALIZER_SHADER_NONE
(0)
–
no shading
GST_AUDIO_VISUALIZER_SHADER_FADE
(1)
–
plain fading
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_UP
(2)
–
fade and move up
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_DOWN
(3)
–
fade and move down
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_LEFT
(4)
–
fade and move left
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_RIGHT
(5)
–
fade and move right
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_OUT
(6)
–
fade and move horizontally out
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_IN
(7)
–
fade and move horizontally in
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_OUT
(8)
–
fade and move vertically out
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_IN
(9)
–
fade and move vertically in
GstPbutils.AudioVisualizerShader
Different types of supported background shading functions.
Members
GstPbutils.AudioVisualizerShader.NONE
(0)
–
no shading
GstPbutils.AudioVisualizerShader.FADE
(1)
–
plain fading
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_UP
(2)
–
fade and move up
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_DOWN
(3)
–
fade and move down
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_LEFT
(4)
–
fade and move left
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_RIGHT
(5)
–
fade and move right
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_HORIZ_OUT
(6)
–
fade and move horizontally out
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_HORIZ_IN
(7)
–
fade and move horizontally in
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_VERT_OUT
(8)
–
fade and move vertically out
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_VERT_IN
(9)
–
fade and move vertically in
GstPbutils.AudioVisualizerShader
Different types of supported background shading functions.
Members
GstPbutils.AudioVisualizerShader.NONE
(0)
–
no shading
GstPbutils.AudioVisualizerShader.FADE
(1)
–
plain fading
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_UP
(2)
–
fade and move up
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_DOWN
(3)
–
fade and move down
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_LEFT
(4)
–
fade and move left
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_RIGHT
(5)
–
fade and move right
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_HORIZ_OUT
(6)
–
fade and move horizontally out
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_HORIZ_IN
(7)
–
fade and move horizontally in
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_VERT_OUT
(8)
–
fade and move vertically out
GstPbutils.AudioVisualizerShader.FADE_AND_MOVE_VERT_IN
(9)
–
fade and move vertically in
Callbacks
GstAudioVisualizerShaderFunc
(*GstAudioVisualizerShaderFunc) (GstAudioVisualizer * scope, const GstVideoFrame * s, GstVideoFrame * d)
Parameters:
scope
–
s
–
d
–
GstPbutils.AudioVisualizerShaderFunc
function GstPbutils.AudioVisualizerShaderFunc(scope: GstPbutils.AudioVisualizer, s: GstVideo.VideoFrame, d: GstVideo.VideoFrame): {
// javascript wrapper for 'GstAudioVisualizerShaderFunc'
}
Parameters:
scope
(
GstPbutils.AudioVisualizer
)
–
s
(
GstVideo.VideoFrame
)
–
d
(
GstVideo.VideoFrame
)
–
GstPbutils.AudioVisualizerShaderFunc
def GstPbutils.AudioVisualizerShaderFunc (scope, s, d):
#python wrapper for 'GstAudioVisualizerShaderFunc'
Parameters:
scope
(
GstPbutils.AudioVisualizer
)
–
s
(
GstVideo.VideoFrame
)
–
d
(
GstVideo.VideoFrame
)
–
The results of the search are