Revision e39e3aba libavcodec/h264idct.c

View differences:

libavcodec/h264idct.c
250 250
        output[stride* 4+offset]= ((((z1 - z2)*qmul + 128 ) >> 8));
251 251
        output[stride* 5+offset]= ((((z0 - z3)*qmul + 128 ) >> 8));
252 252
    }
253
#undef stride
254
}
255

  
256
void ff_h264_chroma_dc_dequant_idct_c(DCTELEM *block, int qmul){
257
    const int stride= 16*2;
258
    const int xStride= 16;
259
    int a,b,c,d,e;
260

  
261
    a= block[stride*0 + xStride*0];
262
    b= block[stride*0 + xStride*1];
263
    c= block[stride*1 + xStride*0];
264
    d= block[stride*1 + xStride*1];
265

  
266
    e= a-b;
267
    a= a+b;
268
    b= c-d;
269
    c= c+d;
270

  
271
    block[stride*0 + xStride*0]= ((a+c)*qmul) >> 7;
272
    block[stride*0 + xStride*1]= ((e+b)*qmul) >> 7;
273
    block[stride*1 + xStride*0]= ((a-c)*qmul) >> 7;
274
    block[stride*1 + xStride*1]= ((e-b)*qmul) >> 7;
253 275
}

Also available in: Unified diff