Home | History | Annotate | Download | only in src

Lines Matching refs:re

357         w.re = w1.re = icvDxtTab[m][0];
364 w.re = w1.re = sqrt(1. - w1.im*w1.im);
372 wave[0].re = 1.;
377 wave[n].re = -1.;
384 wave[n0-i].re = w.re;
387 t = w.re*w1.re - w.im*w1.im;
388 w.im = w.re*w1.im + w.im*w1.re;
389 w.re = t;
397 wave[0].re = 1.f;
402 wave[n].re = -1.f;
408 wave[i].re = (float)w.re;
410 wave[n0-i].re = (float)w.re;
413 t = w.re*w1.re - w.im*w1.im;
414 w.im = w.re*w1.im + w.im*w1.re;
415 w.re = t;
478 t.re = src[k0].re; t.im = -src[k0].im;
480 t.re = src[k1].re; t.im = -src[k1].im;
486 t.re = src[n-1].re; t.im = -src[n-1].im;
565 r2 = v0[0].re; i2 = v0[0].im;
566 r1 = v0[nx].re; i1 = v0[nx].im;
571 i3 = v1[nx].re; r3 = v1[nx].im;
572 i4 = v1[0].re; r4 = v1[0].im;
577 v0[0].re = r0 + r1; v0[0].im = i0 + i1;
578 v1[0].re = r0 - r1; v1[0].im = i0 - i1;
579 v0[nx].re = r2 + r3; v0[nx].im = i2 + i3;
580 v1[nx].re = r2 - r3; v1[nx].im = i2 - i3;
587 r2 = v0[nx].re*wave[dw*2].re - v0[nx].im*wave[dw*2].im;
588 i2 = v0[nx].re*wave[dw*2].im + v0[nx].im*wave[dw*2].re;
589 r0 = v1[0].re*wave[dw].im + v1[0].im*wave[dw].re;
590 i0 = v1[0].re*wave[dw].re - v1[0].im*wave[dw].im;
591 r3 = v1[nx].re*wave[dw*3].im + v1[nx].im*wave[dw*3].re;
592 i3 = v1[nx].re*wave[dw*3].re - v1[nx].im*wave[dw*3].im;
596 r4 = v0[0].re; i4 = v0[0].im;
601 v0[0].re = r0 + r1; v0[0].im = i0 + i1;
602 v1[0].re = r0 - r1; v1[0].im = i0 - i1;
603 v0[nx].re = r2 + r3; v0[nx].im = i2 + i3;
604 v1[nx].re = r2 - r3; v1[nx].im = i2 - i3;
619 double r0 = v[0].re + v[nx].re;
621 double r1 = v[0].re - v[nx].re;
623 v[0].re = r0; v[0].im = i0;
624 v[nx].re = r1; v[nx].im = i1;
629 r1 = v[nx].re*wave[dw].re - v[nx].im*wave[dw].im;
630 i1 = v[nx].im*wave[dw].re + v[nx].re*wave[dw].im;
631 r0 = v[0].re; i0 = v[0].im;
633 v[0].re = r0 + r1; v[0].im = i0 + i1;
634 v[nx].re = r0 - r1; v[nx].im = i0 - i1;
655 double r1 = v[nx].re + v[nx*2].re;
657 double r0 = v[0].re;
660 double i2 = icv_sin_120*(v[nx*2].re - v[nx].re);
661 v[0].re = r0 + r1; v[0].im = i0 + i1;
663 v[nx].re = r0 + r2; v[nx].im = i0 + i2;
664 v[nx*2].re = r0 - r2; v[nx*2].im = i0 - i2;
669 r0 = v[nx].re*wave[dw].re - v[nx].im*wave[dw].im;
670 i0 = v[nx].re*wave[dw].im + v[nx].im*wave[dw].re;
671 i2 = v[nx*2].re*wave[dw*2].re - v[nx*2].im*wave[dw*2].im;
672 r2 = v[nx*2].re*wave[dw*2].im + v[nx*2].im*wave[dw*2].re;
676 r0 = v[0].re; i0 = v[0].im;
677 v[0].re = r0 + r1; v[0].im = i0 + i1;
679 v[nx].re = r0 + r2; v[nx].im = i0 + i2;
680 v[nx*2].re = r0 - r2; v[nx*2].im = i0 - i2;
697 r3 = v0[nx].re*wave[dw].re - v0[nx].im*wave[dw].im;
698 i3 = v0[nx].re*wave[dw].im + v0[nx].im*wave[dw].re;
699 r2 = v2[0].re*wave[dw*4].re - v2[0].im*wave[dw*4].im;
700 i2 = v2[0].re*wave[dw*4].im + v2[0].im*wave[dw*4].re;
705 r4 = v1[nx].re*wave[dw*3].re - v1[nx].im*wave[dw*3].im;
706 i4 = v1[nx].re*wave[dw*3].im + v1[nx].im*wave[dw*3].re;
707 r0 = v1[0].re*wave[dw*2].re - v1[0].im*wave[dw*2].im;
708 i0 = v1[0].re*wave[dw*2].im + v1[0].im*wave[dw*2].re;
713 r0 = v0[0].re; i0 = v0[0].im;
716 v0[0].re = r0 + r5; v0[0].im = i0 + i5;
731 v0[nx].re = r3 + r2; v0[nx].im = i3 + i2;
732 v2[0].re = r3 - r2; v2[0].im = i3 - i2;
734 v1[0].re = r0 + r5; v1[0].im = i0 + i5;
735 v1[nx].re = r0 - r5; v1[nx].im = i0 - i5;
759 double r0 = v[k].re + v[n-k].re;
761 double r1 = v[k].re - v[n-k].re;
764 vn_0.re += r0; vn_0.im += i1;
765 a[p-1].re = r0; a[p-1].im = i0;
766 b[p-1].re = r1; b[p-1].im = i1;
776 double r2 = v[k].re*wave[d].re - v[k].im*wave[d].im;
777 double i2 = v[k].re*wave[d].im + v[k].im*wave[d].re;
779 double r1 = v[n-k].re*wave_[-d].re - v[n-k].im*wave_[-d].im;
780 double i1 = v[n-k].re*wave_[-d].im + v[n-k].im*wave_[-d].re;
787 vn_0.re += r0; vn_0.im += i1;
788 a[p-1].re = r0; a[p-1].im = i0;
789 b[p-1].re = r1; b[p-1].im = i1;
802 double r0 = wave[d].re * a[q].re;
804 double r1 = wave[d].re * b[q].im;
805 double i1 = wave[d].im * b[q].re;
807 s1.re += r0 + i0; s0.re += r0 - i0;
830 double t0 = dst[i].re*re_scale;
832 dst[i].re = t0;
899 t.re = src[k0].re; t.im = -src[k0].im;
901 t.re = src[k1].re; t.im = -src[k1].im;
907 t.re = src[n-1].re; t.im = -src[n-1].im;
991 r2 = v0[0].re; i2 = v0[0].im;
992 r1 = v0[nx].re; i1 = v0[nx].im;
997 i3 = v1[nx].re; r3 = v1[nx].im;
998 i4 = v1[0].re; r4 = v1[0].im;
1003 re = (float)(r0 + r1); v0[0].im = (float)(i0 + i1);
1004 v1[0].re = (float)(r0 - r1); v1[0].im = (float)(i0 - i1);
1005 v0[nx].re = (float)(r2 + r3); v0[nx].im = (float)(i2 + i3);
1006 v1[nx].re = (float)(r2 - r3); v1[nx].im = (float)(i2 - i3);
1013 r2 = v0[nx].re*wave[dw*2].re - v0[nx].im*wave[dw*2].im;
1014 i2 = v0[nx].re*wave[dw*2].im + v0[nx].im*wave[dw*2].re;
1015 r0 = v1[0].re*wave[dw].im + v1[0].im*wave[dw].re;
1016 i0 = v1[0].re*wave[dw].re - v1[0].im*wave[dw].im;
1017 r3 = v1[nx].re*wave[dw*3].im + v1[nx].im*wave[dw*3].re;
1018 i3 = v1[nx].re*wave[dw*3].re - v1[nx].im*wave[dw*3].im;
1022 r4 = v0[0].re; i4 = v0[0].im;
1027 v0[0].re = (float)(r0 + r1); v0[0].im = (float)(i0 + i1);
1028 v1[0].re = (float)(r0 - r1); v1[0].im = (float)(i0 - i1);
1029 v0[nx].re = (float)(r2 + r3); v0[nx].im = (float)(i2 + i3);
1030 v1[nx].re = (float)(r2 - r3); v1[nx].im = (float)(i2 - i3);
1045 double r0 = v[0].re + v[nx].re;
1047 double r1 = v[0].re - v[nx].re;
1049 v[0].re = (float)r0; v[0].im = (float)i0;
1050 v[nx].re = (float)r1; v[nx].im = (float)i1;
1055 r1 = v[nx].re*wave[dw].re - v[nx].im*wave[dw].im;
1056 i1 = v[nx].im*wave[dw].re + v[nx].re*wave[dw].im;
1057 r0 = v[0].re; i0 = v[0].im;
1059 v[0].re = (float)(r0 + r1); v[0].im = (float)(i0 + i1);
1060 v[nx].re = (float)(r0 - r1); v[nx].im = (float)(i0 - i1);
1081 double r1 = v[nx].re + v[nx*2].re;
1083 double r0 = v[0].re;
1086 double i2 = icv_sin_120*(v[nx*2].re - v[nx].re);
1087 v[0].re = (float)(r0 + r1); v[0].im = (float)(i0 + i1);
1089 v[nx].re = (float)(r0 + r2); v[nx].im = (float)(i0 + i2);
1090 v[nx*2].re = (float)(r0 - r2); v[nx*2].im = (float)(i0 - i2);
1095 r0 = v[nx].re*wave[dw].re - v[nx].im*wave[dw].im;
1096 i0 = v[nx].re*wave[dw].im + v[nx].im*wave[dw].re;
1097 i2 = v[nx*2].re*wave[dw*2].re - v[nx*2].im*wave[dw*2].im;
1098 r2 = v[nx*2].re*wave[dw*2].im + v[nx*2].im*wave[dw*2].re;
1102 r0 = v[0].re; i0 = v[0].im;
1103 v[0].re = (float)(r0 + r1); v[0].im = (float)(i0 + i1);
1105 v[nx].re = (float)(r0 + r2); v[nx].im = (float)(i0 + i2);
1106 v[nx*2].re = (float)(r0 - r2); v[nx*2].im = (float)(i0 - i2);
1123 r3 = v0[nx].re*wave[dw].re - v0[nx].im*wave[dw].im;
1124 i3 = v0[nx].re*wave[dw].im + v0[nx].im*wave[dw].re;
1125 r2 = v2[0].re*wave[dw*4].re - v2[0].im*wave[dw*4].im;
1126 i2 = v2[0].re*wave[dw*4].im + v2[0].im*wave[dw*4].re;
1131 r4 = v1[nx].re*wave[dw*3].re - v1[nx].im*wave[dw*3].im;
1132 i4 = v1[nx].re*wave[dw*3].im + v1[nx].im*wave[dw*3].re;
1133 r0 = v1[0].re*wave[dw*2].re - v1[0].im*wave[dw*2].im;
1134 i0 = v1[0].re*wave[dw*2].im + v1[0].im*wave[dw*2].re;
1139 r0 = v0[0].re; i0 = v0[0].im;
1142 v0[0].re = (float)(r0 + r5); v0[0].im = (float)(i0 + i5);
1157 v0[nx].re = (float)(r3 + r2); v0[nx].im = (float)(i3 + i2);
1158 v2[0].re = (float)(r3 - r2); v2[0].im = (float)(i3 - i2);
1160 v1[0].re = (float)(r0 + r5); v1[0].im = (float)(i0 + i5);
1161 v1[nx].re = (float)(r0 - r5); v1[nx].im = (float)(i0 - i5);
1185 double r0 = v[k].re + v[n-k].re;
1187 double r1 = v[k].re - v[n-k].re;
1190 vn_0.re += r0; vn_0.im += i1;
1191 a[p-1].re = (float)r0; a[p-1].im = (float)i0;
1192 b[p-1].re = (float)r1; b[p-1].im = (float)i1;
1202 double r2 = v[k].re*wave[d].re - v[k].im*wave[d].im;
1203 double i2 = v[k].re*wave[d].im + v[k].im*wave[d].re;
1205 double r1 = v[n-k].re*wave_[-d].re - v[n-k].im*wave_[-d].im;
1206 double i1 = v[n-k].re*wave_[-d].im + v[n-k].im*wave_[-d].re;
1213 vn_0.re += r0; vn_0.im += i1;
1214 a[p-1].re = (float)r0; a[p-1].im = (float)i0;
1215 b[p-1].re = (float)r1; b[p-1].im = (float)i1;
1219 v[0].re = (float)vn_0.re;
1229 double r0 = wave[d].re * a[q].re;
1231 double r1 = wave[d].re * b[q].im;
1232 double i1 = wave[d].im * b[q].re;
1234 s1.re += r0 + i0; s0.re += r0 - i0;
1241 v[k].re = (float)s0.re;
1243 v[n-k].re = (float)s1.re;
1259 double t0 = dst[i].re*re_scale;
1261 dst[i].re = (float)t0;
1285 re(0), re(1), im(1), ... , re(n/2-1), im((n+1)/2-1) [, re((n+1)/2)] OR ...
1286 re(0), 0, re(1), im(1), ..., re(n/2-1), im((n+1)/2-1) [, re((n+1)/2), 0] */
1321 _dst[0].re = (datatype)(src[0]*scale); \
1327 _dst[j].re = (datatype)t0; \
1329 _dst[j+1].re = (datatype)t1; \
1371 t = h2_re*wave->re - h2_im*wave->im; \
1372 h2_im = h2_re*wave->im + h2_im*wave->re; \
1404 re[0], re[1], im[1], ... , re[n/2-1], im[n/2-1], re[n/2] OR
1405 re(0), 0, re(1), im(1), ..., re(n/2-1), im((n+1)/2-1) [, re((n+1)/2), 0] */
1450 _dst[0].re = src[0]; \
1455 t0 = _src[j].re; t1 = _src[j].im; \
1456 _dst[k0].re = (datatype)t0; _dst[k0].im = (datatype)-t1; \
1457 _dst[k1].re = (datatype)t0; _dst[k1].im = (datatype)t1; \
1492 t = h2_re*w->re + h2_im*w->im; \
1493 h2_im = h2_im*w->re - h2_re*w->im; \
1717 t.re = ptr[i].re;
1729 t.re = ptr[i].re;
2272 double re = (double)dataA[j*stepA]*dataB[j*stepB] -
2276 dataC[j*stepC] = (float)re; dataC[(j+1)*stepC] = (float)im;
2281 double re = (double)dataA[j*stepA]*dataB[j*stepB] +
2285 dataC[j*stepC] = (float)re; dataC[(j+1)*stepC] = (float)im;
2304 double re = (double)dataA[j]*dataB[j] - (double)dataA[j+1]*dataB[j+1];
2306 dataC[j] = (float)re; dataC[j+1] = (float)im;
2311 double re = (double)dataA[j]*dataB[j] + (double)dataA[j+1]*dataB[j+1];
2313 dataC[j] = (float)re; dataC[j+1] = (float)im;
2339 double re = dataA[j*stepA]*dataB[j*stepB] -
2343 dataC[j*stepC] = re; dataC[(j+1)*stepC] = im;
2348 double re = dataA[j*stepA]*dataB[j*stepB] +
2352 dataC[j*stepC] = re; dataC[(j+1)*stepC] = im;
2371 double re = dataA[j]*dataB[j] - dataA[j+1]*dataB[j+1];
2373 dataC[j] = re; dataC[j+1] = im;
2378 double re = dataA[j]*dataB[j] + dataA[j+1]*dataB[j+1];
2380 dataC[j] = re; dataC[j+1] = im;
2431 dst[0] = (datatype)(src[0]*dct_wave->re*icv_sin_45); \
2436 double t0 = dct_wave->re*src[j*2-1] - dct_wave->im*src[j*2]; \
2437 double t1 = -dct_wave->im*src[j*2-1] - dct_wave->re*src[j*2]; \
2442 dst[0] = (datatype)(src[n-1]*dct_wave->re); \
2468 dft_src[0] = (datatype)(src[0]*2*dct_wave->re*icv_sin_45); \
2473 double t0 = dct_wave->re*src[0] - dct_wave->im*src1[0]; \
2474 double t1 = -dct_wave->im*src[0] - dct_wave->re*src1[0]; \
2479 re); \
2527 w1.re = icvDxtTab[m+2][0];
2535 w1.re = sqrt(1. - w1.im*w1.im);
2543 w.re = scale;
2549 t = w.re*w1.re - w.im*w1.im;
2550 w.im = w.re*w1.im + w.im*w1.re;
2551 w.re = t;
2559 w.re = (float)scale;
2564 wave[i].re = (float)w.re;
2566 t = w.re*w1.re - w.im*w1.im;
2567 w.im = w.re*w1.im + w.im*w1.re;
2568 w.re = t;