comparison vc1.c @ 3552:4a0f82c8dc43 libavcodec

Bicubic interpolation requires two additional pixels for block
author kostya
date Sun, 06 Aug 2006 03:42:39 +0000
parents f7b09917c680
children a542b0325239
comparison
equal deleted inserted replaced
3551:b0953f642148 3552:4a0f82c8dc43
921 src_y = clip( src_y, -16, s->mb_height * 16); 921 src_y = clip( src_y, -16, s->mb_height * 16);
922 922
923 srcY += src_y * s->linesize + src_x; 923 srcY += src_y * s->linesize + src_x;
924 924
925 if(v->rangeredfrm || (v->mv_mode == MV_PMODE_INTENSITY_COMP) 925 if(v->rangeredfrm || (v->mv_mode == MV_PMODE_INTENSITY_COMP)
926 || (unsigned)(src_x - s->mspel) > s->h_edge_pos - (mx&3) - 8 - s->mspel 926 || (unsigned)(src_x - s->mspel) > s->h_edge_pos - (mx&3) - 8 - s->mspel*2
927 || (unsigned)(src_y - s->mspel) > s->v_edge_pos - (my&3) - 8 - s->mspel){ 927 || (unsigned)(src_y - s->mspel) > s->v_edge_pos - (my&3) - 8 - s->mspel*2){
928 srcY -= s->mspel * (1 + s->linesize); 928 srcY -= s->mspel * (1 + s->linesize);
929 ff_emulated_edge_mc(s->edge_emu_buffer, srcY, s->linesize, 9+s->mspel*2, 9+s->mspel*2, 929 ff_emulated_edge_mc(s->edge_emu_buffer, srcY, s->linesize, 9+s->mspel*2, 9+s->mspel*2,
930 src_x - s->mspel, src_y - s->mspel, s->h_edge_pos, s->v_edge_pos); 930 src_x - s->mspel, src_y - s->mspel, s->h_edge_pos, s->v_edge_pos);
931 srcY = s->edge_emu_buffer; 931 srcY = s->edge_emu_buffer;
932 /* if we deal with range reduction we need to scale source blocks */ 932 /* if we deal with range reduction we need to scale source blocks */