45 #define ENVELOPE_ADJUSTMENT_OFFSET 2
46 #define NOISE_FLOOR_OFFSET 6.0f
84 { 60, 60, 24, 24, 31, 31, 12, 12, 31, 12 };
86 #define SBR_INIT_VLC_STATIC(num, size) \
87 INIT_VLC_STATIC(&vlc_sbr[num], 9, sbr_tmp[num].table_size / sbr_tmp[num].elem_size, \
88 sbr_tmp[num].sbr_bits , 1, 1, \
89 sbr_tmp[num].sbr_codes, sbr_tmp[num].elem_size, sbr_tmp[num].elem_size, \
92 #define SBR_VLC_ROW(name) \
93 { name ## _codes, name ## _bits, sizeof(name ## _codes), sizeof(name ## _codes[0]) }
100 const void *sbr_codes, *sbr_bits;
101 const unsigned int table_size, elem_size;
147 sbr->
kx[0] = sbr->
kx[1];
169 return *(
const int16_t *)a - *(
const int16_t *)
b;
175 for (i = 0; i <= last_el; i++)
176 if (table[i] == needle)
186 static const float bands_warped[3] = { 1.32715174233856803909f,
187 1.18509277094158210129f,
188 1.11987160404675912501f };
189 const float lim_bands_per_octave_warped = bands_warped[sbr->
bs_limiter_bands - 1];
190 int16_t patch_borders[7];
193 patch_borders[0] = sbr->
kx[1];
200 memcpy(sbr->
f_tablelim + sbr->
n[0] + 1, patch_borders + 1,
201 (sbr->
num_patches - 1) *
sizeof(patch_borders[0]));
208 while (out < sbr->f_tablelim + sbr->
n_lim) {
209 if (*in >= *
out * lim_bands_per_octave_warped) {
211 }
else if (*in == *
out ||
251 if (bs_header_extra_1) {
265 if (bs_header_extra_2) {
285 int i,
min = array[0];
286 for (i = 1; i < nel; i++)
287 min =
FFMIN(array[i], min);
293 int k, previous, present;
296 base =
powf((
float)stop / start, 1.0f / num_bands);
300 for (k = 0; k < num_bands-1; k++) {
303 bands[k] = present - previous;
306 bands[num_bands-1] = stop - previous;
316 if (bs_xover_band >= n_master) {
318 "Invalid bitstream, crossover band index beyond array bounds: %d\n",
329 unsigned int temp, max_qmf_subbands = 0;
330 unsigned int start_min, stop_min;
332 const int8_t *sbr_offset_ptr;
355 case 44100:
case 48000:
case 64000:
358 case 88200:
case 96000:
case 128000:
case 176400:
case 192000:
363 "Unsupported sample rate for SBR: %d\n", sbr->
sample_rate);
373 sbr->
k[2] = stop_min;
377 sbr->
k[2] += stop_dk[k];
379 sbr->
k[2] = 2*sbr->
k[0];
381 sbr->
k[2] = 3*sbr->
k[0];
387 sbr->
k[2] =
FFMIN(64, sbr->
k[2]);
391 max_qmf_subbands = 48;
393 max_qmf_subbands = 35;
395 max_qmf_subbands = 32;
399 if (sbr->
k[2] - sbr->
k[0] > max_qmf_subbands) {
401 "Invalid bitstream, too many QMF subbands: %d\n", sbr->
k[2] - sbr->
k[0]);
409 sbr->
n_master = ((sbr->
k[2] - sbr->
k[0] + (dk&2)) >> dk) << 1;
413 for (k = 1; k <= sbr->
n_master; k++)
416 k2diff = sbr->
k[2] - sbr->
k[0] - sbr->
n_master * dk;
425 for (k = 1; k <= sbr->
n_master; k++)
430 int two_regions, num_bands_0;
431 int vdk0_max, vdk1_min;
434 if (49 * sbr->
k[2] > 110 * sbr->
k[0]) {
436 sbr->
k[1] = 2 * sbr->
k[0];
439 sbr->
k[1] = sbr->
k[2];
442 num_bands_0 =
lrintf(half_bands *
log2f(sbr->
k[1] / (
float)sbr->
k[0])) * 2;
444 if (num_bands_0 <= 0) {
454 vdk0_max = vk0[num_bands_0];
457 for (k = 1; k <= num_bands_0; k++) {
467 float invwarp = spectrum->
bs_alter_scale ? 0.76923076923076923077f
469 int num_bands_1 =
lrintf(half_bands * invwarp *
470 log2f(sbr->
k[2] / (
float)sbr->
k[1])) * 2;
476 if (vdk1_min < vdk0_max) {
479 change =
FFMIN(vdk0_max - vk1[1], (vk1[num_bands_1] - vk1[1]) >> 1);
481 vk1[num_bands_1] -= change;
487 for (k = 1; k <= num_bands_1; k++) {
495 sbr->
n_master = num_bands_0 + num_bands_1;
499 (num_bands_0 + 1) *
sizeof(sbr->
f_master[0]));
500 memcpy(&sbr->
f_master[num_bands_0 + 1], vk1 + 1,
501 num_bands_1 *
sizeof(sbr->
f_master[0]));
519 int usb = sbr->
kx[1];
524 if (goal_sb < sbr->kx[1] + sbr->
m[1]) {
525 for (k = 0; sbr->
f_master[k] < goal_sb; k++) ;
531 for (i = k; i == k || sb > (sbr->
k[0] - 1 + msb - odd); i--) {
533 odd = (sb + sbr->
k[0]) & 1;
557 }
while (sb != sbr->
kx[1] + sbr->
m[1]);
572 sbr->
n[0] = (sbr->
n[1] + 1) >> 1;
575 (sbr->
n[1] + 1) *
sizeof(sbr->
f_master[0]));
580 if (sbr->
kx[1] + sbr->
m[1] > 64) {
582 "Stop frequency border too high: %d\n", sbr->
kx[1] + sbr->
m[1]);
585 if (sbr->
kx[1] > 32) {
591 temp = sbr->
n[1] & 1;
592 for (k = 1; k <= sbr->
n[0]; k++)
596 log2f(sbr->
k[2] / (
float)sbr->
kx[1])));
604 for (k = 1; k <= sbr->
n_q; k++) {
605 temp += (sbr->
n[0] -
temp) / (sbr->
n_q + 1 - k);
624 for (i = 0; i < elements; i++) {
638 unsigned bs_pointer = 0;
640 int abs_bord_trail = 16;
641 int num_rel_lead, num_rel_trail;
642 unsigned bs_num_env_old = ch_data->
bs_num_env;
657 "Invalid bitstream, too many SBR envelopes in FIXFIX type SBR frame: %d\n",
662 ch_data->
t_env[0] = 0;
665 abs_bord_trail = (abs_bord_trail + (ch_data->
bs_num_env >> 1)) /
667 for (i = 0; i < num_rel_lead; i++)
668 ch_data->
t_env[i + 1] = ch_data->
t_env[i] + abs_bord_trail;
678 ch_data->
t_env[0] = 0;
681 for (i = 0; i < num_rel_trail; i++)
696 for (i = 0; i < num_rel_lead; i++)
708 ch_data->
bs_num_env = num_rel_lead + num_rel_trail + 1;
712 "Invalid bitstream, too many SBR envelopes in VARVAR type SBR frame: %d\n",
719 for (i = 0; i < num_rel_lead; i++)
721 for (i = 0; i < num_rel_trail; i++)
733 "Invalid bitstream, bs_pointer points to a middle noise border outside the time borders table: %d\n",
739 if (ch_data->
t_env[i-1] > ch_data->
t_env[i]) {
747 ch_data->
t_q[0] = ch_data->
t_env[0];
758 else if (bs_pointer == 1)
761 idx = bs_pointer - 1;
763 ch_data->
t_q[1] = ch_data->
t_env[idx];
766 ch_data->
e_a[0] = -(ch_data->
e_a[1] != bs_num_env_old);
767 ch_data->
e_a[1] = -1;
771 ch_data->
e_a[1] = bs_pointer - 1;
785 memcpy(dst->
t_q, src->
t_q,
sizeof(dst->
t_q));
790 dst->
e_a[1] = src->
e_a[1];
808 for (i = 0; i < sbr->
n_q; i++)
817 VLC_TYPE (*t_huff)[2], (*f_huff)[2];
820 const int odd = sbr->
n[1] & 1;
856 for (j = 0; j < sbr->
n[ch_data->
bs_freq_res[i + 1]]; j++)
859 for (j = 0; j < sbr->
n[ch_data->
bs_freq_res[i + 1]]; j++) {
864 for (j = 0; j < sbr->
n[ch_data->
bs_freq_res[i + 1]]; j++) {
865 k = j ? 2*j - odd : 0;
871 for (j = 1; j < sbr->
n[ch_data->
bs_freq_res[i + 1]]; j++)
885 VLC_TYPE (*t_huff)[2], (*f_huff)[2];
903 for (j = 0; j < sbr->
n_q; j++)
907 for (j = 1; j < sbr->
n_q; j++)
919 int bs_extension_id,
int *num_bits_left)
921 switch (bs_extension_id) {
924 av_log(ac->
avctx,
AV_LOG_ERROR,
"Parametric Stereo signaled to be not-present but was found in the bitstream.\n");
940 if (bs_extension_id || *num_bits_left > 16 ||
show_bits(gb, *num_bits_left))
1027 "Invalid bitstream - cannot apply SBR to element type %d\n", id_aac);
1032 int num_bits_left =
get_bits(gb, 4);
1033 if (num_bits_left == 15)
1036 num_bits_left <<= 3;
1037 while (num_bits_left > 7) {
1041 if (num_bits_left < 0) {
1044 if (num_bits_left > 0)
1059 "SBR reset failed. Switching SBR to pure upsampling mode.\n");
1075 unsigned int num_sbr_bits = 0, num_align_bits;
1076 unsigned bytes_read;
1093 sbr->
kx[0] = sbr->
kx[1];
1094 sbr->
m[0] = sbr->
m[1];
1107 num_align_bits = ((cnt << 3) - 4 - num_sbr_bits) & 7;
1108 bytes_read = ((num_sbr_bits + num_align_bits + 4) >> 3);
1110 if (bytes_read > cnt) {
1112 "Expected to read %d SBR bytes actually read %d.\n", cnt, bytes_read);
1135 fac = temp1 / (1.0f + temp2);
1141 for (k = 0; k < sbr->
n_q; k++) {
1149 fac = temp1 / (1.0f + temp2);
1155 for (ch = 0; ch < (id_aac ==
TYPE_CPE) + 1; ch++) {
1168 for (k = 0; k < sbr->
n_q; k++)
1181 #ifndef sbr_qmf_analysis
1184 float z[320],
float W[2][32][32][2],
int buf_idx)
1187 memcpy(x , x+1024, (320-32)*
sizeof(x[0]));
1188 memcpy(x+288, in, 1024*
sizeof(x[0]));
1189 for (i = 0; i < 32; i++) {
1205 #ifndef sbr_qmf_synthesis
1208 float *
out,
float X[2][38][64],
1209 float mdct_buf[2][64],
1210 float *
v0,
int *v_off,
const unsigned int div)
1214 const int step = 128 >> div;
1216 for (i = 0; i < 32; i++) {
1217 if (*v_off < step) {
1218 int saved_samples = (1280 - 128) >> div;
1226 for (n = 0; n < 32; n++) {
1227 X[0][i][
n] = -X[0][i][
n];
1228 X[0][i][32+
n] = X[1][i][31-
n];
1230 mdct->
imdct_half(mdct, mdct_buf[0], X[0][i]);
1234 mdct->
imdct_half(mdct, mdct_buf[0], X[0][i]);
1235 mdct->
imdct_half(mdct, mdct_buf[1], X[1][i]);
1238 dsp->
vector_fmul (out, v , sbr_qmf_window , 64 >> div);
1239 dsp->
vector_fmul_add(out, v + ( 192 >> div), sbr_qmf_window + ( 64 >> div), out , 64 >> div);
1240 dsp->
vector_fmul_add(out, v + ( 256 >> div), sbr_qmf_window + (128 >> div), out , 64 >> div);
1241 dsp->
vector_fmul_add(out, v + ( 448 >> div), sbr_qmf_window + (192 >> div), out , 64 >> div);
1242 dsp->
vector_fmul_add(out, v + ( 512 >> div), sbr_qmf_window + (256 >> div), out , 64 >> div);
1243 dsp->
vector_fmul_add(out, v + ( 704 >> div), sbr_qmf_window + (320 >> div), out , 64 >> div);
1244 dsp->
vector_fmul_add(out, v + ( 768 >> div), sbr_qmf_window + (384 >> div), out , 64 >> div);
1245 dsp->
vector_fmul_add(out, v + ( 960 >> div), sbr_qmf_window + (448 >> div), out , 64 >> div);
1246 dsp->
vector_fmul_add(out, v + (1024 >> div), sbr_qmf_window + (512 >> div), out , 64 >> div);
1247 dsp->
vector_fmul_add(out, v + (1216 >> div), sbr_qmf_window + (576 >> div), out , 64 >> div);
1258 float (*alpha0)[2],
float (*alpha1)[2],
1259 const float X_low[32][40][2],
int k0)
1262 for (k = 0; k < k0; k++) {
1268 dk = phi[2][1][0] * phi[1][0][0] -
1269 (phi[1][1][0] * phi[1][1][0] + phi[1][1][1] * phi[1][1][1]) / 1.000001f;
1275 float temp_real, temp_im;
1276 temp_real = phi[0][0][0] * phi[1][1][0] -
1277 phi[0][0][1] * phi[1][1][1] -
1278 phi[0][1][0] * phi[1][0][0];
1279 temp_im = phi[0][0][0] * phi[1][1][1] +
1280 phi[0][0][1] * phi[1][1][0] -
1281 phi[0][1][1] * phi[1][0][0];
1283 alpha1[k][0] = temp_real / dk;
1284 alpha1[k][1] = temp_im / dk;
1287 if (!phi[1][0][0]) {
1291 float temp_real, temp_im;
1292 temp_real = phi[0][0][0] + alpha1[k][0] * phi[1][1][0] +
1293 alpha1[k][1] * phi[1][1][1];
1294 temp_im = phi[0][0][1] + alpha1[k][1] * phi[1][1][0] -
1295 alpha1[k][0] * phi[1][1][1];
1297 alpha0[k][0] = -temp_real / phi[1][0][0];
1298 alpha0[k][1] = -temp_im / phi[1][0][0];
1301 if (alpha1[k][0] * alpha1[k][0] + alpha1[k][1] * alpha1[k][1] >= 16.0f ||
1302 alpha0[k][0] * alpha0[k][0] + alpha0[k][1] * alpha0[k][1] >= 16.0f) {
1316 static const float bw_tab[] = { 0.0f, 0.75f, 0.9f, 0.98f };
1318 for (i = 0; i < sbr->
n_q; i++) {
1324 if (new_bw < ch_data->bw_array[i]) {
1325 new_bw = 0.75f * new_bw + 0.25f * ch_data->
bw_array[i];
1327 new_bw = 0.90625f * new_bw + 0.09375f * ch_data->
bw_array[i];
1328 ch_data->
bw_array[i] = new_bw < 0.015625f ? 0.0f : new_bw;
1334 float X_low[32][40][2],
const float W[2][32][32][2],
1338 const int t_HFGen = 8;
1340 memset(X_low, 0, 32*
sizeof(*X_low));
1341 for (k = 0; k < sbr->
kx[1]; k++) {
1342 for (i = t_HFGen; i < i_f + t_HFGen; i++) {
1343 X_low[k][i][0] = W[buf_idx][i - t_HFGen][k][0];
1344 X_low[k][i][1] = W[buf_idx][i - t_HFGen][k][1];
1347 buf_idx = 1-buf_idx;
1348 for (k = 0; k < sbr->
kx[0]; k++) {
1349 for (i = 0; i < t_HFGen; i++) {
1350 X_low[k][i][0] = W[buf_idx][i + i_f - t_HFGen][k][0];
1351 X_low[k][i][1] = W[buf_idx][i + i_f - t_HFGen][k][1];
1359 float X_high[64][40][2],
const float X_low[32][40][2],
1360 const float (*alpha0)[2],
const float (*alpha1)[2],
1361 const float bw_array[5],
const uint8_t *t_env,
1376 "ERROR : no subband found for frequency %d\n", k);
1382 alpha0[p], alpha1[p], bw_array[g],
1383 2 * t_env[0], 2 * t_env[bs_num_env]);
1386 if (k < sbr->
m[1] + sbr->
kx[1])
1387 memset(X_high + k, 0, (sbr->
m[1] + sbr->
kx[1] - k) *
sizeof(*X_high));
1394 const float Y0[38][64][2],
const float Y1[38][64][2],
1395 const float X_low[32][40][2],
int ch)
1400 memset(X, 0, 2*
sizeof(*X));
1401 for (k = 0; k < sbr->
kx[0]; k++) {
1402 for (i = 0; i < i_Temp; i++) {
1407 for (; k < sbr->
kx[0] + sbr->
m[0]; k++) {
1408 for (i = 0; i < i_Temp; i++) {
1409 X[0][i][k] = Y0[i + i_f][k][0];
1410 X[1][i][k] = Y0[i + i_f][k][1];
1414 for (k = 0; k < sbr->
kx[1]; k++) {
1415 for (i = i_Temp; i < 38; i++) {
1420 for (; k < sbr->
kx[1] + sbr->
m[1]; k++) {
1421 for (i = i_Temp; i < i_f; i++) {
1422 X[0][i][k] = Y1[i][k][0];
1423 X[1][i][k] = Y1[i][k][1];
1439 const unsigned int ilim = sbr->
n[ch_data->
bs_freq_res[e + 1]];
1443 if (sbr->
kx[1] != table[0]) {
1445 "Derived frequency tables were not regenerated.\n");
1449 for (i = 0; i < ilim; i++)
1450 for (m = table[i]; m < table[i + 1]; m++)
1455 for (i = 0; i < sbr->
n_q; i++)
1456 for (m = sbr->
f_tablenoise[i]; m < sbr->f_tablenoise[i + 1]; m++)
1459 for (i = 0; i < sbr->
n[1]; i++) {
1461 const unsigned int m_midpoint =
1465 (e >= e_a[1] || (ch_data->
s_indexmapped[0][m_midpoint - sbr->
kx[1]] == 1));
1469 for (i = 0; i < ilim; i++) {
1470 int additional_sinusoid_present = 0;
1471 for (m = table[i]; m < table[i + 1]; m++) {
1473 additional_sinusoid_present = 1;
1477 memset(&sbr->
s_mapped[e][table[i] - sbr->
kx[1]], additional_sinusoid_present,
1478 (table[i + 1] - table[i]) *
sizeof(sbr->
s_mapped[e][0]));
1491 int kx1 = sbr->
kx[1];
1495 const float recip_env_size = 0.5f / (ch_data->
t_env[e + 1] - ch_data->
t_env[e]);
1499 for (m = 0; m < sbr->
m[1]; m++) {
1500 float sum = sbr->
dsp.
sum_square(X_high[m+kx1] + ilb, iub - ilb);
1501 e_curr[e][
m] = sum * recip_env_size;
1508 const int env_size = 2 * (ch_data->
t_env[e + 1] - ch_data->
t_env[e]);
1513 for (p = 0; p < sbr->
n[ch_data->
bs_freq_res[e + 1]]; p++) {
1515 const int den = env_size * (table[p + 1] - table[p]);
1517 for (k = table[p]; k < table[p + 1]; k++) {
1521 for (k = table[p]; k < table[p + 1]; k++) {
1522 e_curr[e][k - kx1] = sum;
1534 SBRData *ch_data,
const int e_a[2])
1538 static const float limgain[4] = { 0.70795, 1.0, 1.41254, 10000000000 };
1541 int delta = !((e == e_a[1]) || (e == e_a[0]));
1542 for (k = 0; k < sbr->
n_lim; k++) {
1543 float gain_boost, gain_max;
1544 float sum[2] = { 0.0f, 0.0f };
1545 for (m = sbr->
f_tablelim[k] - sbr->
kx[1]; m < sbr->f_tablelim[k + 1] - sbr->
kx[1]; m++) {
1551 ((1.0f + sbr->
e_curr[e][m]) *
1552 (1.0f + sbr->
q_mapped[e][m] * delta)));
1555 ((1.0f + sbr->
e_curr[e][m]) *
1559 for (m = sbr->
f_tablelim[k] - sbr->
kx[1]; m < sbr->f_tablelim[k + 1] - sbr->
kx[1]; m++) {
1563 gain_max = limgain[sbr->
bs_limiter_gains] * sqrtf((FLT_EPSILON + sum[0]) / (FLT_EPSILON + sum[1]));
1564 gain_max =
FFMIN(100000.f, gain_max);
1565 for (m = sbr->
f_tablelim[k] - sbr->
kx[1]; m < sbr->f_tablelim[k + 1] - sbr->
kx[1]; m++) {
1566 float q_m_max = sbr->
q_m[e][
m] * gain_max / sbr->
gain[e][
m];
1570 sum[0] = sum[1] = 0.0f;
1571 for (m = sbr->
f_tablelim[k] - sbr->
kx[1]; m < sbr->f_tablelim[k + 1] - sbr->
kx[1]; m++) {
1575 + (delta && !sbr->
s_m[e][
m]) * sbr->
q_m[e][m] * sbr->
q_m[e][m];
1577 gain_boost = sqrtf((FLT_EPSILON + sum[0]) / (FLT_EPSILON + sum[1]));
1578 gain_boost =
FFMIN(1.584893192f, gain_boost);
1579 for (m = sbr->
f_tablelim[k] - sbr->
kx[1]; m < sbr->f_tablelim[k + 1] - sbr->
kx[1]; m++) {
1580 sbr->
gain[e][
m] *= gain_boost;
1581 sbr->
q_m[e][
m] *= gain_boost;
1582 sbr->
s_m[e][
m] *= gain_boost;
1590 const float X_high[64][40][2],
1596 const int kx = sbr->
kx[1];
1597 const int m_max = sbr->
m[1];
1598 static const float h_smooth[5] = {
1605 float (*g_temp)[48] = ch_data->
g_temp, (*q_temp)[48] = ch_data->
q_temp;
1610 for (i = 0; i < h_SL; i++) {
1611 memcpy(g_temp[i + 2*ch_data->
t_env[0]], sbr->
gain[0], m_max *
sizeof(sbr->
gain[0][0]));
1612 memcpy(q_temp[i + 2*ch_data->
t_env[0]], sbr->
q_m[0], m_max *
sizeof(sbr->
q_m[0][0]));
1615 for (i = 0; i < 4; i++) {
1616 memcpy(g_temp[i + 2 * ch_data->
t_env[0]],
1619 memcpy(q_temp[i + 2 * ch_data->
t_env[0]],
1626 for (i = 2 * ch_data->
t_env[e]; i < 2 * ch_data->t_env[e + 1]; i++) {
1627 memcpy(g_temp[h_SL + i], sbr->
gain[e], m_max *
sizeof(sbr->
gain[0][0]));
1628 memcpy(q_temp[h_SL + i], sbr->
q_m[e], m_max *
sizeof(sbr->
q_m[0][0]));
1633 for (i = 2 * ch_data->
t_env[e]; i < 2 * ch_data->t_env[e + 1]; i++) {
1636 float *g_filt, *q_filt;
1638 if (h_SL && e != e_a[0] && e != e_a[1]) {
1639 g_filt = g_filt_tab;
1640 q_filt = q_filt_tab;
1641 for (m = 0; m < m_max; m++) {
1642 const int idx1 = i + h_SL;
1645 for (j = 0; j <= h_SL; j++) {
1646 g_filt[
m] += g_temp[idx1 - j][
m] * h_smooth[j];
1647 q_filt[
m] += q_temp[idx1 - j][
m] * h_smooth[j];
1651 g_filt = g_temp[i + h_SL];
1655 sbr->
dsp.
hf_g_filt(Y1[i] + kx, X_high + kx, g_filt, m_max,
1658 if (e != e_a[0] && e != e_a[1]) {
1663 int idx = indexsine&1;
1664 int A = (1-((indexsine+(kx & 1))&2));
1665 int B = (A^(-idx)) + idx;
1666 float *
out = &Y1[i][kx][idx];
1667 float *
in = sbr->
s_m[e];
1668 for (m = 0; m+1 < m_max; m+=2) {
1669 out[2*
m ] += in[
m ] *
A;
1670 out[2*m+2] += in[m+1] *
B;
1673 out[2*
m ] += in[
m ] *
A;
1675 indexnoise = (indexnoise + m_max) & 0x1ff;
1676 indexsine = (indexsine + 1) & 3;
1688 int nch = (id_aac ==
TYPE_CPE) ? 2 : 1;
1692 sbr->
kx[0] = sbr->
kx[1];
1693 sbr->
m[0] = sbr->
m[1];
1701 for (ch = 0; ch < nch; ch++) {
1707 (
const float (*)[32][32][2]) sbr->
data[ch].
W,
1712 (
const float (*)[40][2]) sbr->
X_low, sbr->
k[0]);
1715 (
const float (*)[40][2]) sbr->
X_low,
1716 (
const float (*)[2]) sbr->
alpha0,
1717 (
const float (*)[2]) sbr->
alpha1,
1727 (
const float (*)[40][2]) sbr->
X_high,
1728 sbr, &sbr->
data[ch],
1735 (
const float (*)[64][2]) sbr->
data[ch].
Y[1-sbr->
data[ch].
Ypos],
1736 (
const float (*)[64][2]) sbr->
data[ch].
Y[ sbr->
data[ch].
Ypos],
1737 (
const float (*)[40][2]) sbr->
X_low, ch);
1744 memcpy(sbr->
X[1], sbr->
X[0],
sizeof(sbr->
X[0]));