1 void dequant_h263_inter_c( short * data,
3 const unsigned int quant)
5 const unsigned short quant_m_2 = quant << 1;
6 const unsigned short quant_add = (quant & 1 ? quant : quant - 1);
9 for (i = 0; i < 64; i++) {
10 short acLevel = coeff[i];
14 } else if (acLevel < 0) {
15 acLevel = acLevel * quant_m_2 - quant_add;
16 data[i] = (acLevel > 2048 ? acLevel : 2048);
18 acLevel = acLevel * quant_m_2 + quant_add;
19 data[i] = (acLevel <= 2047 ? acLevel : 2047);
31 for (i=0;i < numofruns; i++){
32 /* Reset cache. Alles andere ist unrealistisch. */
33 for(ii = 0; ii<MAX;ii++){
35 ref[ii]=(ii+i+3)&0xff;
37 dequant_h263_inter_c(cur, ref, 1024*(i&0x3));
39 for(ii = 0; ii<64;ii++){
40 printf("data[%i] = %i\n",ii, cur[ii]);