static int rv34_set_deblock_coef(RV34DecContext *r)

{

    MpegEncContext *s = &r->s;

    int mvmask = 0, i, j;

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

    int16_t (*motion_val)[2] = s->current_picture_ptr->motion_val[0][midx];

    if(s->pict_type == FF_I_TYPE)

        return 0;

    for(j = 0; j < 16; j += 8){

        for(i = 0; i < 2; i++){

            if(is_mv_diff_gt_3(motion_val + i, 1))

                mvmask |= 0x11 << (j + i*2);

            if(is_mv_diff_gt_3(motion_val + i, s->b8_stride))

                mvmask |= 0x03 << (j + i*2);

        }

        motion_val += s->b8_stride;

    }

    return mvmask;

}

static int rv34_set_deblock_coef(RV34DecContext *r)

{

    MpegEncContext *s = &r->s;

    int mvmask = 0, i, j;

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

    int16_t (*motion_val)[2] = s->current_picture_ptr->motion_val[0][midx];

    if(s->pict_type == FF_I_TYPE)

        return 0;

    for(j = 0; j < 16; j += 8){

        for(i = 0; i < 2; i++){

            if(is_mv_diff_gt_3(motion_val + i, 1))

                mvmask |= 0x11 << (j + i*2);

            if(is_mv_diff_gt_3(motion_val + i, s->b8_stride))

                mvmask |= 0x03 << (j + i*2);

        }

        motion_val += s->b8_stride;

    }

    return mvmask;

}

static int FUNC_0(RV34DecContext *VAR_0)

{

    MpegEncContext *s = &VAR_0->s;

    int VAR_1 = 0, VAR_2, VAR_3;

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

    int16_t (*motion_val)[2] = s->current_picture_ptr->motion_val[0][VAR_4];

    if(s->pict_type == FF_I_TYPE)

        return 0;

    for(VAR_3 = 0; VAR_3 < 16; VAR_3 += 8){

        for(VAR_2 = 0; VAR_2 < 2; VAR_2++){

            if(is_mv_diff_gt_3(motion_val + VAR_2, 1))

                VAR_1 |= 0x11 << (VAR_3 + VAR_2*2);

            if(is_mv_diff_gt_3(motion_val + VAR_2, s->b8_stride))

                VAR_1 |= 0x03 << (VAR_3 + VAR_2*2);

        }

        motion_val += s->b8_stride;

    }

    return VAR_1;

}

static int FUNC_0(RV34DecContext *VAR_0)
{ MpegEncContext *s = &VAR_0->s; int VAR_1 = 0, VAR_2, VAR_3; int VAR_4 = s->mb_x * 2 + s->mb_y * 2 * s->b8_stride; int16_t (*motion_val)[2] = s->current_picture_ptr->motion_val[0][VAR_4]; if(s->pict_type == FF_I_TYPE)
return 0; for(VAR_3 = 0; VAR_3 < 16; VAR_3 += 8){ for(VAR_2 = 0; VAR_2 < 2; VAR_2++){ if(is_mv_diff_gt_3(motion_val + VAR_2, 1))
VAR_1 |= 0x11 << (VAR_3 + VAR_2*2); if(is_mv_diff_gt_3(motion_val + VAR_2, s->b8_stride))
VAR_1 |= 0x03 << (VAR_3 + VAR_2*2); } motion_val += s->b8_stride; } return VAR_1; }