comparison vc1.c @ 8955:e03f0d4f9e3d libavcodec

cosmetics: 'void/int inline' --> 'inline void/int' to avoid warnings of the type "'inline' is not at beginning of declaration" with -Wextra.
author diego
date Tue, 17 Feb 2009 12:11:46 +0000
parents e9d9d946f213
children 90c99bda19f5
comparison
equal deleted inserted replaced
8954:409d20e15da8 8955:e03f0d4f9e3d
316 * @param stride block stride 316 * @param stride block stride
317 * @param pq block quantizer 317 * @param pq block quantizer
318 * @return whether other 3 pairs should be filtered or not 318 * @return whether other 3 pairs should be filtered or not
319 * @see 8.6 319 * @see 8.6
320 */ 320 */
321 static int av_always_inline vc1_filter_line(uint8_t* src, int stride, int pq){ 321 static av_always_inline int vc1_filter_line(uint8_t* src, int stride, int pq){
322 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; 322 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
323 323
324 int a0 = (2*(src[-2*stride] - src[ 1*stride]) - 5*(src[-1*stride] - src[ 0*stride]) + 4) >> 3; 324 int a0 = (2*(src[-2*stride] - src[ 1*stride]) - 5*(src[-1*stride] - src[ 0*stride]) + 4) >> 3;
325 int a0_sign = a0 >> 31; /* Store sign */ 325 int a0_sign = a0 >> 31; /* Store sign */
326 a0 = (a0 ^ a0_sign) - a0_sign; /* a0 = FFABS(a0); */ 326 a0 = (a0 ^ a0_sign) - a0_sign; /* a0 = FFABS(a0); */