mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
gst-indent
Original commit message from CVS: gst-indent
This commit is contained in:
parent
10f1ae0d1b
commit
89b52fa125
2 changed files with 102 additions and 101 deletions
|
@ -28,21 +28,21 @@
|
|||
#include <gststereo.h>
|
||||
|
||||
/* elementfactory information */
|
||||
static GstElementDetails stereo_details = GST_ELEMENT_DETAILS (
|
||||
"Stereo effect",
|
||||
static GstElementDetails stereo_details = GST_ELEMENT_DETAILS ("Stereo effect",
|
||||
"Filter/Effect/Audio",
|
||||
"Muck with the stereo signal to enhance its 'stereo-ness'",
|
||||
"Erik Walthinsen <omega@cse.ogi.edu>"
|
||||
);
|
||||
"Erik Walthinsen <omega@cse.ogi.edu>");
|
||||
|
||||
|
||||
/* Stereo signals and args */
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
/* FILL ME */
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
ARG_0,
|
||||
ARG_ACTIVE,
|
||||
ARG_STEREO
|
||||
|
@ -53,16 +53,20 @@ static void gst_stereo_base_init (gpointer g_class);
|
|||
static void gst_stereo_class_init (GstStereoClass * klass);
|
||||
static void gst_stereo_init (GstStereo * stereo);
|
||||
|
||||
static void gst_stereo_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
|
||||
static void gst_stereo_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec);
|
||||
static void gst_stereo_set_property (GObject * object, guint prop_id,
|
||||
const GValue * value, GParamSpec * pspec);
|
||||
static void gst_stereo_get_property (GObject * object, guint prop_id,
|
||||
GValue * value, GParamSpec * pspec);
|
||||
|
||||
static void gst_stereo_chain (GstPad * pad, GstData * _data);
|
||||
|
||||
static GstElementClass *parent_class = NULL;
|
||||
|
||||
/*static guint gst_stereo_signals[LAST_SIGNAL] = { 0 }; */
|
||||
|
||||
GType
|
||||
gst_stereo_get_type(void) {
|
||||
gst_stereo_get_type (void)
|
||||
{
|
||||
static GType stereo_type = 0;
|
||||
|
||||
if (!stereo_type) {
|
||||
|
@ -77,7 +81,8 @@ gst_stereo_get_type(void) {
|
|||
0,
|
||||
(GInstanceInitFunc) gst_stereo_init,
|
||||
};
|
||||
stereo_type = g_type_register_static(GST_TYPE_ELEMENT, "GstStereo", &stereo_info, 0);
|
||||
stereo_type =
|
||||
g_type_register_static (GST_TYPE_ELEMENT, "GstStereo", &stereo_info, 0);
|
||||
}
|
||||
return stereo_type;
|
||||
}
|
||||
|
@ -86,6 +91,7 @@ static void
|
|||
gst_stereo_base_init (gpointer g_class)
|
||||
{
|
||||
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
|
||||
|
||||
gst_element_class_set_details (element_class, &stereo_details);
|
||||
}
|
||||
static void
|
||||
|
@ -99,12 +105,8 @@ gst_stereo_class_init (GstStereoClass *klass)
|
|||
|
||||
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
|
||||
|
||||
g_object_class_install_property(G_OBJECT_CLASS(klass), ARG_ACTIVE,
|
||||
g_param_spec_int("active","active","active",
|
||||
G_MININT,G_MAXINT,0,G_PARAM_READWRITE)); /* CHECKME */
|
||||
g_object_class_install_property(G_OBJECT_CLASS(klass), ARG_STEREO,
|
||||
g_param_spec_float("stereo","stereo","stereo",
|
||||
0.0,1.0,0.0,G_PARAM_READWRITE)); /* CHECKME */
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ACTIVE, g_param_spec_int ("active", "active", "active", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_STEREO, g_param_spec_float ("stereo", "stereo", "stereo", 0.0, 1.0, 0.0, G_PARAM_READWRITE)); /* CHECKME */
|
||||
|
||||
gobject_class->set_property = gst_stereo_set_property;
|
||||
gobject_class->get_property = gst_stereo_get_property;
|
||||
|
@ -177,7 +179,8 @@ gst_stereo_chain (GstPad *pad,GstData *_data)
|
|||
}
|
||||
|
||||
static void
|
||||
gst_stereo_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
|
||||
gst_stereo_set_property (GObject * object, guint prop_id, const GValue * value,
|
||||
GParamSpec * pspec)
|
||||
{
|
||||
GstStereo *stereo;
|
||||
|
||||
|
@ -198,7 +201,8 @@ gst_stereo_set_property (GObject *object, guint prop_id, const GValue *value, GP
|
|||
}
|
||||
|
||||
static void
|
||||
gst_stereo_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
|
||||
gst_stereo_get_property (GObject * object, guint prop_id, GValue * value,
|
||||
GParamSpec * pspec)
|
||||
{
|
||||
GstStereo *stereo;
|
||||
|
||||
|
@ -222,18 +226,12 @@ gst_stereo_get_property (GObject *object, guint prop_id, GValue *value, GParamSp
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
return gst_element_register (plugin, "stereo", GST_RANK_NONE, GST_TYPE_STEREO);
|
||||
return gst_element_register (plugin, "stereo", GST_RANK_NONE,
|
||||
GST_TYPE_STEREO);
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (
|
||||
GST_VERSION_MAJOR,
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
GST_VERSION_MINOR,
|
||||
"stereo",
|
||||
"Muck with the stereo signal, enhance it's 'stereo-ness'",
|
||||
plugin_init,
|
||||
VERSION,
|
||||
GST_LICENSE,
|
||||
GST_PACKAGE,
|
||||
GST_ORIGIN
|
||||
)
|
||||
|
||||
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE, GST_ORIGIN)
|
||||
|
|
|
@ -26,7 +26,8 @@
|
|||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
|
@ -44,7 +45,8 @@ extern "C" {
|
|||
typedef struct _GstStereo GstStereo;
|
||||
typedef struct _GstStereoClass GstStereoClass;
|
||||
|
||||
struct _GstStereo {
|
||||
struct _GstStereo
|
||||
{
|
||||
GstElement element;
|
||||
|
||||
GstPad *sinkpad, *srcpad;
|
||||
|
@ -53,7 +55,8 @@ struct _GstStereo {
|
|||
gfloat stereo;
|
||||
};
|
||||
|
||||
struct _GstStereoClass {
|
||||
struct _GstStereoClass
|
||||
{
|
||||
GstElementClass parent_class;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue