Mercurial > libavcodec.hg
comparison simple_idct.c @ 6001:f4859c13426b libavcodec
add ff_ prefix to all simple_idct symbols
author | aurel |
---|---|
date | Sat, 08 Dec 2007 21:21:11 +0000 |
parents | eb2b4b1da4cd |
children | 3c37faa04193 |
comparison
equal
deleted
inserted
replaced
6000:791240825ac4 | 6001:f4859c13426b |
---|---|
385 col[40] = ((a2 - b2) >> COL_SHIFT); | 385 col[40] = ((a2 - b2) >> COL_SHIFT); |
386 col[48] = ((a1 - b1) >> COL_SHIFT); | 386 col[48] = ((a1 - b1) >> COL_SHIFT); |
387 col[56] = ((a0 - b0) >> COL_SHIFT); | 387 col[56] = ((a0 - b0) >> COL_SHIFT); |
388 } | 388 } |
389 | 389 |
390 void simple_idct_put(uint8_t *dest, int line_size, DCTELEM *block) | 390 void ff_simple_idct_put(uint8_t *dest, int line_size, DCTELEM *block) |
391 { | 391 { |
392 int i; | 392 int i; |
393 for(i=0; i<8; i++) | 393 for(i=0; i<8; i++) |
394 idctRowCondDC(block + i*8); | 394 idctRowCondDC(block + i*8); |
395 | 395 |
396 for(i=0; i<8; i++) | 396 for(i=0; i<8; i++) |
397 idctSparseColPut(dest + i, line_size, block + i); | 397 idctSparseColPut(dest + i, line_size, block + i); |
398 } | 398 } |
399 | 399 |
400 void simple_idct_add(uint8_t *dest, int line_size, DCTELEM *block) | 400 void ff_simple_idct_add(uint8_t *dest, int line_size, DCTELEM *block) |
401 { | 401 { |
402 int i; | 402 int i; |
403 for(i=0; i<8; i++) | 403 for(i=0; i<8; i++) |
404 idctRowCondDC(block + i*8); | 404 idctRowCondDC(block + i*8); |
405 | 405 |
406 for(i=0; i<8; i++) | 406 for(i=0; i<8; i++) |
407 idctSparseColAdd(dest + i, line_size, block + i); | 407 idctSparseColAdd(dest + i, line_size, block + i); |
408 } | 408 } |
409 | 409 |
410 void simple_idct(DCTELEM *block) | 410 void ff_simple_idct(DCTELEM *block) |
411 { | 411 { |
412 int i; | 412 int i; |
413 for(i=0; i<8; i++) | 413 for(i=0; i<8; i++) |
414 idctRowCondDC(block + i*8); | 414 idctRowCondDC(block + i*8); |
415 | 415 |
463 to the pixels before clamping to avoid systematic error | 463 to the pixels before clamping to avoid systematic error |
464 (1024*sqrt(2)) offset would be needed otherwise. */ | 464 (1024*sqrt(2)) offset would be needed otherwise. */ |
465 /* XXX: I think a 1.0/sqrt(2) normalization should be needed to | 465 /* XXX: I think a 1.0/sqrt(2) normalization should be needed to |
466 compensate the extra butterfly stage - I don't have the full DV | 466 compensate the extra butterfly stage - I don't have the full DV |
467 specification */ | 467 specification */ |
468 void simple_idct248_put(uint8_t *dest, int line_size, DCTELEM *block) | 468 void ff_simple_idct248_put(uint8_t *dest, int line_size, DCTELEM *block) |
469 { | 469 { |
470 int i; | 470 int i; |
471 DCTELEM *ptr; | 471 DCTELEM *ptr; |
472 | 472 |
473 /* butterfly */ | 473 /* butterfly */ |
553 row[1]= (c2 + c3) >> R_SHIFT; | 553 row[1]= (c2 + c3) >> R_SHIFT; |
554 row[2]= (c2 - c3) >> R_SHIFT; | 554 row[2]= (c2 - c3) >> R_SHIFT; |
555 row[3]= (c0 - c1) >> R_SHIFT; | 555 row[3]= (c0 - c1) >> R_SHIFT; |
556 } | 556 } |
557 | 557 |
558 void simple_idct84_add(uint8_t *dest, int line_size, DCTELEM *block) | 558 void ff_simple_idct84_add(uint8_t *dest, int line_size, DCTELEM *block) |
559 { | 559 { |
560 int i; | 560 int i; |
561 | 561 |
562 /* IDCT8 on each line */ | 562 /* IDCT8 on each line */ |
563 for(i=0; i<4; i++) { | 563 for(i=0; i<4; i++) { |
568 for(i=0;i<8;i++) { | 568 for(i=0;i<8;i++) { |
569 idct4col_add(dest + i, line_size, block + i); | 569 idct4col_add(dest + i, line_size, block + i); |
570 } | 570 } |
571 } | 571 } |
572 | 572 |
573 void simple_idct48_add(uint8_t *dest, int line_size, DCTELEM *block) | 573 void ff_simple_idct48_add(uint8_t *dest, int line_size, DCTELEM *block) |
574 { | 574 { |
575 int i; | 575 int i; |
576 | 576 |
577 /* IDCT4 on each line */ | 577 /* IDCT4 on each line */ |
578 for(i=0; i<8; i++) { | 578 for(i=0; i<8; i++) { |