diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-08-08 22:47:20 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-09-22 10:47:52 +0300 |
commit | eea9857bfd6925d0c34382c00b971ee6df12ad44 (patch) | |
tree | 3c0ecc889c05a71709aca367a51ca4b75d8aa277 /libavcodec/ppc | |
parent | 340f12f71207513672b5165d810cb6c8622c6b21 (diff) |
blockdsp: drop the high_bit_depth parameter
It has no effect, since the code is supposed to operate the same way for
any bit depth.
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/blockdsp.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/libavcodec/ppc/blockdsp.c b/libavcodec/ppc/blockdsp.c index 679bc0454f..d2c1d0e766 100644 --- a/libavcodec/ppc/blockdsp.c +++ b/libavcodec/ppc/blockdsp.c @@ -143,27 +143,24 @@ static void clear_block_altivec(int16_t *block) } #endif /* HAVE_ALTIVEC */ -av_cold void ff_blockdsp_init_ppc(BlockDSPContext *c, unsigned high_bit_depth) +av_cold void ff_blockdsp_init_ppc(BlockDSPContext *c) { // common optimizations whether AltiVec is available or not - if (!high_bit_depth) { - switch (check_dcbzl_effect()) { - case 32: - c->clear_blocks = clear_blocks_dcbz32_ppc; - break; - case 128: - c->clear_blocks = clear_blocks_dcbz128_ppc; - break; - default: - break; - } + switch (check_dcbzl_effect()) { + case 32: + c->clear_blocks = clear_blocks_dcbz32_ppc; + break; + case 128: + c->clear_blocks = clear_blocks_dcbz128_ppc; + break; + default: + break; } #if HAVE_ALTIVEC if (!PPC_ALTIVEC(av_get_cpu_flags())) return; - if (!high_bit_depth) - c->clear_block = clear_block_altivec; + c->clear_block = clear_block_altivec; #endif /* HAVE_ALTIVEC */ } |