summaryrefslogtreecommitdiff
path: root/tests/checkasm/h264pred.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-07-17 20:07:26 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-07-17 21:29:20 +0200
commitfc56868399213d3e9be19bdebeb64df233b39a7e (patch)
treeb5cf68dd6db3e94408c26b531b7a5790a7c8bdad /tests/checkasm/h264pred.c
parentd37f23263584774e1798e9ac909a398304a05091 (diff)
cosmetics: Reformat checkasm tests
Diffstat (limited to 'tests/checkasm/h264pred.c')
-rw-r--r--tests/checkasm/h264pred.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/checkasm/h264pred.c b/tests/checkasm/h264pred.c
index f0d493da90..a5eb033f7d 100644
--- a/tests/checkasm/h264pred.c
+++ b/tests/checkasm/h264pred.c
@@ -117,26 +117,26 @@ static const char * const pred16x16_modes[4][9] = {
static const uint32_t pixel_mask[3] = { 0xffffffff, 0x01ff01ff, 0x03ff03ff };
#define SIZEOF_PIXEL ((bit_depth + 7) / 8)
-#define BUF_SIZE (3*16*17)
-
-#define check_pred_func(func, name, mode_name)\
- (mode_name && ((codec_ids[codec] == AV_CODEC_ID_H264) ?\
- check_func(func, "pred%s_%s_%d", name, mode_name, bit_depth) :\
- check_func(func, "pred%s_%s", name, mode_name)))
-
-#define randomize_buffers()\
- do {\
- uint32_t mask = pixel_mask[bit_depth-8];\
- int i;\
- for (i = 0; i < BUF_SIZE; i += 4) {\
- uint32_t r = rnd() & mask;\
- AV_WN32A(buf0+i, r);\
- AV_WN32A(buf1+i, r);\
- }\
+#define BUF_SIZE (3 * 16 * 17)
+
+#define check_pred_func(func, name, mode_name) \
+ (mode_name && ((codec_ids[codec] == AV_CODEC_ID_H264) ? \
+ check_func(func, "pred%s_%s_%d", name, mode_name, bit_depth) : \
+ check_func(func, "pred%s_%s", name, mode_name)))
+
+#define randomize_buffers() \
+ do { \
+ uint32_t mask = pixel_mask[bit_depth - 8]; \
+ int i; \
+ for (i = 0; i < BUF_SIZE; i += 4) { \
+ uint32_t r = rnd() & mask; \
+ AV_WN32A(buf0 + i, r); \
+ AV_WN32A(buf1 + i, r); \
+ } \
} while (0)
-#define src0 (buf0 + 4*16) /* Offset to allow room for top and left */
-#define src1 (buf1 + 4*16)
+#define src0 (buf0 + 4 * 16) /* Offset to allow room for top and left */
+#define src1 (buf1 + 4 * 16)
static void check_pred4x4(H264PredContext *h, uint8_t *buf0, uint8_t *buf1,
int codec, int chroma_format, int bit_depth)