70 void upzero (
int dlt,
int *dlti,
int *bli);
88 12, -44, -44, 212, 48, -624, 128, 1448,
89 -840, -3220, 3804, 15504, 15504, 3804, -3220, -840,
90 1448, 128, -624, 48, 212, -44, -44, 12
108 0, -20456, -12896, -8968, -6288, -4240, -2584, -1200,
109 20456, 12896, 8968, 6288, 4240, 2584, 1200, 0
114 -136, -136, -136, -136, -24808, -21904, -19008, -16704,
115 -14984, -13512, -12280, -11192, -10232, -9360, -8576, -7856,
116 -7192, -6576, -6000, -5456, -4944, -4464, -4008, -3576,
117 -3168, -2776, -2400, -2032, -1688, -1360, -1040, -728,
118 24808, 21904, 19008, 16704, 14984, 13512, 12280, 11192,
119 10232, 9360, 8576, 7856, 7192, 6576, 6000, 5456,
120 4944, 4464, 4008, 3576, 3168, 2776, 2400, 2032,
121 1688, 1360, 1040, 728, 432, 136, -432, -136
129 -60, 3042, 1198, 538, 334, 172, 58, -30,
130 3042, 1198, 538, 334, 172, 58, -30, -60
134 2048, 2093, 2139, 2186, 2233, 2282, 2332, 2383,
135 2435, 2489, 2543, 2599, 2656, 2714, 2774, 2834,
136 2896, 2960, 3025, 3091, 3158, 3228, 3298, 3371,
137 3444, 3520, 3597, 3676, 3756, 3838, 3922, 4008
148 280, 576, 880, 1200, 1520, 1864, 2208, 2584,
149 2960, 3376, 3784, 4240, 4696, 5200, 5712, 6288,
150 6864, 7520, 8184, 8968, 9752, 10712, 11664, 12896,
151 14120, 15840, 17560, 20456, 23352, 32767
159 61, 60, 59, 58, 57, 56, 55, 54,
160 53, 52, 51, 50, 49, 48, 47, 46,
161 45, 44, 43, 42, 41, 40, 39, 38,
162 37, 36, 35, 34, 33, 32, 32
168 63, 62, 31, 30, 29, 28, 27, 26,
169 25, 24, 23, 22, 21, 20, 19, 18,
170 17, 16, 15, 14, 13, 12, 11, 10,
180 -7408, -1616, 7408, 1616
252 int *tqmf_ptr, *tqmf_ptr1;
259 xa = (long) (*tqmf_ptr++) * (*h_ptr++);
260 xb = (long) (*tqmf_ptr++) * (*h_ptr++);
262 for (i = 0; i < 10; i++)
264 xa += (long) (*tqmf_ptr++) * (*h_ptr++);
265 xb += (long) (*tqmf_ptr++) * (*h_ptr++);
268 xa += (long) (*tqmf_ptr++) * (*h_ptr++);
269 xb += (long) (*tqmf_ptr) * (*h_ptr++);
272 tqmf_ptr1 = tqmf_ptr - 2;
273 for (i = 0; i < 22; i++)
274 *tqmf_ptr-- = *tqmf_ptr1--;
279 xl = (xa + xb) >> 15;
280 xh = (xa - xb) >> 15;
357 decis = (564
L * (long)
deth) >> 12
L;
358 if (
abs (
eh) > decis)
395 return (
il | (ih << 6));
406 int *ac_ptr, *ac_ptr1, *ad_ptr, *ad_ptr1;
509 xa1 = (long)
xd *(*h_ptr++);
510 xa2 = (long)
xs *(*h_ptr++);
512 for (i = 0; i < 10; i++)
514 xa1 += (long) (*ac_ptr++) * (*h_ptr++);
515 xa2 += (long) (*ad_ptr++) * (*h_ptr++);
518 xa1 += (long) (*ac_ptr) * (*h_ptr++);
519 xa2 += (long) (*ad_ptr) * (*h_ptr++);
526 ac_ptr1 = ac_ptr - 1;
527 ad_ptr1 = ad_ptr - 1;
528 for (i = 0; i < 10; i++)
530 *ac_ptr-- = *ac_ptr1--;
531 *ad_ptr-- = *ad_ptr1--;
551 for (i = 0; i < 6; i++)
559 for (i = 0; i < 6; i++)
567 for (i = 0; i < 24; i++)
570 for (i = 0; i < 11; i++)
585 zl = (long) (*bpl++) * (*dlt++);
586 for (i = 1; i < 6; i++)
587 zl += (
long) (*bpl++) * (*dlt++);
589 return ((
int) (zl >> 14));
602 pl += (long) al2 *pl2;
603 return ((
int) (pl >> 15));
616 for (mil = 0; mil < 30; mil++)
637 wd = ((long) nbl * 127
L) >> 7
L;
652 wd1 = (nbl >> 6) & 31;
654 wd3 =
ilb_table[wd1] >> (shift_constant + 1 - wd2);
668 for (i = 0; i < 6; i++)
670 bli[i] = (int) ((255
L * bli[i]) >> 8
L);
675 for (i = 0; i < 6; i++)
677 if ((
long) dlt * dlti[i] >= 0)
681 wd3 = (int) ((255
L * bli[i]) >> 8
L);
702 wd2 = 4
L * (long) al1;
703 if ((
long) plt * plt1 >= 0
L)
706 if ((
long) plt * plt2 >= 0
L)
714 apl2 = wd4 + (127
L * (long) al2 >> 7
L);
732 wd2 = ((long) al1 * 255
L) >> 8
L;
733 if ((
long) plt * plt1 >= 0
L)
735 apl1 = (int) wd2 + 192;
739 apl1 = (int) wd2 - 192;
757 wd = ((long) nbh * 127
L) >> 7
L;
779 0x44, 0x44, 0x44, 0x44, 0x44,
780 0x44, 0x44, 0x44, 0x44, 0x44,
781 0x44, 0x44, 0x44, 0x44, 0x44,
782 0x44, 0x44, 0x43, 0x43, 0x43,
783 0x43, 0x43, 0x43, 0x43, 0x42,
784 0x42, 0x42, 0x42, 0x42, 0x42,
785 0x41, 0x41, 0x41, 0x41, 0x41,
786 0x40, 0x40, 0x40, 0x40, 0x40,
787 0x40, 0x40, 0x40, 0x3f, 0x3f,
788 0x3f, 0x3f, 0x3f, 0x3e, 0x3e,
789 0x3e, 0x3e, 0x3e, 0x3e, 0x3d,
790 0x3d, 0x3d, 0x3d, 0x3d, 0x3d,
791 0x3c, 0x3c, 0x3c, 0x3c, 0x3c,
792 0x3c, 0x3c, 0x3c, 0x3c, 0x3b,
793 0x3b, 0x3b, 0x3b, 0x3b, 0x3b,
794 0x3b, 0x3b, 0x3b, 0x3b, 0x3b,
795 0x3b, 0x3b, 0x3b, 0x3b, 0x3b,
796 0x3b, 0x3b, 0x3b, 0x3b, 0x3b,
797 0x3b, 0x3b, 0x3c, 0x3c, 0x3c,
798 0x3c, 0x3c, 0x3c, 0x3c, 0x3c
802 0xfd, 0xde, 0x77, 0xba, 0xf2,
803 0x90, 0x20, 0xa0, 0xec, 0xed,
804 0xef, 0xf1, 0xf3, 0xf4, 0xf5,
805 0xf5, 0xf5, 0xf5, 0xf6, 0xf6,
806 0xf6, 0xf7, 0xf8, 0xf7, 0xf8,
807 0xf7, 0xf9, 0xf8, 0xf7, 0xf9,
808 0xf8, 0xf8, 0xf6, 0xf8, 0xf8,
809 0xf7, 0xf9, 0xf9, 0xf9, 0xf8,
810 0xf7, 0xfa, 0xf8, 0xf8, 0xf7,
811 0xfb, 0xfa, 0xf9, 0xf8, 0xf8
814 0, 0xffffffff, 0xffffffff, 0, 0,
815 0xffffffff, 0, 0, 0xffffffff, 0xffffffff,
817 0xfffffffe, 0xffffffff, 0xfffffffe, 0, 0xfffffffc,
818 0x1, 0x1, 0x1, 0xfffffffb, 0x2,
819 0x2, 0x3, 0xb, 0x14, 0x14,
820 0x16, 0x18, 0x20, 0x21, 0x26,
821 0x27, 0x2e, 0x2f, 0x33, 0x32,
822 0x35, 0x33, 0x36, 0x34, 0x37,
823 0x34, 0x37, 0x35, 0x38, 0x36,
824 0x39, 0x38, 0x3b, 0x3a, 0x3f,
825 0x3f, 0x40, 0x3a, 0x3d, 0x3e,
826 0x41, 0x3c, 0x3e, 0x3f, 0x42,
827 0x3e, 0x3b, 0x37, 0x3b, 0x3e,
828 0x41, 0x3b, 0x3b, 0x3a, 0x3b,
829 0x36, 0x39, 0x3b, 0x3f, 0x3c,
830 0x3b, 0x37, 0x3b, 0x3d, 0x41,
831 0x3d, 0x3e, 0x3c, 0x3e, 0x3b,
832 0x3a, 0x37, 0x3b, 0x3e, 0x41,
833 0x3c, 0x3b, 0x39, 0x3a, 0x36
846 for (i = 0; i <
IN_END; i += 2)
850 for (i = 0; i <
IN_END; i += 2)
866 for (i = 0; i <
IN_END / 2; i++)
873 for (i = 0; i <
IN_END; i++)
880 printf (
"%d\n", main_result);
int scalel(int nbl, int shift_constant)
int uppol1(int al1, int apl2, int plt, int plt1)
void upzero(int dlt, int *dlti, int *bli)
const int quant26bt_pos[31]
const int qq4_code4_table[16]
int filtez(int *bpl, int *dlt)
const int qq2_code2_table[4]
const int test_data[SIZE]
const int test_result[SIZE]
int uppol2(int al1, int al2, int plt, int plt1, int plt2)
int logscl(int il, int nbl)
const int test_compressed[SIZE]
int quantl(int el, int detl)
int logsch(int ih, int nbh)
const int quant26bt_neg[31]
const int qq6_code6_table[64]
int filtep(int rlt1, int al1, int rlt2, int al2)
const int wl_code_table[16]
const int wh_code_table[4]