diff dsputil.c @ 3526:7dc8e4a12105 libavcodec

New functions in DSPContext for VC-1 decoding
author kostya
date Sun, 30 Jul 2006 03:45:02 +0000
parents ab49baf4adad
children 545a15c19c91
line wrap: on
line diff
--- a/dsputil.c	Sat Jul 29 20:47:47 2006 +0000
+++ b/dsputil.c	Sun Jul 30 03:45:02 2006 +0000
@@ -2588,6 +2588,15 @@
 }
 #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 @@
 #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;