comparison 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
comparison
equal deleted inserted replaced
3525:5a3d790ebbed 3526:7dc8e4a12105
2586 void ff_avg_cavs_qpel16_mc00_c(uint8_t *dst, uint8_t *src, int stride) { 2586 void ff_avg_cavs_qpel16_mc00_c(uint8_t *dst, uint8_t *src, int stride) {
2587 avg_pixels16_c(dst, src, stride, 16); 2587 avg_pixels16_c(dst, src, stride, 16);
2588 } 2588 }
2589 #endif /* CONFIG_CAVS_DECODER */ 2589 #endif /* CONFIG_CAVS_DECODER */
2590 2590
2591 #if defined(CONFIG_VC1_DECODER) || defined(CONFIG_WMV3_DECODER)
2592 /* VC-1 specific */
2593 void ff_vc1dsp_init(DSPContext* c, AVCodecContext *avctx);
2594
2595 void ff_put_vc1_mspel_mc00_c(uint8_t *dst, uint8_t *src, int stride, int rnd) {
2596 put_pixels8_c(dst, src, stride, 8);
2597 }
2598 #endif /* CONFIG_VC1_DECODER||CONFIG_WMV3_DECODER */
2599
2591 static void wmv2_mspel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w){ 2600 static void wmv2_mspel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w){
2592 uint8_t *cm = cropTbl + MAX_NEG_CROP; 2601 uint8_t *cm = cropTbl + MAX_NEG_CROP;
2593 int i; 2602 int i;
2594 2603
2595 for(i=0; i<w; i++){ 2604 for(i=0; i<w; i++){
4008 c->biweight_h264_pixels_tab[9]= biweight_h264_pixels2x2_c; 4017 c->biweight_h264_pixels_tab[9]= biweight_h264_pixels2x2_c;
4009 4018
4010 #ifdef CONFIG_CAVS_DECODER 4019 #ifdef CONFIG_CAVS_DECODER
4011 ff_cavsdsp_init(c,avctx); 4020 ff_cavsdsp_init(c,avctx);
4012 #endif 4021 #endif
4022 #if defined(CONFIG_VC1_DECODER) || defined(CONFIG_WMV3_DECODER)
4023 ff_vc1dsp_init(c,avctx);
4024 #endif
4013 4025
4014 c->put_mspel_pixels_tab[0]= put_mspel8_mc00_c; 4026 c->put_mspel_pixels_tab[0]= put_mspel8_mc00_c;
4015 c->put_mspel_pixels_tab[1]= put_mspel8_mc10_c; 4027 c->put_mspel_pixels_tab[1]= put_mspel8_mc10_c;
4016 c->put_mspel_pixels_tab[2]= put_mspel8_mc20_c; 4028 c->put_mspel_pixels_tab[2]= put_mspel8_mc20_c;
4017 c->put_mspel_pixels_tab[3]= put_mspel8_mc30_c; 4029 c->put_mspel_pixels_tab[3]= put_mspel8_mc30_c;