Commit a604115f authored by Clément Bœsch's avatar Clément Bœsch

Merge commit 'a92fd8a0'

* commit 'a92fd8a0':
  hevc: Add DC IDCT

Noop, only spacing adjusted.
Merged-by: 's avatarClément Bœsch <cboesch@gopro.com>
parents 2456efcc a92fd8a0
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment