mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Merge commit 'a92fd8a06256e71a0be87b03751ec3c2a4a8aa21'
* commit 'a92fd8a06256e71a0be87b03751ec3c2a4a8aa21': hevc: Add DC IDCT Noop, only spacing adjusted. Merged-by: Clément Bœsch <cboesch@gopro.com>
This commit is contained in:
commit
a604115f72
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user