summaryrefslogtreecommitdiffstats
path: root/libavcodec/blockdsp.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-08-08 21:47:20 +0200
committerAnton Khirnov <anton@khirnov.net>2016-09-22 09:47:52 +0200
commiteea9857bfd6925d0c34382c00b971ee6df12ad44 (patch)
tree3c0ecc889c05a71709aca367a51ca4b75d8aa277 /libavcodec/blockdsp.c
parent340f12f71207513672b5165d810cb6c8622c6b21 (diff)
downloadffmpeg-streaming-eea9857bfd6925d0c34382c00b971ee6df12ad44.zip
ffmpeg-streaming-eea9857bfd6925d0c34382c00b971ee6df12ad44.tar.gz
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/blockdsp.c')
-rw-r--r--libavcodec/blockdsp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libavcodec/blockdsp.c b/libavcodec/blockdsp.c
index e3d2ca1..a35df8c 100644
--- a/libavcodec/blockdsp.c
+++ b/libavcodec/blockdsp.c
@@ -57,8 +57,6 @@ static void fill_block8_c(uint8_t *block, uint8_t value, int line_size, int h)
av_cold void ff_blockdsp_init(BlockDSPContext *c, AVCodecContext *avctx)
{
- const unsigned high_bit_depth = avctx->bits_per_raw_sample > 8;
-
c->clear_block = clear_block_8_c;
c->clear_blocks = clear_blocks_8_c;
@@ -66,13 +64,13 @@ av_cold void ff_blockdsp_init(BlockDSPContext *c, AVCodecContext *avctx)
c->fill_block_tab[1] = fill_block8_c;
if (ARCH_ARM)
- ff_blockdsp_init_arm(c, high_bit_depth);
+ ff_blockdsp_init_arm(c);
if (ARCH_PPC)
- ff_blockdsp_init_ppc(c, high_bit_depth);
+ ff_blockdsp_init_ppc(c);
if (ARCH_X86)
#if FF_API_XVMC
- ff_blockdsp_init_x86(c, high_bit_depth, avctx);
+ ff_blockdsp_init_x86(c, avctx);
#else
- ff_blockdsp_init_x86(c, high_bit_depth);
+ ff_blockdsp_init_x86(c);
#endif /* FF_API_XVMC */
}
OpenPOWER on IntegriCloud