diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-07-30 03:45:02 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-07-30 03:45:02 +0000 |
commit | 64db55aedb57e17c8ed9811fbade352f153b3cee (patch) | |
tree | 1579f84b17080b6aacfb45278afcc4fcab693d74 /libavcodec/dsputil.c | |
parent | 59d0fc57794efd327a6cec5bb09921c46985b62d (diff) | |
download | ffmpeg-64db55aedb57e17c8ed9811fbade352f153b3cee.tar.gz |
New functions in DSPContext for VC-1 decoding
Originally committed as revision 5862 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r-- | libavcodec/dsputil.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 5c22184135..9b79b8659d 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -2588,6 +2588,15 @@ void ff_avg_cavs_qpel16_mc00_c(uint8_t *dst, uint8_t *src, int stride) { } #endif /* CONFIG_CAVS_DECODER */ +#if defined(CONFIG_VC1_DECODER) || defined(CONFIG_WMV3_DECODER) +/* VC-1 specific */ +void ff_vc1dsp_init(DSPContext* c, AVCodecContext *avctx); + +void ff_put_vc1_mspel_mc00_c(uint8_t *dst, uint8_t *src, int stride, int rnd) { + put_pixels8_c(dst, src, stride, 8); +} +#endif /* CONFIG_VC1_DECODER||CONFIG_WMV3_DECODER */ + static void wmv2_mspel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w){ uint8_t *cm = cropTbl + MAX_NEG_CROP; int i; @@ -4010,6 +4019,9 @@ void dsputil_init(DSPContext* c, AVCodecContext *avctx) #ifdef CONFIG_CAVS_DECODER ff_cavsdsp_init(c,avctx); #endif +#if defined(CONFIG_VC1_DECODER) || defined(CONFIG_WMV3_DECODER) + ff_vc1dsp_init(c,avctx); +#endif c->put_mspel_pixels_tab[0]= put_mspel8_mc00_c; c->put_mspel_pixels_tab[1]= put_mspel8_mc10_c; |