Home | History | Annotate | Download | only in neteq

Lines Matching refs:payload

47 void CreateOpusFecPayload(uint8_t* payload, size_t payload_length,
52 payload[0] = 0x08;
53 payload[1] = 0x40;
54 memset(&payload[2], payload_value, payload_length - 2);
71 // Creates a RED packet, with |num_payloads| payloads, with payload types given
73 // |num_payloads|). Each redundant payload is |timestamp_offset| samples
74 // "behind" the the previous payload.
85 uint8_t* payload = new uint8_t[packet->payload_length];
86 uint8_t* payload_ptr = payload;
90 // Special case for last payload.
109 // Write |i| to all bytes in each payload.
118 packet->payload = payload;
122 // Create a packet with all payload bytes set to |payload_value|.
130 uint8_t* payload = new uint8_t[packet->payload_length];
131 packet->payload = payload;
133 CreateOpusFecPayload(packet->payload, packet->payload_length,
136 memset(payload, payload_value, payload_length);
154 ASSERT_FALSE(packet->payload == NULL);
156 EXPECT_EQ(payload_value, packet->payload[i]);
177 // Check first packet. The first in list should always be the primary payload.
181 delete [] packet->payload;
188 delete [] packet->payload;
197 // Create first packet, with a single RED payload.
201 // Create second packet, with a single RED payload.
214 delete [] packet->payload;
221 delete [] packet->payload;
229 // Payload type 0 1 2 0 1 2
254 delete [] packet->payload;
261 delete [] packet->payload;
268 delete [] packet->payload;
275 delete [] packet->payload;
282 delete [] packet->payload;
289 delete [] packet->payload;
293 // Creates a list with 4 packets with these payload types:
299 // is a non-CNG, non-DTMF payload of another type than the first speech payload
304 // Create packet with payload type |i|, payload length 10 bytes, all 0.
310 // easier to just register the payload types and let the actual implementation
322 // Verify packets. The loop verifies that payload types 0, 1, and 2 are in the
327 delete [] packet->payload;
340 // Manually tamper with the payload length of the packet.
341 // This is one byte too short for the second payload (out of three).
342 // We expect only the first payload to be returned.
354 delete [] packet->payload;
362 // Set up packets with different RTP payload types. The actual values do not
366 // Let the payload type be |i|, and the payload value 10 * |i|.
416 delete [] (*it)->payload;
425 // Test unknown payload type.
434 // This signals that the decoder database does not recognize the payload type.
447 delete [] (*it)->payload;
526 // The payload values are set to be the same as the payload_size, so that
567 delete [] (*it)->payload;
615 // Fill payload with increasing integers {0, 1, 2, ...}.
617 packet->payload[i] = static_cast<uint8_t>(i);
646 ASSERT_FALSE(packet->payload == NULL);
648 EXPECT_EQ(payload_value, packet->payload[i]);
651 delete [] (*it)->payload;
663 // The maximum is defined by the largest payload length that can be uniquely
680 // Test too large payload size.
703 delete [] (*it)->payload;
712 // Payload not an integer number of frames.
735 delete [] (*it)->payload;
754 packet = CreatePacket(0, 10, 0); // Non-FEC Opus payload.
757 packet = CreatePacket(1, 10, 0); // Non-Opus payload.
771 delete [] packet->payload;
781 delete [] packet->payload;
788 delete [] packet->payload;
795 delete [] packet->payload;
817 // Check first packet. FEC packet copied from primary payload in RED.
823 EXPECT_EQ(packet->payload[3], 1);
824 delete [] packet->payload;
828 // Check second packet. Normal packet copied from primary payload in RED.
834 EXPECT_EQ(packet->payload[3], 1);
835 delete [] packet->payload;
839 // Check third packet. FEC packet copied from secondary payload in RED.
845 EXPECT_EQ(packet->payload[3], 0);
846 delete [] packet->payload;
850 // Check fourth packet. Normal packet copied from primary payload in RED.
856 EXPECT_EQ(packet->payload[3], 0);
857 delete [] packet->payload;