Lines Matching defs:sub_packet
117 int16_t sub_packet;
196 int sub_packet;
263 * @param sub_packet packet under analysis
266 QDM2SubPacket *sub_packet)
268 sub_packet->type = get_bits(gb, 8);
270 if (sub_packet->type == 0) {
271 sub_packet->size = 0;
272 sub_packet->data = NULL;
274 sub_packet->size = get_bits(gb, 8);
276 if (sub_packet->type & 0x80) {
277 sub_packet->size <<= 8;
278 sub_packet->size |= get_bits(gb, 8);
279 sub_packet->type &= 0x7f;
282 if (sub_packet->type == 0x7f)
283 sub_packet->type |= (get_bits(gb, 8) << 8);
286 sub_packet->data = &gb->buffer[get_bits_count(gb) / 8];
290 sub_packet->type, sub_packet->size, get_bits_count(gb) / 8);
1245 static void qdm2_fft_init_coefficient(QDM2Context *q, int sub_packet,
1252 q->fft_coefs[q->fft_coefs_index].sub_packet =
1253 ((sub_packet >= 16) ? (sub_packet - 16) : sub_packet);
1338 int sub_packet = (local_int_20 + local_int_28);
1343 qdm2_fft_init_coefficient(q, sub_packet, offset, duration,
1346 qdm2_fft_init_coefficient(q, sub_packet, offset, duration,
1474 static void qdm2_fft_tone_synthesizer(QDM2Context *q, int sub_packet)
1490 if (q->fft_coefs[i].sub_packet != sub_packet)
1517 if (q->fft_coefs[j].sub_packet != sub_packet)
1545 static void qdm2_calculate_fft(QDM2Context *q, int channel, int sub_packet)
1796 if (q->sub_packet == 0) {
1804 if (q->sub_packet == 2)
1807 qdm2_fft_tone_synthesizer(q, q->sub_packet);
1812 qdm2_calculate_fft(q, ch, q->sub_packet);
1822 qdm2_synthesis_filter(q, q->sub_packet);
1824 q->sub_packet = (q->sub_packet + 1) % 16;