summaryrefslogtreecommitdiff
path: root/gst/audioconvert/audioconvert.c
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2005-12-06 19:42:02 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2005-12-06 19:42:02 +0000
commit5f83aa7dfa6bd1f66082ab234a0f6293ea3c74db (patch)
treeba7e16c2b37846060c027718e351f64f0c3fe0f0 /gst/audioconvert/audioconvert.c
parent510adea20f7a64bc6d0451590fa89d5821dac4a2 (diff)
downloadgstreamer-plugins-base-5f83aa7dfa6bd1f66082ab234a0f6293ea3c74db.tar.gz
expand tabs
Original commit message from CVS: expand tabs
Diffstat (limited to 'gst/audioconvert/audioconvert.c')
-rw-r--r--gst/audioconvert/audioconvert.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/gst/audioconvert/audioconvert.c b/gst/audioconvert/audioconvert.c
index 1bd434dab..7531e6921 100644
--- a/gst/audioconvert/audioconvert.c
+++ b/gst/audioconvert/audioconvert.c
@@ -32,24 +32,24 @@
#define INT2FLOAT(i) (4.6566128752457969e-10 * ((gfloat)i))
/* sign bit in the intermediate format */
-#define SIGNED (1<<31)
+#define SIGNED (1<<31)
/***
* unpack code
*/
-#define MAKE_UNPACK_FUNC_NAME(name) \
+#define MAKE_UNPACK_FUNC_NAME(name) \
audio_convert_unpack_##name
-#define MAKE_UNPACK_FUNC(name, stride, sign, READ_FUNC) \
-static void \
-MAKE_UNPACK_FUNC_NAME (name) (gpointer src, gint32 *dst, \
- gint scale, gint count) \
-{ \
- guint8* p = (guint8 *) src; \
- for (;count; count--) { \
- *dst++ = (((gint32) READ_FUNC (p)) << scale) ^ (sign); \
- p+=stride; \
- } \
+#define MAKE_UNPACK_FUNC(name, stride, sign, READ_FUNC) \
+static void \
+MAKE_UNPACK_FUNC_NAME (name) (gpointer src, gint32 *dst, \
+ gint scale, gint count) \
+{ \
+ guint8* p = (guint8 *) src; \
+ for (;count; count--) { \
+ *dst++ = (((gint32) READ_FUNC (p)) << scale) ^ (sign); \
+ p+=stride; \
+ } \
}
/* special unpack code for float */
@@ -92,21 +92,21 @@ MAKE_UNPACK_FUNC (s32_be, 4, 0, READ32_FROM_BE);
/***
* packing code
*/
-#define MAKE_PACK_FUNC_NAME(name) \
+#define MAKE_PACK_FUNC_NAME(name) \
audio_convert_pack_##name
-#define MAKE_PACK_FUNC(name, stride, sign, WRITE_FUNC) \
-static void \
-MAKE_PACK_FUNC_NAME (name) (gint32 *src, gpointer dst, \
- gint scale, gint count) \
-{ \
- guint8 *p = (guint8 *)dst; \
- guint32 tmp; \
- for (;count; count--) { \
- tmp = (*src++ ^ (sign)) >> scale; \
- WRITE_FUNC (p, tmp); \
- p+=stride; \
- } \
+#define MAKE_PACK_FUNC(name, stride, sign, WRITE_FUNC) \
+static void \
+MAKE_PACK_FUNC_NAME (name) (gint32 *src, gpointer dst, \
+ gint scale, gint count) \
+{ \
+ guint8 *p = (guint8 *)dst; \
+ guint32 tmp; \
+ for (;count; count--) { \
+ tmp = (*src++ ^ (sign)) >> scale; \
+ WRITE_FUNC (p, tmp); \
+ p+=stride; \
+ } \
}
/* special float pack function */