Lines Matching defs:sub_packet
118 int16_t sub_packet;
200 int sub_packet;
393 * @param sub_packet packet under analysis
395 static void qdm2_decode_sub_packet_header (GetBitContext *gb, QDM2SubPacket *sub_packet)
397 sub_packet->type = get_bits (gb, 8);
399 if (sub_packet->type == 0) {
400 sub_packet->size = 0;
401 sub_packet->data = NULL;
403 sub_packet->size = get_bits (gb, 8);
405 if (sub_packet->type & 0x80) {
406 sub_packet->size <<= 8;
407 sub_packet->size |= get_bits (gb, 8);
408 sub_packet->type &= 0x7f;
411 if (sub_packet->type == 0x7f)
412 sub_packet->type |= (get_bits (gb, 8) << 8);
414 sub_packet->data = &gb->buffer[get_bits_count(gb) / 8]; // FIXME: this depends on bitreader internal data
418 sub_packet->type, sub_packet->size, get_bits_count(gb) / 8);
1312 static void qdm2_fft_init_coefficient (QDM2Context *q, int sub_packet,
1319 q->fft_coefs[q->fft_coefs_index].sub_packet = ((sub_packet >= 16) ? (sub_packet - 16) : sub_packet);
1395 int sub_packet = (local_int_20 + local_int_28);
1397 qdm2_fft_init_coefficient(q, sub_packet, offset, duration, channel, exp, phase);
1399 qdm2_fft_init_coefficient(q, sub_packet, offset, duration, (1 - channel), stereo_exp, stereo_phase);
1525 static void qdm2_fft_tone_synthesizer (QDM2Context *q, int sub_packet)
1541 if (q->fft_coefs[i].sub_packet != sub_packet)
1568 if (q->fft_coefs[j].sub_packet != sub_packet)
1597 static void qdm2_calculate_fft (QDM2Context *q, int channel, int sub_packet)
1687 PRINT("sub_packet",q->sub_packet);
1930 if (q->sub_packet == 0) {
1938 if (q->sub_packet == 2)
1941 qdm2_fft_tone_synthesizer(q, q->sub_packet);
1946 qdm2_calculate_fft(q, ch, q->sub_packet);
1956 qdm2_synthesis_filter(q, q->sub_packet);
1958 q->sub_packet = (q->sub_packet + 1) % 16;