static int quant_psnr8x8_c(MpegEncContext *s, uint8_t *src1,

                           uint8_t *src2, ptrdiff_t stride, int h)

{

    LOCAL_ALIGNED_16(int16_t, temp, [64 * 2]);

    int16_t *const bak = temp + 64;

    int sum = 0, i;



    av_assert2(h == 8);

    s->mb_intra = 0;



    s->pdsp.diff_pixels(temp, src1, src2, stride);



    memcpy(bak, temp, 64 * sizeof(int16_t));



    s->block_last_index[0 /* FIXME */] =

        s->fast_dct_quantize(s, temp, 0 /* FIXME */, s->qscale, &i);

    s->dct_unquantize_inter(s, temp, 0, s->qscale);

    ff_simple_idct_8(temp); // FIXME



    for (i = 0; i < 64; i++)

        sum += (temp[i] - bak[i]) * (temp[i] - bak[i]);



    return sum;

}

static int quant_psnr8x8_c(MpegEncContext *s, uint8_t *src1,

                           uint8_t *src2, ptrdiff_t stride, int h)

{

    LOCAL_ALIGNED_16(int16_t, temp, [64 * 2]);

    int16_t *const bak = temp + 64;

    int sum = 0, i;



    av_assert2(h == 8);

    s->mb_intra = 0;



    s->pdsp.diff_pixels(temp, src1, src2, stride);



    memcpy(bak, temp, 64 * sizeof(int16_t));



    s->block_last_index[0 ] =

        s->fast_dct_quantize(s, temp, 0 , s->qscale, &i);

    s->dct_unquantize_inter(s, temp, 0, s->qscale);

    ff_simple_idct_8(temp); 



    for (i = 0; i < 64; i++)

        sum += (temp[i] - bak[i]) * (temp[i] - bak[i]);



    return sum;

}

    s->pdsp.diff_pixels(temp, src1, src2, stride);     s->pdsp.diff_pixels(temp, src1, src2, stride);     s->pdsp.diff_pixels(temp, src1, src2, stride);     s->pdsp.diff_pixels(temp, src1, src2, stride);
static int FUNC_0(MpegEncContext *VAR_0, uint8_t *VAR_1,

                           uint8_t *VAR_2, ptrdiff_t VAR_3, int VAR_4)

{

    LOCAL_ALIGNED_16(int16_t, temp, [64 * 2]);

    int16_t *const bak = temp + 64;

    int VAR_5 = 0, VAR_6;



    av_assert2(VAR_4 == 8);

    VAR_0->mb_intra = 0;



    VAR_0->pdsp.diff_pixels(temp, VAR_1, VAR_2, VAR_3);



    memcpy(bak, temp, 64 * sizeof(int16_t));



    VAR_0->block_last_index[0 ] =

        VAR_0->fast_dct_quantize(VAR_0, temp, 0 , VAR_0->qscale, &VAR_6);

    VAR_0->dct_unquantize_inter(VAR_0, temp, 0, VAR_0->qscale);

    ff_simple_idct_8(temp); 



    for (VAR_6 = 0; VAR_6 < 64; VAR_6++)

        VAR_5 += (temp[VAR_6] - bak[VAR_6]) * (temp[VAR_6] - bak[VAR_6]);



    return VAR_5;

}

static int FUNC_0(MpegEncContext *VAR_0, uint8_t *VAR_1,
uint8_t *VAR_2, ptrdiff_t VAR_3, int VAR_4)
{ LOCAL_ALIGNED_16(int16_t, temp, [64 * 2]); int16_t *const bak = temp + 64; int VAR_5 = 0, VAR_6; av_assert2(VAR_4 == 8); VAR_0->mb_intra = 0; VAR_0->pdsp.diff_pixels(temp, VAR_1, VAR_2, VAR_3); memcpy(bak, temp, 64 * sizeof(int16_t)); VAR_0->block_last_index[0 ] =
VAR_0->fast_dct_quantize(VAR_0, temp, 0 , VAR_0->qscale, &VAR_6); VAR_0->dct_unquantize_inter(VAR_0, temp, 0, VAR_0->qscale); ff_simple_idct_8(temp); for (VAR_6 = 0; VAR_6 < 64; VAR_6++) VAR_5 += (temp[VAR_6] - bak[VAR_6]) * (temp[VAR_6] - bak[VAR_6]); return VAR_5; }