diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2015-09-28 14:59:23 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-10-02 05:38:40 +0300 |
commit | 562ba4a827ceb9ed5b7d056484a9c2312a5458c5 (patch) | |
tree | 756de8e3459acfdf786f1f5343b5346757c8c491 /libavcodec/ppc | |
parent | acdd6725065b4b71723a2c40c0fca9d69b8780cf (diff) |
blockdsp: remove high bitdepth parameter
It is only (mis-)used to set the dsp fucntions clear_block(s). But
these functions always work on 16bits-wide elements, which make
the parameter useless and actually harmful, as it causes all content
on more than 8-bits to not use accelerated functions.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/blockdsp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/ppc/blockdsp.c b/libavcodec/ppc/blockdsp.c index 0059b3b448..65d2feffec 100644 --- a/libavcodec/ppc/blockdsp.c +++ b/libavcodec/ppc/blockdsp.c @@ -143,10 +143,9 @@ 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; @@ -157,13 +156,11 @@ av_cold void ff_blockdsp_init_ppc(BlockDSPContext *c, unsigned high_bit_depth) default: break; } - } #if HAVE_ALTIVEC if (!PPC_ALTIVEC(av_get_cpu_flags())) return; - if (!high_bit_depth) c->clear_block = clear_block_altivec; #endif /* HAVE_ALTIVEC */ } |