summaryrefslogtreecommitdiff
path: root/libavcodec/hevcdsp_template.c
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-01-31 15:55:35 +0100
committerClément Bœsch <cboesch@gopro.com>2017-01-31 15:55:44 +0100
commita604115f72ad0d77b69193989bbe16174135129d (patch)
tree41a06e5f435685f5ebc121fc73a4f2cb676a0f58 /libavcodec/hevcdsp_template.c
parent2456efcc0fe27a38b287abe38a98be49cf9247d5 (diff)
parenta92fd8a06256e71a0be87b03751ec3c2a4a8aa21 (diff)
downloadffmpeg-a604115f72ad0d77b69193989bbe16174135129d.tar.gz
Merge commit 'a92fd8a06256e71a0be87b03751ec3c2a4a8aa21'
* commit 'a92fd8a06256e71a0be87b03751ec3c2a4a8aa21': hevc: Add DC IDCT Noop, only spacing adjusted. Merged-by: Clément Bœsch <cboesch@gopro.com>
Diffstat (limited to 'libavcodec/hevcdsp_template.c')
-rw-r--r--libavcodec/hevcdsp_template.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/libavcodec/hevcdsp_template.c b/libavcodec/hevcdsp_template.c
index ae32dccb19..1dbd47a45b 100644
--- a/libavcodec/hevcdsp_template.c
+++ b/libavcodec/hevcdsp_template.c
@@ -263,19 +263,19 @@ static void FUNC(idct_ ## H ## x ## H )(int16_t *coeffs, \
} \
}
-#define IDCT_DC(H) \
-static void FUNC(idct_##H ##x ##H ##_dc)( \
- int16_t *coeffs) { \
- int i, j; \
- int shift = 14 - BIT_DEPTH; \
- int add = 1 << (shift - 1); \
- int coeff = (((coeffs[0] + 1) >> 1) + add) >> shift; \
- \
- for (j = 0; j < H; j++) { \
- for (i = 0; i < H; i++) { \
- coeffs[i+j*H] = coeff; \
- } \
- } \
+#define IDCT_DC(H) \
+static void FUNC(idct_ ## H ## x ## H ## _dc)(int16_t *coeffs) \
+{ \
+ int i, j; \
+ int shift = 14 - BIT_DEPTH; \
+ int add = 1 << (shift - 1); \
+ int coeff = (((coeffs[0] + 1) >> 1) + add) >> shift; \
+ \
+ for (j = 0; j < H; j++) { \
+ for (i = 0; i < H; i++) { \
+ coeffs[i + j * H] = coeff; \
+ } \
+ } \
}
IDCT( 4)