diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-30 01:23:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-30 01:23:04 +0200 |
commit | d35899ccce39e77a3f7fb667bdfc710c605d03a4 (patch) | |
tree | a72ecac476a799f37c63fe704758f61044a999e8 /libavcodec/binkdsp.c | |
parent | 40f3a87c10d5773eb66e09f4ed3d8197b1840863 (diff) | |
parent | cb52a17cb62297802b0a77e5af9850d87c3f925b (diff) | |
download | ffmpeg-d35899ccce39e77a3f7fb667bdfc710c605d03a4.tar.gz |
Merge commit 'cb52a17cb62297802b0a77e5af9850d87c3f925b'
* commit 'cb52a17cb62297802b0a77e5af9850d87c3f925b':
dsputil: Move Bink-specific add_pixels8 to binkdsp
Conflicts:
libavcodec/dsputil.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/binkdsp.c')
-rw-r--r-- | libavcodec/binkdsp.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libavcodec/binkdsp.c b/libavcodec/binkdsp.c index 5b3c26229f..9d70e2326f 100644 --- a/libavcodec/binkdsp.c +++ b/libavcodec/binkdsp.c @@ -24,6 +24,7 @@ * Bink DSP routines */ +#include "config.h" #include "libavutil/attributes.h" #include "binkdsp.h" @@ -128,9 +129,29 @@ static void scale_block_c(const uint8_t src[64]/*align 8*/, uint8_t *dst/*align } } +static void add_pixels8_c(uint8_t *av_restrict pixels, int16_t *block, + int line_size) +{ + int i; + + for (i = 0; i < 8; i++) { + pixels[0] += block[0]; + pixels[1] += block[1]; + pixels[2] += block[2]; + pixels[3] += block[3]; + pixels[4] += block[4]; + pixels[5] += block[5]; + pixels[6] += block[6]; + pixels[7] += block[7]; + pixels += line_size; + block += 8; + } +} + av_cold void ff_binkdsp_init(BinkDSPContext *c) { c->idct_add = bink_idct_add_c; c->idct_put = bink_idct_put_c; c->scale_block = scale_block_c; + c->add_pixels8 = add_pixels8_c; } |