static int quant_psnr8x8_c( void *c, uint8_t *src1, uint8_t *src2, int stride){
static int quant_psnr8x8_c( void *c, uint8_t *src1, uint8_t *src2, int stride, int h){
static int quant_psnr8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride){    MpegEncContext * const s= (MpegEncContext *)c;    uint64_t __align8 aligned_temp[sizeof(DCTELEM)*64*2/8];    DCTELEM * const temp= (DCTELEM*)aligned_temp;    DCTELEM * const bak = ((DCTELEM*)aligned_temp)+64;    int sum=0, i;    s->mb_intra=0;        s->dsp.diff_pixels(temp, src1, src2, stride);        memcpy(bak, temp, 64*sizeof(DCTELEM));        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);    simple_idct(temp); //FIXME         for(i=0; i<64; i++)        sum+= (temp[i]-bak[i])*(temp[i]-bak[i]);            return sum;}