Lines Matching refs:sub_packet
117 int16_t sub_packet;
196 int sub_packet;
425 * @param sub_packet packet under analysis
428 QDM2SubPacket *sub_packet)
430 sub_packet->type = get_bits(gb, 8);
432 if (sub_packet->type == 0) {
433 sub_packet->size = 0;
434 sub_packet->data = NULL;
436 sub_packet->size = get_bits(gb, 8);
438 if (sub_packet->type & 0x80) {
439 sub_packet->size <<= 8;
440 sub_packet->size |= get_bits(gb, 8);
441 sub_packet->type &= 0x7f;
444 if (sub_packet->type == 0x7f)
445 sub_packet->type |= (get_bits(gb, 8) << 8);
448 sub_packet->data = &gb->buffer[get_bits_count(gb) / 8];
452 sub_packet->type, sub_packet->size, get_bits_count(gb) / 8);
1402 static void qdm2_fft_init_coefficient(QDM2Context *q, int sub_packet,
1409 q->fft_coefs[q->fft_coefs_index].sub_packet =
1410 ((sub_packet >= 16) ? (sub_packet - 16) : sub_packet);
1491 int sub_packet = (local_int_20 + local_int_28);
1493 qdm2_fft_init_coefficient(q, sub_packet, offset, duration,
1496 qdm2_fft_init_coefficient(q, sub_packet, offset, duration,
1624 static void qdm2_fft_tone_synthesizer(QDM2Context *q, int sub_packet)
1640 if (q->fft_coefs[i].sub_packet != sub_packet)
1667 if (q->fft_coefs[j].sub_packet != sub_packet)
1695 static void qdm2_calculate_fft(QDM2Context *q, int channel, int sub_packet)
1972 if (q->sub_packet == 0) {
1980 if (q->sub_packet == 2)
1983 qdm2_fft_tone_synthesizer(q, q->sub_packet);
1988 qdm2_calculate_fft(q, ch, q->sub_packet);
1998 qdm2_synthesis_filter(q, q->sub_packet);
2000 q->sub_packet = (q->sub_packet + 1) % 16;