diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2013-03-08 20:16:08 -0800 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-04-10 10:59:14 +0300 |
commit | 6d25c9db11e87ec58652de6588448225137b0c57 (patch) | |
tree | 14680d76800e4f7ac20ad462f1cbd7a48d09d251 /libavcodec/dsputil.c | |
parent | 2e81acc687e64d15dd93c74793060bb5a233f44d (diff) | |
download | ffmpeg-6d25c9db11e87ec58652de6588448225137b0c57.tar.gz |
dsputil: Make square put/avg_pixels functions local to h264qpel
Put a copy of the 8bit functions only in dsputil, where they are
used for some other things (e.g. mpeg4qpel, mspel, cavsqpel).
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r-- | libavcodec/dsputil.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index f91432c451..1744f4c25d 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -1269,12 +1269,29 @@ QPEL_MC(0, avg_ , _ , op_avg) #undef op_put #undef op_put_no_rnd +void ff_put_pixels8x8_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride) +{ + put_pixels8_8_c(dst, src, stride, 8); +} +void ff_avg_pixels8x8_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride) +{ + avg_pixels8_8_c(dst, src, stride, 8); +} +void ff_put_pixels16x16_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride) +{ + put_pixels16_8_c(dst, src, stride, 16); +} +void ff_avg_pixels16x16_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride) +{ + avg_pixels16_8_c(dst, src, stride, 16); +} + #define put_qpel8_mc00_c ff_put_pixels8x8_c #define avg_qpel8_mc00_c ff_avg_pixels8x8_c #define put_qpel16_mc00_c ff_put_pixels16x16_c #define avg_qpel16_mc00_c ff_avg_pixels16x16_c #define put_no_rnd_qpel8_mc00_c ff_put_pixels8x8_c -#define put_no_rnd_qpel16_mc00_c ff_put_pixels16x16_8_c +#define put_no_rnd_qpel16_mc00_c ff_put_pixels16x16_c static void wmv2_mspel8_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h){ const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; |