Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
87f38086
Commit
87f38086
authored
Feb 25, 2016
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audiovisualizer: Let GstAudioVisualizerShader enum GType be autogenerated by glib-mkenums
That happens automatically already anyway.
parent
c64dae3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
35 deletions
+1
-35
gst-libs/gst/pbutils/gstaudiovisualizer.c
gst-libs/gst/pbutils/gstaudiovisualizer.c
+1
-35
No files found.
gst-libs/gst/pbutils/gstaudiovisualizer.c
View file @
87f38086
...
...
@@ -42,6 +42,7 @@
#include <gst/video/gstvideopool.h>
#include "gstaudiovisualizer.h"
#include "pbutils-enumtypes.h"
GST_DEBUG_CATEGORY_STATIC
(
audio_visualizer_debug
);
#define GST_CAT_DEFAULT (audio_visualizer_debug)
...
...
@@ -137,41 +138,6 @@ struct _GstAudioVisualizerPrivate
/* shading functions */
#define GST_TYPE_AUDIO_VISUALIZER_SHADER (gst_audio_visualizer_shader_get_type())
static
GType
gst_audio_visualizer_shader_get_type
(
void
)
{
static
GType
shader_type
=
0
;
static
const
GEnumValue
shaders
[]
=
{
{
GST_AUDIO_VISUALIZER_SHADER_NONE
,
"None"
,
"none"
},
{
GST_AUDIO_VISUALIZER_SHADER_FADE
,
"Fade"
,
"fade"
},
{
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_UP
,
"Fade and move up"
,
"fade-and-move-up"
},
{
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_DOWN
,
"Fade and move down"
,
"fade-and-move-down"
},
{
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_LEFT
,
"Fade and move left"
,
"fade-and-move-left"
},
{
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_RIGHT
,
"Fade and move right"
,
"fade-and-move-right"
},
{
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_OUT
,
"Fade and move horizontally out"
,
"fade-and-move-horiz-out"
},
{
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_IN
,
"Fade and move horizontally in"
,
"fade-and-move-horiz-in"
},
{
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_OUT
,
"Fade and move vertically out"
,
"fade-and-move-vert-out"
},
{
GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_IN
,
"Fade and move vertically in"
,
"fade-and-move-vert-in"
},
{
0
,
NULL
,
NULL
},
};
if
(
G_UNLIKELY
(
shader_type
==
0
))
{
/* TODO: rename when exporting it as a library */
shader_type
=
g_enum_register_static
(
"GstAudioVisualizerShader"
,
shaders
);
}
return
shader_type
;
}
/* we're only supporting GST_VIDEO_FORMAT_xRGB right now) */
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment