Revision b0c8e1b8 libavcodec/vc1.c

View differences:

libavcodec/vc1.c
879 879
    if(s->flags & CODEC_FLAG_GRAY) return;
880 880
    /* Chroma MC always uses qpel bilinear */
881 881
    uvdxy = ((uvmy & 3) << 2) | (uvmx & 3);
882
    dsp->put_vc1_qpel_pixels_tab[uvdxy](s->dest[1], srcU, s->uvlinesize, v->rnd);
883
    dsp->put_vc1_qpel_pixels_tab[uvdxy](s->dest[2], srcV, s->uvlinesize, v->rnd);
882
    uvmx = (uvmx&3)<<1;
883
    uvmy = (uvmy&3)<<1;
884
    if(!v->rnd){
885
        dsp->put_h264_chroma_pixels_tab[0](s->dest[1], srcU, s->uvlinesize, 8, uvmx, uvmy);
886
        dsp->put_h264_chroma_pixels_tab[0](s->dest[2], srcV, s->uvlinesize, 8, uvmx, uvmy);
887
    }else{
888
        dsp->put_no_rnd_h264_chroma_pixels_tab[0](s->dest[1], srcU, s->uvlinesize, 8, uvmx, uvmy);
889
        dsp->put_no_rnd_h264_chroma_pixels_tab[0](s->dest[2], srcV, s->uvlinesize, 8, uvmx, uvmy);
890
    }
884 891
}
885 892

  
886 893
/** Do motion compensation for 4-MV macroblock - luminance block
......
1077 1084

  
1078 1085
    /* Chroma MC always uses qpel bilinear */
1079 1086
    uvdxy = ((uvmy & 3) << 2) | (uvmx & 3);
1080
    dsp->put_vc1_qpel_pixels_tab[uvdxy](s->dest[1], srcU, s->uvlinesize, v->rnd);
1081
    dsp->put_vc1_qpel_pixels_tab[uvdxy](s->dest[2], srcV, s->uvlinesize, v->rnd);
1087
    uvmx = (uvmx&3)<<1;
1088
    uvmy = (uvmy&3)<<1;
1089
    if(!v->rnd){
1090
        dsp->put_h264_chroma_pixels_tab[0](s->dest[1], srcU, s->uvlinesize, 8, uvmx, uvmy);
1091
        dsp->put_h264_chroma_pixels_tab[0](s->dest[2], srcV, s->uvlinesize, 8, uvmx, uvmy);
1092
    }else{
1093
        dsp->put_no_rnd_h264_chroma_pixels_tab[0](s->dest[1], srcU, s->uvlinesize, 8, uvmx, uvmy);
1094
        dsp->put_no_rnd_h264_chroma_pixels_tab[0](s->dest[2], srcV, s->uvlinesize, 8, uvmx, uvmy);
1095
    }
1082 1096
}
1083 1097

  
1084 1098
/**

Also available in: Unified diff