Lines Matching defs:packet

54 #define QDM2_LIST_ADD(list, size, packet) \
59 list[size].packet = packet; \
96 QDM2SubPacket *packet; ///< packet
97 struct QDM2SubPNode *next; ///< pointer to next packet in the list, NULL if leaf node
148 /// Packets and packet lists
192 int has_errors; ///< packet has errors
260 * Fill a QDM2SubPacket structure with packet type, size, and data pointer.
263 * @param sub_packet packet under analysis
294 * Return node pointer to first packet of requested type in list.
303 while (list && list->packet) {
304 if (list->packet->type == type)
530 * @param superblocktype_2_3 flag based on superblock packet type
656 * @param length packet length in bits
868 * from packet 10 (quantized_coeffs[ch][0]).
909 * Related to synthesis filter, process data from packet 10
912 * data from packet 10
978 * @param node pointer to node with packet
985 init_get_bits(&gb, node->packet->data, node->packet->size * 8);
1020 * @param node pointer to node with packet
1027 init_get_bits(&gb, node->packet->data, node->packet->size * 8);
1039 * @param node pointer to node with packet
1047 length = node->packet->size * 8;
1048 init_get_bits(&gb, node->packet->data, length);
1068 * @param node pointer to node with packet
1076 length = node->packet->size * 8;
1077 init_get_bits(&gb, node->packet->data, length);
1117 * Decode superblock, fill packet lists.
1124 QDM2SubPacket header, *packet;
1159 av_log(NULL, AV_LOG_ERROR, "bad packet checksum\n");
1164 q->sub_packet_list_B[0].packet = NULL;
1165 q->sub_packet_list_D[0].packet = NULL;
1175 SAMPLES_NEEDED_2("too many packet bytes");
1193 packet = &q->sub_packets[i];
1194 qdm2_decode_sub_packet_header(&gb, packet);
1195 next_index = packet->size + get_bits_count(&gb) / 8;
1196 sub_packet_size = ((packet->size > 0xff) ? 1 : 0) + packet->size + 2;
1198 if (packet->type == 0)
1202 if (packet->type != 10 && packet->type != 11 && packet->type != 12)
1204 packet->size += packet_bytes - sub_packet_size;
1210 q->sub_packet_list_A[i].packet = packet;
1213 if (packet->type == 8) {
1214 SAMPLES_NEEDED_2("packet type 8");
1216 } else if (packet->type >= 9 && packet->type <= 12) {
1218 QDM2_LIST_ADD(q->sub_packet_list_D, sub_packets_D, packet);
1219 } else if (packet->type == 13) {
1222 } else if (packet->type == 14) {
1225 } else if (packet->type == 15) {
1226 SAMPLES_NEEDED_2("packet type 15")
1228 } else if (packet->type >= 16 && packet->type < 48 &&
1229 !fft_subpackets[packet->type - 16]) {
1231 QDM2_LIST_ADD(q->sub_packet_list_B, q->sub_packets_B, packet);
1235 if (q->sub_packet_list_D[0].packet) {
1359 if (!q->sub_packet_list_B[0].packet)
1369 QDM2SubPacket *packet = NULL;
1373 value = q->sub_packet_list_B[j].packet->type;
1376 packet = q->sub_packet_list_B[j].packet;
1383 if (!packet)
1387 (packet->type < 16 || packet->type >= 48 ||
1388 fft_subpackets[packet->type - 16]))
1392 init_get_bits(&gb, packet->data, packet->size * 8);
1394 if (packet->type >= 32 && packet->type < 48 && !fft_subpackets[packet->type - 16])
1399 type = packet->type;
1641 32 packet size (=1300)
1814 if (!q->has_errors && q->sub_packet_list_C[0].packet) {