Mercurial > libavcodec.hg
comparison simple_idct.c @ 5978:eb2b4b1da4cd libavcodec
Rename function to reflect its action
author | kostya |
---|---|
date | Mon, 03 Dec 2007 06:59:48 +0000 |
parents | 3d2b2a2a664e |
children | f4859c13426b |
comparison
equal
deleted
inserted
replaced
5977:853d1ea80942 | 5978:eb2b4b1da4cd |
---|---|
426 | 426 |
427 /* row idct is multiple by 16 * sqrt(2.0), col idct4 is normalized, | 427 /* row idct is multiple by 16 * sqrt(2.0), col idct4 is normalized, |
428 and the butterfly must be multiplied by 0.5 * sqrt(2.0) */ | 428 and the butterfly must be multiplied by 0.5 * sqrt(2.0) */ |
429 #define C_SHIFT (4+1+12) | 429 #define C_SHIFT (4+1+12) |
430 | 430 |
431 static inline void idct4col(uint8_t *dest, int line_size, const DCTELEM *col) | 431 static inline void idct4col_put(uint8_t *dest, int line_size, const DCTELEM *col) |
432 { | 432 { |
433 int c0, c1, c2, c3, a0, a1, a2, a3; | 433 int c0, c1, c2, c3, a0, a1, a2, a3; |
434 const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; | 434 const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; |
435 | 435 |
436 a0 = col[8*0]; | 436 a0 = col[8*0]; |
489 idctRowCondDC(block + i*8); | 489 idctRowCondDC(block + i*8); |
490 } | 490 } |
491 | 491 |
492 /* IDCT4 and store */ | 492 /* IDCT4 and store */ |
493 for(i=0;i<8;i++) { | 493 for(i=0;i<8;i++) { |
494 idct4col(dest + i, 2 * line_size, block + i); | 494 idct4col_put(dest + i, 2 * line_size, block + i); |
495 idct4col(dest + line_size + i, 2 * line_size, block + 8 + i); | 495 idct4col_put(dest + line_size + i, 2 * line_size, block + 8 + i); |
496 } | 496 } |
497 } | 497 } |
498 | 498 |
499 /* 8x4 & 4x8 WMV2 IDCT */ | 499 /* 8x4 & 4x8 WMV2 IDCT */ |
500 #undef CN_SHIFT | 500 #undef CN_SHIFT |