static inline void rv34_mc(RV34DecContext *r, const int block_type,

                          const int xoff, const int yoff, int mv_off,

                          const int width, const int height, int dir,

                          const int thirdpel, int weighted,

                          qpel_mc_func (*qpel_mc)[16],

                          h264_chroma_mc_func (*chroma_mc))

{

    MpegEncContext *s = &r->s;

    uint8_t *Y, *U, *V, *srcY, *srcU, *srcV;

    int dxy, mx, my, umx, umy, lx, ly, uvmx, uvmy, src_x, src_y, uvsrc_x, uvsrc_y;

    int mv_pos = s->mb_x * 2 + s->mb_y * 2 * s->b8_stride + mv_off;

    int is16x16 = 1;



    if(thirdpel){

        int chroma_mx, chroma_my;

        mx = (s->current_picture_ptr->f.motion_val[dir][mv_pos][0] + (3 << 24)) / 3 - (1 << 24);

        my = (s->current_picture_ptr->f.motion_val[dir][mv_pos][1] + (3 << 24)) / 3 - (1 << 24);

        lx = (s->current_picture_ptr->f.motion_val[dir][mv_pos][0] + (3 << 24)) % 3;

        ly = (s->current_picture_ptr->f.motion_val[dir][mv_pos][1] + (3 << 24)) % 3;

        chroma_mx = s->current_picture_ptr->f.motion_val[dir][mv_pos][0] / 2;

        chroma_my = s->current_picture_ptr->f.motion_val[dir][mv_pos][1] / 2;

        umx = (chroma_mx + (3 << 24)) / 3 - (1 << 24);

        umy = (chroma_my + (3 << 24)) / 3 - (1 << 24);

        uvmx = chroma_coeffs[(chroma_mx + (3 << 24)) % 3];

        uvmy = chroma_coeffs[(chroma_my + (3 << 24)) % 3];

    }else{

        int cx, cy;

        mx = s->current_picture_ptr->f.motion_val[dir][mv_pos][0] >> 2;

        my = s->current_picture_ptr->f.motion_val[dir][mv_pos][1] >> 2;

        lx = s->current_picture_ptr->f.motion_val[dir][mv_pos][0] & 3;

        ly = s->current_picture_ptr->f.motion_val[dir][mv_pos][1] & 3;

        cx = s->current_picture_ptr->f.motion_val[dir][mv_pos][0] / 2;

        cy = s->current_picture_ptr->f.motion_val[dir][mv_pos][1] / 2;

        umx = cx >> 2;

        umy = cy >> 2;

        uvmx = (cx & 3) << 1;

        uvmy = (cy & 3) << 1;

        //due to some flaw RV40 uses the same MC compensation routine for H2V2 and H3V3

        if(uvmx == 6 && uvmy == 6)

            uvmx = uvmy = 4;

    }

    dxy = ly*4 + lx;

    srcY = dir ? s->next_picture_ptr->f.data[0] : s->last_picture_ptr->f.data[0];

    srcU = dir ? s->next_picture_ptr->f.data[1] : s->last_picture_ptr->f.data[1];

    srcV = dir ? s->next_picture_ptr->f.data[2] : s->last_picture_ptr->f.data[2];

    src_x = s->mb_x * 16 + xoff + mx;

    src_y = s->mb_y * 16 + yoff + my;

    uvsrc_x = s->mb_x * 8 + (xoff >> 1) + umx;

    uvsrc_y = s->mb_y * 8 + (yoff >> 1) + umy;

    srcY += src_y * s->linesize + src_x;

    srcU += uvsrc_y * s->uvlinesize + uvsrc_x;

    srcV += uvsrc_y * s->uvlinesize + uvsrc_x;

    if(   (unsigned)(src_x - !!lx*2) > s->h_edge_pos - !!lx*2 - (width <<3) - 4

       || (unsigned)(src_y - !!ly*2) > s->v_edge_pos - !!ly*2 - (height<<3) - 4){

        uint8_t *uvbuf = s->edge_emu_buffer + 22 * s->linesize;



        srcY -= 2 + 2*s->linesize;

        s->dsp.emulated_edge_mc(s->edge_emu_buffer, srcY, s->linesize, (width<<3)+6, (height<<3)+6,

                            src_x - 2, src_y - 2, s->h_edge_pos, s->v_edge_pos);

        srcY = s->edge_emu_buffer + 2 + 2*s->linesize;

        s->dsp.emulated_edge_mc(uvbuf     , srcU, s->uvlinesize, (width<<2)+1, (height<<2)+1,

                            uvsrc_x, uvsrc_y, s->h_edge_pos >> 1, s->v_edge_pos >> 1);

        s->dsp.emulated_edge_mc(uvbuf + 16, srcV, s->uvlinesize, (width<<2)+1, (height<<2)+1,

                            uvsrc_x, uvsrc_y, s->h_edge_pos >> 1, s->v_edge_pos >> 1);

        srcU = uvbuf;

        srcV = uvbuf + 16;

    }

    if(!weighted){

        Y = s->dest[0] + xoff      + yoff     *s->linesize;

        U = s->dest[1] + (xoff>>1) + (yoff>>1)*s->uvlinesize;

        V = s->dest[2] + (xoff>>1) + (yoff>>1)*s->uvlinesize;

    }else{

        Y = r->tmp_b_block_y [dir]     +  xoff     +  yoff    *s->linesize;

        U = r->tmp_b_block_uv[dir*2]   + (xoff>>1) + (yoff>>1)*s->uvlinesize;

        V = r->tmp_b_block_uv[dir*2+1] + (xoff>>1) + (yoff>>1)*s->uvlinesize;

    }



    if(block_type == RV34_MB_P_16x8){

        qpel_mc[1][dxy](Y, srcY, s->linesize);

        Y    += 8;

        srcY += 8;

    }else if(block_type == RV34_MB_P_8x16){

        qpel_mc[1][dxy](Y, srcY, s->linesize);

        Y    += 8 * s->linesize;

        srcY += 8 * s->linesize;

    }

    is16x16 = (block_type != RV34_MB_P_8x8) && (block_type != RV34_MB_P_16x8) && (block_type != RV34_MB_P_8x16);

    qpel_mc[!is16x16][dxy](Y, srcY, s->linesize);

    chroma_mc[2-width]   (U, srcU, s->uvlinesize, height*4, uvmx, uvmy);

    chroma_mc[2-width]   (V, srcV, s->uvlinesize, height*4, uvmx, uvmy);

}

static inline void rv34_mc(RV34DecContext *r, const int block_type,

                          const int xoff, const int yoff, int mv_off,

                          const int width, const int height, int dir,

                          const int thirdpel, int weighted,

                          qpel_mc_func (*qpel_mc)[16],

                          h264_chroma_mc_func (*chroma_mc))

{

    MpegEncContext *s = &r->s;

    uint8_t *Y, *U, *V, *srcY, *srcU, *srcV;

    int dxy, mx, my, umx, umy, lx, ly, uvmx, uvmy, src_x, src_y, uvsrc_x, uvsrc_y;

    int mv_pos = s->mb_x * 2 + s->mb_y * 2 * s->b8_stride + mv_off;

    int is16x16 = 1;



    if(thirdpel){

        int chroma_mx, chroma_my;

        mx = (s->current_picture_ptr->f.motion_val[dir][mv_pos][0] + (3 << 24)) / 3 - (1 << 24);

        my = (s->current_picture_ptr->f.motion_val[dir][mv_pos][1] + (3 << 24)) / 3 - (1 << 24);

        lx = (s->current_picture_ptr->f.motion_val[dir][mv_pos][0] + (3 << 24)) % 3;

        ly = (s->current_picture_ptr->f.motion_val[dir][mv_pos][1] + (3 << 24)) % 3;

        chroma_mx = s->current_picture_ptr->f.motion_val[dir][mv_pos][0] / 2;

        chroma_my = s->current_picture_ptr->f.motion_val[dir][mv_pos][1] / 2;

        umx = (chroma_mx + (3 << 24)) / 3 - (1 << 24);

        umy = (chroma_my + (3 << 24)) / 3 - (1 << 24);

        uvmx = chroma_coeffs[(chroma_mx + (3 << 24)) % 3];

        uvmy = chroma_coeffs[(chroma_my + (3 << 24)) % 3];

    }else{

        int cx, cy;

        mx = s->current_picture_ptr->f.motion_val[dir][mv_pos][0] >> 2;

        my = s->current_picture_ptr->f.motion_val[dir][mv_pos][1] >> 2;

        lx = s->current_picture_ptr->f.motion_val[dir][mv_pos][0] & 3;

        ly = s->current_picture_ptr->f.motion_val[dir][mv_pos][1] & 3;

        cx = s->current_picture_ptr->f.motion_val[dir][mv_pos][0] / 2;

        cy = s->current_picture_ptr->f.motion_val[dir][mv_pos][1] / 2;

        umx = cx >> 2;

        umy = cy >> 2;

        uvmx = (cx & 3) << 1;

        uvmy = (cy & 3) << 1;

        

        if(uvmx == 6 && uvmy == 6)

            uvmx = uvmy = 4;

    }

    dxy = ly*4 + lx;

    srcY = dir ? s->next_picture_ptr->f.data[0] : s->last_picture_ptr->f.data[0];

    srcU = dir ? s->next_picture_ptr->f.data[1] : s->last_picture_ptr->f.data[1];

    srcV = dir ? s->next_picture_ptr->f.data[2] : s->last_picture_ptr->f.data[2];

    src_x = s->mb_x * 16 + xoff + mx;

    src_y = s->mb_y * 16 + yoff + my;

    uvsrc_x = s->mb_x * 8 + (xoff >> 1) + umx;

    uvsrc_y = s->mb_y * 8 + (yoff >> 1) + umy;

    srcY += src_y * s->linesize + src_x;

    srcU += uvsrc_y * s->uvlinesize + uvsrc_x;

    srcV += uvsrc_y * s->uvlinesize + uvsrc_x;

    if(   (unsigned)(src_x - !!lx*2) > s->h_edge_pos - !!lx*2 - (width <<3) - 4

       || (unsigned)(src_y - !!ly*2) > s->v_edge_pos - !!ly*2 - (height<<3) - 4){

        uint8_t *uvbuf = s->edge_emu_buffer + 22 * s->linesize;



        srcY -= 2 + 2*s->linesize;

        s->dsp.emulated_edge_mc(s->edge_emu_buffer, srcY, s->linesize, (width<<3)+6, (height<<3)+6,

                            src_x - 2, src_y - 2, s->h_edge_pos, s->v_edge_pos);

        srcY = s->edge_emu_buffer + 2 + 2*s->linesize;

        s->dsp.emulated_edge_mc(uvbuf     , srcU, s->uvlinesize, (width<<2)+1, (height<<2)+1,

                            uvsrc_x, uvsrc_y, s->h_edge_pos >> 1, s->v_edge_pos >> 1);

        s->dsp.emulated_edge_mc(uvbuf + 16, srcV, s->uvlinesize, (width<<2)+1, (height<<2)+1,

                            uvsrc_x, uvsrc_y, s->h_edge_pos >> 1, s->v_edge_pos >> 1);

        srcU = uvbuf;

        srcV = uvbuf + 16;

    }

    if(!weighted){

        Y = s->dest[0] + xoff      + yoff     *s->linesize;

        U = s->dest[1] + (xoff>>1) + (yoff>>1)*s->uvlinesize;

        V = s->dest[2] + (xoff>>1) + (yoff>>1)*s->uvlinesize;

    }else{

        Y = r->tmp_b_block_y [dir]     +  xoff     +  yoff    *s->linesize;

        U = r->tmp_b_block_uv[dir*2]   + (xoff>>1) + (yoff>>1)*s->uvlinesize;

        V = r->tmp_b_block_uv[dir*2+1] + (xoff>>1) + (yoff>>1)*s->uvlinesize;

    }



    if(block_type == RV34_MB_P_16x8){

        qpel_mc[1][dxy](Y, srcY, s->linesize);

        Y    += 8;

        srcY += 8;

    }else if(block_type == RV34_MB_P_8x16){

        qpel_mc[1][dxy](Y, srcY, s->linesize);

        Y    += 8 * s->linesize;

        srcY += 8 * s->linesize;

    }

    is16x16 = (block_type != RV34_MB_P_8x8) && (block_type != RV34_MB_P_16x8) && (block_type != RV34_MB_P_8x16);

    qpel_mc[!is16x16][dxy](Y, srcY, s->linesize);

    chroma_mc[2-width]   (U, srcU, s->uvlinesize, height*4, uvmx, uvmy);

    chroma_mc[2-width]   (V, srcV, s->uvlinesize, height*4, uvmx, uvmy);

}

    if(   (unsigned)(src_x - !!lx*2) > s->h_edge_pos - !!lx*2 - (width <<3) - 4        || (unsigned)(src_y - !!ly*2) > s->v_edge_pos - !!ly*2 - (height<<3) - 4){
static inline void FUNC_0(RV34DecContext *VAR_0, const int VAR_1,

                          const int VAR_2, const int VAR_3, int VAR_4,

                          const int VAR_5, const int VAR_6, int VAR_7,

                          const int VAR_8, int VAR_9,

                          VAR_10 (*qpel_mc)[16],

                          VAR_11 (*VAR_12))

{

    MpegEncContext *s = &VAR_0->s;

    uint8_t *Y, *U, *V, *srcY, *srcU, *srcV;

    int VAR_13, VAR_14, VAR_15, VAR_16, VAR_17, VAR_18, VAR_19, VAR_20, VAR_21, VAR_22, VAR_23, VAR_24, VAR_25;

    int VAR_26 = s->mb_x * 2 + s->mb_y * 2 * s->b8_stride + VAR_4;

    int VAR_27 = 1;



    if(VAR_8){

        int VAR_28, VAR_29;

        VAR_14 = (s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][0] + (3 << 24)) / 3 - (1 << 24);

        VAR_15 = (s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][1] + (3 << 24)) / 3 - (1 << 24);

        VAR_18 = (s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][0] + (3 << 24)) % 3;

        VAR_19 = (s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][1] + (3 << 24)) % 3;

        VAR_28 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][0] / 2;

        VAR_29 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][1] / 2;

        VAR_16 = (VAR_28 + (3 << 24)) / 3 - (1 << 24);

        VAR_17 = (VAR_29 + (3 << 24)) / 3 - (1 << 24);

        VAR_20 = chroma_coeffs[(VAR_28 + (3 << 24)) % 3];

        VAR_21 = chroma_coeffs[(VAR_29 + (3 << 24)) % 3];

    }else{

        int VAR_30, VAR_31;

        VAR_14 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][0] >> 2;

        VAR_15 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][1] >> 2;

        VAR_18 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][0] & 3;

        VAR_19 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][1] & 3;

        VAR_30 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][0] / 2;

        VAR_31 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][1] / 2;

        VAR_16 = VAR_30 >> 2;

        VAR_17 = VAR_31 >> 2;

        VAR_20 = (VAR_30 & 3) << 1;

        VAR_21 = (VAR_31 & 3) << 1;

        

        if(VAR_20 == 6 && VAR_21 == 6)

            VAR_20 = VAR_21 = 4;

    }

    VAR_13 = VAR_19*4 + VAR_18;

    srcY = VAR_7 ? s->next_picture_ptr->f.data[0] : s->last_picture_ptr->f.data[0];

    srcU = VAR_7 ? s->next_picture_ptr->f.data[1] : s->last_picture_ptr->f.data[1];

    srcV = VAR_7 ? s->next_picture_ptr->f.data[2] : s->last_picture_ptr->f.data[2];

    VAR_22 = s->mb_x * 16 + VAR_2 + VAR_14;

    VAR_23 = s->mb_y * 16 + VAR_3 + VAR_15;

    VAR_24 = s->mb_x * 8 + (VAR_2 >> 1) + VAR_16;

    VAR_25 = s->mb_y * 8 + (VAR_3 >> 1) + VAR_17;

    srcY += VAR_23 * s->linesize + VAR_22;

    srcU += VAR_25 * s->uvlinesize + VAR_24;

    srcV += VAR_25 * s->uvlinesize + VAR_24;

    if(   (unsigned)(VAR_22 - !!VAR_18*2) > s->h_edge_pos - !!VAR_18*2 - (VAR_5 <<3) - 4

       || (unsigned)(VAR_23 - !!VAR_19*2) > s->v_edge_pos - !!VAR_19*2 - (VAR_6<<3) - 4){

        uint8_t *uvbuf = s->edge_emu_buffer + 22 * s->linesize;



        srcY -= 2 + 2*s->linesize;

        s->dsp.emulated_edge_mc(s->edge_emu_buffer, srcY, s->linesize, (VAR_5<<3)+6, (VAR_6<<3)+6,

                            VAR_22 - 2, VAR_23 - 2, s->h_edge_pos, s->v_edge_pos);

        srcY = s->edge_emu_buffer + 2 + 2*s->linesize;

        s->dsp.emulated_edge_mc(uvbuf     , srcU, s->uvlinesize, (VAR_5<<2)+1, (VAR_6<<2)+1,

                            VAR_24, VAR_25, s->h_edge_pos >> 1, s->v_edge_pos >> 1);

        s->dsp.emulated_edge_mc(uvbuf + 16, srcV, s->uvlinesize, (VAR_5<<2)+1, (VAR_6<<2)+1,

                            VAR_24, VAR_25, s->h_edge_pos >> 1, s->v_edge_pos >> 1);

        srcU = uvbuf;

        srcV = uvbuf + 16;

    }

    if(!VAR_9){

        Y = s->dest[0] + VAR_2      + VAR_3     *s->linesize;

        U = s->dest[1] + (VAR_2>>1) + (VAR_3>>1)*s->uvlinesize;

        V = s->dest[2] + (VAR_2>>1) + (VAR_3>>1)*s->uvlinesize;

    }else{

        Y = VAR_0->tmp_b_block_y [VAR_7]     +  VAR_2     +  VAR_3    *s->linesize;

        U = VAR_0->tmp_b_block_uv[VAR_7*2]   + (VAR_2>>1) + (VAR_3>>1)*s->uvlinesize;

        V = VAR_0->tmp_b_block_uv[VAR_7*2+1] + (VAR_2>>1) + (VAR_3>>1)*s->uvlinesize;

    }



    if(VAR_1 == RV34_MB_P_16x8){

        qpel_mc[1][VAR_13](Y, srcY, s->linesize);

        Y    += 8;

        srcY += 8;

    }else if(VAR_1 == RV34_MB_P_8x16){

        qpel_mc[1][VAR_13](Y, srcY, s->linesize);

        Y    += 8 * s->linesize;

        srcY += 8 * s->linesize;

    }

    VAR_27 = (VAR_1 != RV34_MB_P_8x8) && (VAR_1 != RV34_MB_P_16x8) && (VAR_1 != RV34_MB_P_8x16);

    qpel_mc[!VAR_27][VAR_13](Y, srcY, s->linesize);

    VAR_12[2-VAR_5]   (U, srcU, s->uvlinesize, VAR_6*4, VAR_20, VAR_21);

    VAR_12[2-VAR_5]   (V, srcV, s->uvlinesize, VAR_6*4, VAR_20, VAR_21);

}

static inline void FUNC_0(RV34DecContext *VAR_0, const int VAR_1,
const int VAR_2, const int VAR_3, int VAR_4,
const int VAR_5, const int VAR_6, int VAR_7,
const int VAR_8, int VAR_9,
VAR_10 (*qpel_mc)[16],
VAR_11 (*VAR_12))
{ MpegEncContext *s = &VAR_0->s; uint8_t *Y, *U, *V, *srcY, *srcU, *srcV; int VAR_13, VAR_14, VAR_15, VAR_16, VAR_17, VAR_18, VAR_19, VAR_20, VAR_21, VAR_22, VAR_23, VAR_24, VAR_25; int VAR_26 = s->mb_x * 2 + s->mb_y * 2 * s->b8_stride + VAR_4; int VAR_27 = 1; if(VAR_8){ int VAR_28, VAR_29; VAR_14 = (s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][0] + (3 << 24)) / 3 - (1 << 24); VAR_15 = (s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][1] + (3 << 24)) / 3 - (1 << 24); VAR_18 = (s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][0] + (3 << 24)) % 3; VAR_19 = (s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][1] + (3 << 24)) % 3; VAR_28 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][0] / 2; VAR_29 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][1] / 2; VAR_16 = (VAR_28 + (3 << 24)) / 3 - (1 << 24); VAR_17 = (VAR_29 + (3 << 24)) / 3 - (1 << 24); VAR_20 = chroma_coeffs[(VAR_28 + (3 << 24)) % 3]; VAR_21 = chroma_coeffs[(VAR_29 + (3 << 24)) % 3]; }else{ int VAR_30, VAR_31; VAR_14 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][0] >> 2; VAR_15 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][1] >> 2; VAR_18 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][0] & 3; VAR_19 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][1] & 3; VAR_30 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][0] / 2; VAR_31 = s->current_picture_ptr->f.motion_val[VAR_7][VAR_26][1] / 2; VAR_16 = VAR_30 >> 2; VAR_17 = VAR_31 >> 2; VAR_20 = (VAR_30 & 3) << 1; VAR_21 = (VAR_31 & 3) << 1; if(VAR_20 == 6 && VAR_21 == 6)
VAR_20 = VAR_21 = 4; } VAR_13 = VAR_19*4 + VAR_18; srcY = VAR_7 ? s->next_picture_ptr->f.data[0] : s->last_picture_ptr->f.data[0]; srcU = VAR_7 ? s->next_picture_ptr->f.data[1] : s->last_picture_ptr->f.data[1]; srcV = VAR_7 ? s->next_picture_ptr->f.data[2] : s->last_picture_ptr->f.data[2]; VAR_22 = s->mb_x * 16 + VAR_2 + VAR_14; VAR_23 = s->mb_y * 16 + VAR_3 + VAR_15; VAR_24 = s->mb_x * 8 + (VAR_2 >> 1) + VAR_16; VAR_25 = s->mb_y * 8 + (VAR_3 >> 1) + VAR_17; srcY += VAR_23 * s->linesize + VAR_22; srcU += VAR_25 * s->uvlinesize + VAR_24; srcV += VAR_25 * s->uvlinesize + VAR_24; if(   (unsigned)(VAR_22 - !!VAR_18*2) > s->h_edge_pos - !!VAR_18*2 - (VAR_5 <<3) - 4
|| (unsigned)(VAR_23 - !!VAR_19*2) > s->v_edge_pos - !!VAR_19*2 - (VAR_6<<3) - 4){ uint8_t *uvbuf = s->edge_emu_buffer + 22 * s->linesize; srcY -= 2 + 2*s->linesize; s->dsp.emulated_edge_mc(s->edge_emu_buffer, srcY, s->linesize, (VAR_5<<3)+6, (VAR_6<<3)+6,
VAR_22 - 2, VAR_23 - 2, s->h_edge_pos, s->v_edge_pos); srcY = s->edge_emu_buffer + 2 + 2*s->linesize; s->dsp.emulated_edge_mc(uvbuf     , srcU, s->uvlinesize, (VAR_5<<2)+1, (VAR_6<<2)+1,
VAR_24, VAR_25, s->h_edge_pos >> 1, s->v_edge_pos >> 1); s->dsp.emulated_edge_mc(uvbuf + 16, srcV, s->uvlinesize, (VAR_5<<2)+1, (VAR_6<<2)+1,
VAR_24, VAR_25, s->h_edge_pos >> 1, s->v_edge_pos >> 1); srcU = uvbuf; srcV = uvbuf + 16; } if(!VAR_9){ Y = s->dest[0] + VAR_2      + VAR_3     *s->linesize; U = s->dest[1] + (VAR_2>>1) + (VAR_3>>1)*s->uvlinesize; V = s->dest[2] + (VAR_2>>1) + (VAR_3>>1)*s->uvlinesize; }else{ Y = VAR_0->tmp_b_block_y [VAR_7]     +  VAR_2     +  VAR_3    *s->linesize; U = VAR_0->tmp_b_block_uv[VAR_7*2]   + (VAR_2>>1) + (VAR_3>>1)*s->uvlinesize; V = VAR_0->tmp_b_block_uv[VAR_7*2+1] + (VAR_2>>1) + (VAR_3>>1)*s->uvlinesize; } if(VAR_1 == RV34_MB_P_16x8){ qpel_mc[1][VAR_13](Y, srcY, s->linesize); Y    += 8; srcY += 8; }else if(VAR_1 == RV34_MB_P_8x16){ qpel_mc[1][VAR_13](Y, srcY, s->linesize); Y    += 8 * s->linesize; srcY += 8 * s->linesize; } VAR_27 = (VAR_1 != RV34_MB_P_8x8) && (VAR_1 != RV34_MB_P_16x8) && (VAR_1 != RV34_MB_P_8x16); qpel_mc[!VAR_27][VAR_13](Y, srcY, s->linesize); VAR_12[2-VAR_5]   (U, srcU, s->uvlinesize, VAR_6*4, VAR_20, VAR_21); VAR_12[2-VAR_5]   (V, srcV, s->uvlinesize, VAR_6*4, VAR_20, VAR_21); }