Lines Matching refs:ch_data
369 static void sbr_chirp(SpectralBandReplication *sbr, SBRData *ch_data)
377 if (ch_data->bs_invf_mode[0][i] + ch_data->bs_invf_mode[1][i] == 1)
380 new_bw = bw_tab[ch_data->bs_invf_mode[0][i]];
382 if (new_bw < ch_data->bw_array[i]){
384 accu += (int64_t)ch_data->bw_array[i] * 0x20000000;
388 accu += (int64_t)ch_data->bw_array[i] * 201326592;
391 ch_data->bw_array[i] = new_bw < 0x2000000 ? 0 : new_bw;
400 SBRData *ch_data, const int e_a[2])
407 for (e = 0; e < ch_data->bs_num_env; e++) {
417 sbr->s_m[e][m] = av_sqrt_sf(av_mul_sf(temp, av_int2sf(ch_data->s_indexmapped[e + 1][m], 0)));
490 SpectralBandReplication *sbr, SBRData *ch_data,
504 SoftFloat (*g_temp)[48] = ch_data->g_temp, (*q_temp)[48] = ch_data->q_temp;
505 int indexnoise = ch_data->f_indexnoise;
506 int indexsine = ch_data->f_indexsine;
510 memcpy(g_temp[i + 2*ch_data->t_env[0]], sbr->gain[0], m_max * sizeof(sbr->gain[0][0]));
511 memcpy(q_temp[i + 2*ch_data->t_env[0]], sbr->q_m[0], m_max * sizeof(sbr->q_m[0][0]));
515 memcpy(g_temp[i + 2 * ch_data->t_env[0]],
516 g_temp[i + 2 * ch_data->t_env_num_env_old],
518 memcpy(q_temp[i + 2 * ch_data->t_env[0]],
519 q_temp[i + 2 * ch_data->t_env_num_env_old],
524 for (e = 0; e < ch_data->bs_num_env; e++) {
525 for (i = 2 * ch_data->t_env[e]; i < 2 * ch_data->t_env[e + 1]; i++) {
531 for (e = 0; e < ch_data->bs_num_env; e++) {
532 for (i = 2 * ch_data->t_env[e]; i < 2 * ch_data->t_env[e + 1]; i++) {
608 ch_data->f_indexnoise = indexnoise;
609 ch_data->f_indexsine = indexsine;