Lines Matching refs:waves_info
1318 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) { in decode_tones_envelope()
1329 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) { in decode_tones_envelope()
1362 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) in decode_band_numwavs()
1367 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) in decode_band_numwavs()
1374 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) in decode_band_numwavs()
1383 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) in decode_band_numwavs()
1390 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) in decode_band_numwavs()
1392 if (ctx->waves_info->tones_index + dst[sb].num_wavs > 48) { in decode_band_numwavs()
1395 ctx->waves_info->tones_index + dst[sb].num_wavs, in decode_band_numwavs()
1399 dst[sb].start_index = ctx->waves_info->tones_index; in decode_band_numwavs()
1400 ctx->waves_info->tones_index += dst[sb].num_wavs; in decode_band_numwavs()
1424 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) { in decode_tones_frequency()
1427 iwav = &ctx->waves_info->waves[dst[sb].start_index]; in decode_tones_frequency()
1449 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) { in decode_tones_frequency()
1452 iwav = &ctx->waves_info->waves[ref[sb].start_index]; in decode_tones_frequency()
1453 owav = &ctx->waves_info->waves[dst[sb].start_index]; in decode_tones_frequency()
1485 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) { in decode_tones_amplitude()
1488 wsrc = &ctx->waves_info->waves[dst[sb].start_index]; in decode_tones_amplitude()
1489 wref = &ctx->waves_info->waves[ref[sb].start_index]; in decode_tones_amplitude()
1513 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) { in decode_tones_amplitude()
1516 if (ctx->waves_info->amplitude_mode) in decode_tones_amplitude()
1518 ctx->waves_info->waves[dst[sb].start_index + i].amp_sf = get_bits(gb, 6); in decode_tones_amplitude()
1520 ctx->waves_info->waves[dst[sb].start_index].amp_sf = get_bits(gb, 6); in decode_tones_amplitude()
1524 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) { in decode_tones_amplitude()
1527 if (ctx->waves_info->amplitude_mode) in decode_tones_amplitude()
1529 ctx->waves_info->waves[dst[sb].start_index + i].amp_sf = in decode_tones_amplitude()
1533 ctx->waves_info->waves[dst[sb].start_index].amp_sf = in decode_tones_amplitude()
1539 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) { in decode_tones_amplitude()
1547 ctx->waves_info->waves[refwaves[dst[sb].start_index + i]].amp_sf : 34; in decode_tones_amplitude()
1548 ctx->waves_info->waves[dst[sb].start_index + i].amp_sf = (pred + delta) & 0x3F; in decode_tones_amplitude()
1553 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) { in decode_tones_amplitude()
1557 ctx->waves_info->waves[dst[sb].start_index + i].amp_sf = in decode_tones_amplitude()
1559 ? ctx->waves_info->waves[refwaves[dst[sb].start_index + i]].amp_sf in decode_tones_amplitude()
1582 for (sb = 0; sb < ctx->waves_info->num_tone_bands; sb++) { in decode_tones_phase()
1585 wparam = &ctx->waves_info->waves[dst[sb].start_index]; in decode_tones_phase()
1610 ctx->waves_info->tones_present = get_bits1(gb); in decode_tones_info()
1611 if (!ctx->waves_info->tones_present) in decode_tones_info()
1614 memset(ctx->waves_info->waves, 0, sizeof(ctx->waves_info->waves)); in decode_tones_info()
1616 ctx->waves_info->amplitude_mode = get_bits1(gb); in decode_tones_info()
1617 if (!ctx->waves_info->amplitude_mode) { in decode_tones_info()
1622 ctx->waves_info->num_tone_bands = in decode_tones_info()
1627 get_subband_flags(gb, ctx->waves_info->tone_sharing, ctx->waves_info->num_tone_bands); in decode_tones_info()
1628 get_subband_flags(gb, ctx->waves_info->tone_master, ctx->waves_info->num_tone_bands); in decode_tones_info()
1629 get_subband_flags(gb, ctx->waves_info->invert_phase, ctx->waves_info->num_tone_bands); in decode_tones_info()
1632 ctx->waves_info->tones_index = 0; in decode_tones_info()
1635 for (i = 0; i < ctx->waves_info->num_tone_bands; i++) in decode_tones_info()
1636 band_has_tones[i] = !ch_num ? 1 : !ctx->waves_info->tone_sharing[i]; in decode_tones_info()
1649 for (i = 0; i < ctx->waves_info->num_tone_bands; i++) { in decode_tones_info()
1650 if (ctx->waves_info->tone_sharing[i]) in decode_tones_info()
1653 if (ctx->waves_info->tone_master[i]) in decode_tones_info()