3 void dequant_h263_inter_c( short * data,
5 const unsigned int quant)
7 const unsigned short quant_m_2 = quant << 1;
8 const unsigned short quant_add = (quant & 1 ? quant : quant - 1);
11 for (i = 0; i < 64; i++) {
12 short acLevel = coeff[i];
16 } else if (acLevel < 0) {
17 acLevel = acLevel * quant_m_2 - quant_add;
18 data[i] = (acLevel > 2048 ? acLevel : 2048);
20 acLevel = acLevel * quant_m_2 + quant_add;
21 data[i] = (acLevel <= 2047 ? acLevel : 2047);
33 for (i=0;i < numofruns; i++){
34 /* Reset cache. Alles andere ist unrealistisch. */
35 for(ii = 0; ii<MAX;ii++){
37 ref[ii]=(ii+i+3)&0xff;
39 dequant_h263_inter_c(cur, ref, 1024*(i&0x3));
41 for(ii = 0; ii<64;ii++){
42 printf("data[%i] = %i\n",ii, cur[ii]);