summaryrefslogtreecommitdiff
path: root/libavcodec/rnd_avg.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-14 00:45:22 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-14 00:45:26 +0100
commit3a27f968f9902d6ce2278f61c422ede4b9dbf70e (patch)
tree57382d60e755b4165f20c6b316bc5ab3a3305895 /libavcodec/rnd_avg.h
parent6016b8329bcaf7ce2464c6a291c00ae29a2fcb8f (diff)
parentacd2b8e42df25d46440583f93c12e5f285aebb31 (diff)
downloadffmpeg-3a27f968f9902d6ce2278f61c422ede4b9dbf70e.tar.gz
Merge commit 'acd2b8e42df25d46440583f93c12e5f285aebb31'
* commit 'acd2b8e42df25d46440583f93c12e5f285aebb31': rnd_avg.h: K&R formatting cosmetics Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/rnd_avg.h')
-rw-r--r--libavcodec/rnd_avg.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/libavcodec/rnd_avg.h b/libavcodec/rnd_avg.h
index 50ab59a0fc..96abec7a6f 100644
--- a/libavcodec/rnd_avg.h
+++ b/libavcodec/rnd_avg.h
@@ -25,14 +25,16 @@
#include <stddef.h>
#include <stdint.h>
-#define CALL_2X_PIXELS(a, b, n)\
-static void a(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h){\
- b(block , pixels , line_size, h);\
- b(block+n, pixels+n, line_size, h);\
+#define CALL_2X_PIXELS(a, b, n) \
+static void a(uint8_t *block, const uint8_t *pixels, \
+ ptrdiff_t line_size, int h) \
+{ \
+ b(block, pixels, line_size, h); \
+ b(block + n, pixels + n, line_size, h); \
}
-#define BYTE_VEC32(c) ((c)*0x01010101UL)
-#define BYTE_VEC64(c) ((c)*0x0001000100010001UL)
+#define BYTE_VEC32(c) ((c) * 0x01010101UL)
+#define BYTE_VEC64(c) ((c) * 0x0001000100010001UL)
static inline uint32_t rnd_avg32(uint32_t a, uint32_t b)
{