comparison dsputil.c @ 3395:adccbf4a1040 libavcodec

CAVS decoder by (Stefan Gehrer stefan.gehrer gmx.de)
author michael
date Mon, 03 Jul 2006 00:16:45 +0000
parents b8996cc5ccae
children ab49baf4adad
comparison
equal deleted inserted replaced
3394:2b5283c15310 3395:adccbf4a1040
2568 dst+=dstStride; 2568 dst+=dstStride;
2569 src+=srcStride; 2569 src+=srcStride;
2570 } 2570 }
2571 } 2571 }
2572 2572
2573 /* AVS specific */
2574 void ff_cavsdsp_init(DSPContext* c, AVCodecContext *avctx);
2575
2576 void ff_put_cavs_qpel8_mc00_c(uint8_t *dst, uint8_t *src, int stride) {
2577 put_pixels8_c(dst, src, stride, 8);
2578 }
2579 void ff_avg_cavs_qpel8_mc00_c(uint8_t *dst, uint8_t *src, int stride) {
2580 avg_pixels8_c(dst, src, stride, 8);
2581 }
2582 void ff_put_cavs_qpel16_mc00_c(uint8_t *dst, uint8_t *src, int stride) {
2583 put_pixels16_c(dst, src, stride, 16);
2584 }
2585 void ff_avg_cavs_qpel16_mc00_c(uint8_t *dst, uint8_t *src, int stride) {
2586 avg_pixels16_c(dst, src, stride, 16);
2587 }
2588
2573 static void wmv2_mspel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w){ 2589 static void wmv2_mspel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w){
2574 uint8_t *cm = cropTbl + MAX_NEG_CROP; 2590 uint8_t *cm = cropTbl + MAX_NEG_CROP;
2575 int i; 2591 int i;
2576 2592
2577 for(i=0; i<w; i++){ 2593 for(i=0; i<w; i++){
3987 c->biweight_h264_pixels_tab[6]= biweight_h264_pixels4x4_c; 4003 c->biweight_h264_pixels_tab[6]= biweight_h264_pixels4x4_c;
3988 c->biweight_h264_pixels_tab[7]= biweight_h264_pixels4x2_c; 4004 c->biweight_h264_pixels_tab[7]= biweight_h264_pixels4x2_c;
3989 c->biweight_h264_pixels_tab[8]= biweight_h264_pixels2x4_c; 4005 c->biweight_h264_pixels_tab[8]= biweight_h264_pixels2x4_c;
3990 c->biweight_h264_pixels_tab[9]= biweight_h264_pixels2x2_c; 4006 c->biweight_h264_pixels_tab[9]= biweight_h264_pixels2x2_c;
3991 4007
4008 ff_cavsdsp_init(c,avctx);
4009
3992 c->put_mspel_pixels_tab[0]= put_mspel8_mc00_c; 4010 c->put_mspel_pixels_tab[0]= put_mspel8_mc00_c;
3993 c->put_mspel_pixels_tab[1]= put_mspel8_mc10_c; 4011 c->put_mspel_pixels_tab[1]= put_mspel8_mc10_c;
3994 c->put_mspel_pixels_tab[2]= put_mspel8_mc20_c; 4012 c->put_mspel_pixels_tab[2]= put_mspel8_mc20_c;
3995 c->put_mspel_pixels_tab[3]= put_mspel8_mc30_c; 4013 c->put_mspel_pixels_tab[3]= put_mspel8_mc30_c;
3996 c->put_mspel_pixels_tab[4]= put_mspel8_mc02_c; 4014 c->put_mspel_pixels_tab[4]= put_mspel8_mc02_c;