diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2013-03-26 17:07:22 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-04-19 23:29:22 +0300 |
commit | 619e0da19119bcd683f135fe9a164f37c0ca70d1 (patch) | |
tree | ee28537950f886c6191a04d76db11fa272a06a25 /libavcodec/dsputil.c | |
parent | c443117f25e034c1e3ef35334b61b937e1e208ff (diff) | |
download | ffmpeg-619e0da19119bcd683f135fe9a164f37c0ca70d1.tar.gz |
dsputil: Remove unused 32-bit functions
Previously, if dct_bits was set to 32, we used separate 32-bit
versions of these functions. Since dct_bits now is removed,
remove the unused 32-bit versions of the functions.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r-- | libavcodec/dsputil.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 999b133bdf..696d16b59e 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -2728,21 +2728,22 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx) #define FUNC(f, depth) f ## _ ## depth #define FUNCC(f, depth) f ## _ ## depth ## _c -#define BIT_DEPTH_FUNCS(depth, dct)\ - c->get_pixels = FUNCC(get_pixels ## dct , depth);\ - c->draw_edges = FUNCC(draw_edges , depth);\ - c->clear_block = FUNCC(clear_block ## dct , depth);\ - c->clear_blocks = FUNCC(clear_blocks ## dct , depth);\ + c->clear_block = FUNCC(clear_block, 8); + c->clear_blocks = FUNCC(clear_blocks, 8); + +#define BIT_DEPTH_FUNCS(depth) \ + c->get_pixels = FUNCC(get_pixels, depth);\ + c->draw_edges = FUNCC(draw_edges, depth); switch (avctx->bits_per_raw_sample) { case 9: - BIT_DEPTH_FUNCS(9, _16); + BIT_DEPTH_FUNCS(9); break; case 10: - BIT_DEPTH_FUNCS(10, _16); + BIT_DEPTH_FUNCS(10); break; default: - BIT_DEPTH_FUNCS(8, _16); + BIT_DEPTH_FUNCS(8); break; } |