comparison aactab.c @ 10220:76132409af55 libavcodec

AAC: use new dsputil functions
author mru
date Tue, 22 Sep 2009 00:48:45 +0000
parents 69d79f51b8ce
children bcfe2acbf190
comparison
equal deleted inserted replaced
10219:87ae4a167138 10220:76132409af55
407 407
408 /* NOTE: 408 /* NOTE:
409 * 64.0f is a special value indicating the existence of an escape code in the 409 * 64.0f is a special value indicating the existence of an escape code in the
410 * bitstream. 410 * bitstream.
411 */ 411 */
412 static const float codebook_vector0[324] = { 412 static const DECLARE_ALIGNED_16(float, codebook_vector0[324]) = {
413 -1.0000000, -1.0000000, -1.0000000, -1.0000000, 413 -1.0000000, -1.0000000, -1.0000000, -1.0000000,
414 -1.0000000, -1.0000000, -1.0000000, 0.0000000, 414 -1.0000000, -1.0000000, -1.0000000, 0.0000000,
415 -1.0000000, -1.0000000, -1.0000000, 1.0000000, 415 -1.0000000, -1.0000000, -1.0000000, 1.0000000,
416 -1.0000000, -1.0000000, 0.0000000, -1.0000000, 416 -1.0000000, -1.0000000, 0.0000000, -1.0000000,
417 -1.0000000, -1.0000000, 0.0000000, 0.0000000, 417 -1.0000000, -1.0000000, 0.0000000, 0.0000000,
491 1.0000000, 1.0000000, 1.0000000, -1.0000000, 491 1.0000000, 1.0000000, 1.0000000, -1.0000000,
492 1.0000000, 1.0000000, 1.0000000, 0.0000000, 492 1.0000000, 1.0000000, 1.0000000, 0.0000000,
493 1.0000000, 1.0000000, 1.0000000, 1.0000000, 493 1.0000000, 1.0000000, 1.0000000, 1.0000000,
494 }; 494 };
495 495
496 static const float codebook_vector2[324] = { 496 static const DECLARE_ALIGNED_16(float, codebook_vector2[324]) = {
497 0.0000000, 0.0000000, 0.0000000, 0.0000000, 497 0.0000000, 0.0000000, 0.0000000, 0.0000000,
498 0.0000000, 0.0000000, 0.0000000, 1.0000000, 498 0.0000000, 0.0000000, 0.0000000, 1.0000000,
499 0.0000000, 0.0000000, 0.0000000, 2.5198421, 499 0.0000000, 0.0000000, 0.0000000, 2.5198421,
500 0.0000000, 0.0000000, 1.0000000, 0.0000000, 500 0.0000000, 0.0000000, 1.0000000, 0.0000000,
501 0.0000000, 0.0000000, 1.0000000, 1.0000000, 501 0.0000000, 0.0000000, 1.0000000, 1.0000000,
575 2.5198421, 2.5198421, 2.5198421, 0.0000000, 575 2.5198421, 2.5198421, 2.5198421, 0.0000000,
576 2.5198421, 2.5198421, 2.5198421, 1.0000000, 576 2.5198421, 2.5198421, 2.5198421, 1.0000000,
577 2.5198421, 2.5198421, 2.5198421, 2.5198421, 577 2.5198421, 2.5198421, 2.5198421, 2.5198421,
578 }; 578 };
579 579
580 static const float codebook_vector4[162] = { 580 static const DECLARE_ALIGNED_16(float, codebook_vector4[162]) = {
581 -6.3496042, -6.3496042, -6.3496042, -4.3267487, 581 -6.3496042, -6.3496042, -6.3496042, -4.3267487,
582 -6.3496042, -2.5198421, -6.3496042, -1.0000000, 582 -6.3496042, -2.5198421, -6.3496042, -1.0000000,
583 -6.3496042, 0.0000000, -6.3496042, 1.0000000, 583 -6.3496042, 0.0000000, -6.3496042, 1.0000000,
584 -6.3496042, 2.5198421, -6.3496042, 4.3267487, 584 -6.3496042, 2.5198421, -6.3496042, 4.3267487,
585 -6.3496042, 6.3496042, -4.3267487, -6.3496042, 585 -6.3496042, 6.3496042, -4.3267487, -6.3496042,
619 6.3496042, 0.0000000, 6.3496042, 1.0000000, 619 6.3496042, 0.0000000, 6.3496042, 1.0000000,
620 6.3496042, 2.5198421, 6.3496042, 4.3267487, 620 6.3496042, 2.5198421, 6.3496042, 4.3267487,
621 6.3496042, 6.3496042, 621 6.3496042, 6.3496042,
622 }; 622 };
623 623
624 static const float codebook_vector6[128] = { 624 static const DECLARE_ALIGNED_16(float, codebook_vector6[128]) = {
625 0.0000000, 0.0000000, 0.0000000, 1.0000000, 625 0.0000000, 0.0000000, 0.0000000, 1.0000000,
626 0.0000000, 2.5198421, 0.0000000, 4.3267487, 626 0.0000000, 2.5198421, 0.0000000, 4.3267487,
627 0.0000000, 6.3496042, 0.0000000, 8.5498797, 627 0.0000000, 6.3496042, 0.0000000, 8.5498797,
628 0.0000000, 10.9027236, 0.0000000, 13.3905183, 628 0.0000000, 10.9027236, 0.0000000, 13.3905183,
629 1.0000000, 0.0000000, 1.0000000, 1.0000000, 629 1.0000000, 0.0000000, 1.0000000, 1.0000000,
654 13.3905183, 2.5198421, 13.3905183, 4.3267487, 654 13.3905183, 2.5198421, 13.3905183, 4.3267487,
655 13.3905183, 6.3496042, 13.3905183, 8.5498797, 655 13.3905183, 6.3496042, 13.3905183, 8.5498797,
656 13.3905183, 10.9027236, 13.3905183, 13.3905183, 656 13.3905183, 10.9027236, 13.3905183, 13.3905183,
657 }; 657 };
658 658
659 static const float codebook_vector8[338] = { 659 static const DECLARE_ALIGNED_16(float, codebook_vector8[338]) = {
660 0.0000000, 0.0000000, 0.0000000, 1.0000000, 660 0.0000000, 0.0000000, 0.0000000, 1.0000000,
661 0.0000000, 2.5198421, 0.0000000, 4.3267487, 661 0.0000000, 2.5198421, 0.0000000, 4.3267487,
662 0.0000000, 6.3496042, 0.0000000, 8.5498797, 662 0.0000000, 6.3496042, 0.0000000, 8.5498797,
663 0.0000000, 10.9027236, 0.0000000, 13.3905183, 663 0.0000000, 10.9027236, 0.0000000, 13.3905183,
664 0.0000000, 16.0000000, 0.0000000, 18.7207544, 664 0.0000000, 16.0000000, 0.0000000, 18.7207544,
742 27.4731418, 16.0000000, 27.4731418, 18.7207544, 742 27.4731418, 16.0000000, 27.4731418, 18.7207544,
743 27.4731418, 21.5443469, 27.4731418, 24.4637810, 743 27.4731418, 21.5443469, 27.4731418, 24.4637810,
744 27.4731418, 27.4731418, 744 27.4731418, 27.4731418,
745 }; 745 };
746 746
747 static const float codebook_vector10[578] = { 747 static const DECLARE_ALIGNED_16(float, codebook_vector10[578]) = {
748 0.0000000, 0.0000000, 0.0000000, 1.0000000, 748 0.0000000, 0.0000000, 0.0000000, 1.0000000,
749 0.0000000, 2.5198421, 0.0000000, 4.3267487, 749 0.0000000, 2.5198421, 0.0000000, 4.3267487,
750 0.0000000, 6.3496042, 0.0000000, 8.5498797, 750 0.0000000, 6.3496042, 0.0000000, 8.5498797,
751 0.0000000, 10.9027236, 0.0000000, 13.3905183, 751 0.0000000, 10.9027236, 0.0000000, 13.3905183,
752 0.0000000, 16.0000000, 0.0000000, 18.7207544, 752 0.0000000, 16.0000000, 0.0000000, 18.7207544,