Commit 39fd8a2d authored by Johan Dahlin's avatar Johan Dahlin

*.h: Revert indenting

Original commit message from CVS:
* *.h: Revert indenting
parent 1633bd86
2004-03-15 Johan Dahlin <johan@gnome.org>
* *.h: Revert indenting
2004-03-15 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:
......
......@@ -28,9 +28,8 @@
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
extern "C" {
#endif /* __cplusplus */
#define GST_TYPE_ARTS \
(gst_arts_get_type())
......@@ -43,26 +42,24 @@ extern "C"
#define GST_IS_ARTS_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ARTS))
typedef struct _GstARTS GstARTS;
typedef struct _GstARTSClass GstARTSClass;
typedef struct _GstARTS GstARTS;
typedef struct _GstARTSClass GstARTSClass;
struct _GstARTS
{
GstElement element;
struct _GstARTS {
GstElement element;
GstPad *sinkpad, *srcpad;
void *wrapper;
};
GstPad *sinkpad, *srcpad;
void *wrapper;
};
struct _GstARTSClass
{
GstElementClass parent_class;
};
struct _GstARTSClass {
GstElementClass parent_class;
};
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* __GST_ARTS_H__ */
#endif /* __GST_ARTS_H__ */
#include <gst/gst.h>
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
extern "C" {
#endif /* __cplusplus */
void *gst_arts_wrapper_new (GstPad * sinkpad, GstPad * sourcepad);
void gst_arts_wrapper_free (void *wrapper);
void gst_arts_wrapper_do (void *wrapper);
void *gst_arts_wrapper_new(GstPad *sinkpad, GstPad *sourcepad);
void gst_arts_wrapper_free(void *wrapper);
void gst_arts_wrapper_do(void *wrapper);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
......@@ -25,9 +25,8 @@
#include <artsc.h>
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
extern "C" {
#endif /* __cplusplus */
#define GST_TYPE_ARTSDSINK \
......@@ -41,42 +40,39 @@ extern "C"
#define GST_IS_ARTSDSINK_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ARTSDSINK))
typedef enum
{
GST_ARTSDSINK_OPEN = GST_ELEMENT_FLAG_LAST,
GST_ARTSDSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
} GstArtsdSinkFlags;
typedef enum {
GST_ARTSDSINK_OPEN = GST_ELEMENT_FLAG_LAST,
GST_ARTSDSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST+2,
} GstArtsdSinkFlags;
typedef struct _GstArtsdsink GstArtsdsink;
typedef struct _GstArtsdsinkClass GstArtsdsinkClass;
typedef struct _GstArtsdsink GstArtsdsink;
typedef struct _GstArtsdsinkClass GstArtsdsinkClass;
struct _GstArtsdsink
{
GstElement element;
struct _GstArtsdsink {
GstElement element;
GstPad *sinkpad;
GstPad *sinkpad;
gboolean connected;
arts_stream_t stream;
gboolean mute;
gboolean signd;
gint depth;
gint channels;
gint frequency;
gchar *connect_name;
};
gboolean connected;
arts_stream_t stream;
gboolean mute;
gboolean signd;
gint depth;
gint channels;
gint frequency;
gchar* connect_name;
};
struct _GstArtsdsinkClass
{
GstElementClass parent_class;
};
struct _GstArtsdsinkClass {
GstElementClass parent_class;
};
GType gst_artsdsink_get_type (void);
GType gst_artsdsink_get_type(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* __GST_ARTSDSINK_H__ */
#endif /* __GST_ARTSDSINK_H__ */
......@@ -27,14 +27,13 @@
#include <gst/gst.h>
#include <gst/bytestream/bytestream.h>
#include <audiofile.h> /* what else are we to do */
#include <audiofile.h> /* what else are we to do */
#include <af_vfs.h>
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
extern "C" {
#endif /* __cplusplus */
/*GstElementDetails gst_afparse_details;*/
......@@ -51,58 +50,55 @@ extern "C"
#define GST_IS_AFPARSE_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AFPARSE))
typedef struct _GstAFParse GstAFParse;
typedef struct _GstAFParseClass GstAFParseClass;
typedef enum
{
GST_AFPARSE_OPEN = GST_ELEMENT_FLAG_LAST,
GST_AFPARSE_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
} GstAFParseFlags;
struct _GstAFParse
{
GstElement element;
GstPad *srcpad;
GstPad *sinkpad;
AFvirtualfile *vfile;
AFfilehandle file;
int format;
int channels;
int width;
unsigned int rate;
gboolean is_signed;
int type; /* type of output, compare to audiofile.h
* RAW, AIFF, AIFFC, NEXTSND, WAVE
*/
/* blocking */
gulong curoffset;
gulong bytes_per_read;
gint frames_per_read;
gulong seq;
gint64 timestamp;
/* FIXME : endianness is a little cryptic at this point */
int endianness_data; /* 4321 or 1234 */
int endianness_wanted; /* same thing, but what the output format wants */
int endianness_output; /* what the output endianness will be */
};
struct _GstAFParseClass
{
GstElementClass parent_class;
/* signals */
void (*handoff) (GstElement * element, GstPad * pad);
};
gboolean gst_afparse_plugin_init (GstPlugin * plugin);
typedef struct _GstAFParse GstAFParse;
typedef struct _GstAFParseClass GstAFParseClass;
typedef enum {
GST_AFPARSE_OPEN = GST_ELEMENT_FLAG_LAST,
GST_AFPARSE_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
} GstAFParseFlags;
struct _GstAFParse {
GstElement element;
GstPad *srcpad;
GstPad *sinkpad;
AFvirtualfile *vfile;
AFfilehandle file;
int format;
int channels;
int width;
unsigned int rate;
gboolean is_signed;
int type; /* type of output, compare to audiofile.h
* RAW, AIFF, AIFFC, NEXTSND, WAVE
*/
/* blocking */
gulong curoffset;
gulong bytes_per_read;
gint frames_per_read;
gulong seq;
gint64 timestamp;
/* FIXME : endianness is a little cryptic at this point */
int endianness_data; /* 4321 or 1234 */
int endianness_wanted; /* same thing, but what the output format wants */
int endianness_output; /* what the output endianness will be */
};
struct _GstAFParseClass {
GstElementClass parent_class;
/* signals */
void (*handoff) (GstElement *element,GstPad *pad);
};
gboolean gst_afparse_plugin_init (GstPlugin *plugin);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* __GST_AFPARSE_H__ */
#endif /* __GST_AFPARSE_H__ */
......@@ -26,13 +26,12 @@
#include <gst/gst.h>
#include <audiofile.h> /* what else are we to do */
#include <audiofile.h> /* what else are we to do */
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
extern "C" {
#endif /* __cplusplus */
/*GstElementDetails gst_afsink_details;*/
......@@ -49,56 +48,53 @@ extern "C"
#define GST_IS_AFSINK_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AFSINK))
typedef struct _GstAFSink GstAFSink;
typedef struct _GstAFSinkClass GstAFSinkClass;
typedef struct _GstAFSink GstAFSink;
typedef struct _GstAFSinkClass GstAFSinkClass;
typedef enum
{
GST_AFSINK_OPEN = GST_ELEMENT_FLAG_LAST,
typedef enum {
GST_AFSINK_OPEN = GST_ELEMENT_FLAG_LAST,
GST_AFSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
} GstAFSinkFlags;
GST_AFSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
} GstAFSinkFlags;
struct _GstAFSink
{
GstElement element;
GstPad *sinkpad;
struct _GstAFSink {
GstElement element;
GstPad *sinkpad;
gchar *filename;
gchar *filename;
/* FILE *file; */
/* AFfilesetup outfilesetup; */
AFfilehandle file;
int format;
int channels;
int width;
unsigned int rate;
gboolean is_signed;
int type; /* type of output, compare to audiofile.h
* RAW, AIFF, AIFFC, NEXTSND, WAVE
*/
/* FIXME : endianness is a little cryptic at this point */
int endianness_data; /* 4321 or 1234 */
int endianness_wanted; /* same thing, but what the output format wants */
int endianness_output; /* what the output endianness will be */
};
struct _GstAFSinkClass
{
GstElementClass parent_class;
/* signals */
void (*handoff) (GstElement * element, GstPad * pad);
};
GType gst_afsink_get_type (void);
gboolean gst_afsink_plugin_init (GstPlugin * plugin);
AFfilehandle file;
int format;
int channels;
int width;
unsigned int rate;
gboolean is_signed;
int type; /* type of output, compare to audiofile.h
* RAW, AIFF, AIFFC, NEXTSND, WAVE
*/
/* FIXME : endianness is a little cryptic at this point */
int endianness_data; /* 4321 or 1234 */
int endianness_wanted; /* same thing, but what the output format wants */
int endianness_output; /* what the output endianness will be */
};
struct _GstAFSinkClass {
GstElementClass parent_class;
/* signals */
void (*handoff) (GstElement *element,GstPad *pad);
};
GType gst_afsink_get_type (void);
gboolean gst_afsink_plugin_init (GstPlugin *plugin);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* __GST_AFSINK_H__ */
#endif /* __GST_AFSINK_H__ */
......@@ -26,13 +26,12 @@
#include <gst/gst.h>
#include <audiofile.h> /* what else are we to do */
#include <audiofile.h> /* what else are we to do */
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
extern "C" {
#endif /* __cplusplus */
/*GstElementDetails gst_afsrc_details;*/
......@@ -49,63 +48,60 @@ extern "C"
#define GST_IS_AFSRC_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AFSRC))
typedef struct _GstAFSrc GstAFSrc;
typedef struct _GstAFSrcClass GstAFSrcClass;
typedef struct _GstAFSrc GstAFSrc;
typedef struct _GstAFSrcClass GstAFSrcClass;
typedef enum
{
GST_AFSRC_OPEN = GST_ELEMENT_FLAG_LAST,
typedef enum {
GST_AFSRC_OPEN = GST_ELEMENT_FLAG_LAST,
GST_AFSRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
} GstAFSrcFlags;
GST_AFSRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
} GstAFSrcFlags;
struct _GstAFSrc
{
GstElement element;
GstPad *srcpad;
struct _GstAFSrc {
GstElement element;
GstPad *srcpad;
gchar *filename;
gchar *filename;
/* FILE *file; */
/* AFfilesetup outfilesetup; */
AFfilehandle file;
int format;
int channels;
int width;
unsigned int rate;
gboolean is_signed;
int type; /* type of output, compare to audiofile.h
* RAW, AIFF, AIFFC, NEXTSND, WAVE
*/
/* blocking */
gulong curoffset;
gulong bytes_per_read;
AFfilehandle file;
int format;
int channels;
int width;
unsigned int rate;
gboolean is_signed;
int type; /* type of output, compare to audiofile.h
* RAW, AIFF, AIFFC, NEXTSND, WAVE
*/
/* blocking */
gulong curoffset;
gulong bytes_per_read;
gulong seq;
guint64 framestamp;
/* FIXME : endianness is a little cryptic at this point */
int endianness_data; /* 4321 or 1234 */
int endianness_wanted; /* same thing, but what the output format wants */
int endianness_output; /* what the output endianness will be */
};
gulong seq;
guint64 framestamp;
/* FIXME : endianness is a little cryptic at this point */
int endianness_data; /* 4321 or 1234 */
int endianness_wanted; /* same thing, but what the output format wants */
int endianness_output; /* what the output endianness will be */
};
struct _GstAFSrcClass
{
GstElementClass parent_class;
struct _GstAFSrcClass {
GstElementClass parent_class;
/* signals */
void (*handoff) (GstElement * element, GstPad * pad);
};
/* signals */
void (*handoff) (GstElement *element,GstPad *pad);
};
GType gst_afsrc_get_type (void);
gboolean gst_afsrc_plugin_init (GstPlugin * plugin);
GType gst_afsrc_get_type (void);
gboolean gst_afsrc_plugin_init (GstPlugin *plugin);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* __GST_AFSRC_H__ */
#endif /* __GST_AFSRC_H__ */
......@@ -24,9 +24,8 @@
#include <decore.h>
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
extern "C" {
#endif /* __cplusplus */
#define GST_TYPE_DIVXDEC \
......@@ -40,36 +39,34 @@ extern "C"
#define GST_IS_DIVXDEC_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_DIVXDEC))
typedef struct _GstDivxDec GstDivxDec;
typedef struct _GstDivxDecClass GstDivxDecClass;
typedef struct _GstDivxDec GstDivxDec;
typedef struct _GstDivxDecClass GstDivxDecClass;
struct _GstDivxDec
{
GstElement element;
struct _GstDivxDec {
GstElement element;
/* pads */
GstPad *sinkpad, *srcpad;
/* pads */
GstPad *sinkpad, *srcpad;
/* divx handle */
void *handle;
/* divx handle */
void *handle;
/* video (output) settings */
guint32 csp;
int bitcnt, bpp;
int version;
int width, height;
gdouble fps;
};
/* video (output) settings */
guint32 csp;
int bitcnt, bpp;
int version;
int width, height;
gdouble fps;
};
struct _GstDivxDecClass
{
GstElementClass parent_class;
};
struct _GstDivxDecClass {
GstElementClass parent_class;
};
GType gst_divxdec_get_type (void);
GType gst_divxdec_get_type(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* __GST_DIVXDEC_H__ */
#endif /* __GST_DIVXDEC_H__ */
......@@ -23,9 +23,8 @@
#include <gst/gst.h>
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
extern "C" {
#endif /* __cplusplus */
#define GST_TYPE_DIVXENC \
......@@ -39,48 +38,46 @@ extern "C"
#define GST_IS_DIVXENC_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_DIVXENC))
typedef struct _GstDivxEnc GstDivxEnc;
typedef struct _GstDivxEncClass GstDivxEncClass;
typedef struct _GstDivxEnc GstDivxEnc;
typedef struct _GstDivxEncClass GstDivxEncClass;
struct _GstDivxEnc
{
GstElement element;
struct _GstDivxEnc {
GstElement element;
/* pads */
GstPad *sinkpad, *srcpad;
/* pads */
GstPad *sinkpad, *srcpad;
/* quality of encoded image */
gulong bitrate;
/* quality of encoded image */
gulong bitrate;
/* size of the buffers */
gulong buffer_size;
/* size of the buffers */
gulong buffer_size;
/* max key interval */
gint max_key_interval;
/* max key interval */
gint max_key_interval;
/* amount of motion estimation to do */
gint quality;
/* amount of motion estimation to do */
gint quality;
/* divx handle */
void *handle;
guint32 csp;
gint bitcnt;
gint width, height;
gfloat fps;
};
/* divx handle */
void *handle;
guint32 csp;
gint bitcnt;
gint width, height;
gfloat fps;
};
struct _GstDivxEncClass
{
GstElementClass parent_class;
struct _GstDivxEncClass {
GstElementClass parent_class;
/* signals */
void (*frame_encoded) (GstElement * element);
};
/* signals */
void (*frame_encoded) (GstElement *element);
};
GType gst_divxenc_get_type (void);
GType gst_divxenc_get_type(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */
#endif /* __GST_DIVXENC_H__ */
#endif /* __GST_DIVXENC_H__ */
......@@ -24,6 +24,7 @@
#include <faac.h>
G_BEGIN_DECLS
#define GST_TYPE_FAAC \
(gst_faac_get_type ())
#define GST_FAAC(obj) \
......@@ -34,17 +35,25 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_FAAC))
#define GST_IS_FAAC_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_FAAC))
typedef struct _GstFaac
{
typedef struct _GstFaac {
GstElement element;
/* pads */
GstPad *srcpad, *sinkpad;
/* stream properties */
gint samplerate, channels, format, bps, bitrate, profile, shortctl;
gboolean tns, midside;
gulong bytes, samples;
gint samplerate,
channels,
format,