Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alicia Boya García
gst-plugins-good
Commits
d54ae9e9
Commit
d54ae9e9
authored
Jul 27, 2004
by
Thomas Vander Stichele
Browse files
fix template, only signed accepted
Original commit message from CVS: fix template, only signed accepted
parent
f8e224d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
gst/level/filter.func
View file @
d54ae9e9
...
...
@@ -29,6 +29,7 @@ gst_level_fast_16bit_chain (gint16 * in, guint num, gint channels,
for (j = 0; j < num; j += channels)
{
//g_print ("ch %d -> smp %d\n", j, in[j]);
square = (double) (in[j] * in[j]);
if (square > PSS) PSS = square;
squaresum += square;
...
...
gst/level/gstlevel.c
View file @
d54ae9e9
...
...
@@ -46,14 +46,24 @@ static GstStaticPadTemplate sink_template_factory =
GST_STATIC_PAD_TEMPLATE
(
"level_sink"
,
GST_PAD_SINK
,
GST_PAD_ALWAYS
,
GST_STATIC_CAPS
(
GST_AUDIO_INT_PAD_TEMPLATE_CAPS
)
GST_STATIC_CAPS
(
"audio/x-raw-int, "
"rate = (int) [ 1, MAX ], "
"channels = (int) 2, "
"endianness = (int) BYTE_ORDER, "
"width = (int) { 8, 16 }, "
"depth = (int) { 8, 16 }, "
"signed = (boolean) true"
)
);
static
GstStaticPadTemplate
src_template_factory
=
GST_STATIC_PAD_TEMPLATE
(
"level_src"
,
GST_PAD_SRC
,
GST_PAD_ALWAYS
,
GST_STATIC_CAPS
(
GST_AUDIO_INT_PAD_TEMPLATE_CAPS
)
GST_STATIC_CAPS
(
"audio/x-raw-int, "
"rate = (int) [ 1, MAX ], "
"channels = (int) 2, "
"endianness = (int) BYTE_ORDER, "
"width = (int) { 8, 16 }, "
"depth = (int) { 8, 16 }, "
"signed = (boolean) true"
)
);
/* Filter signals and args */
...
...
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