Searched refs:packet_mask_size (Results 1 – 8 of 8) sorted by relevance
/external/webrtc/modules/rtp_rtcp/source/ |
D | ulpfec_header_reader_writer_unittest.cc | 41 std::unique_ptr<uint8_t[]> GeneratePacketMask(size_t packet_mask_size, in GeneratePacketMask() argument 44 std::unique_ptr<uint8_t[]> packet_mask(new uint8_t[packet_mask_size]); in GeneratePacketMask() 45 for (size_t i = 0; i < packet_mask_size; ++i) { in GeneratePacketMask() 52 size_t packet_mask_size) { in WriteHeader() argument 60 packet_mask_size, written_packet.get()); in WriteHeader() 84 ASSERT_EQ(expected_packet_mask_size, read_packet.packet_mask_size); in VerifyHeaders() 89 read_packet.packet_mask_size)); in VerifyHeaders() 117 EXPECT_EQ(2U, read_packet.packet_mask_size); in TEST() 141 EXPECT_EQ(6U, read_packet.packet_mask_size); in TEST() 146 const size_t packet_mask_size = kUlpfecPacketMaskSizeLBitClear; in TEST() local [all …]
|
D | ulpfec_header_reader_writer.cc | 42 size_t UlpfecHeaderSize(size_t packet_mask_size) { in UlpfecHeaderSize() argument 43 RTC_DCHECK_LE(packet_mask_size, kUlpfecPacketMaskSizeLBitSet); in UlpfecHeaderSize() 44 if (packet_mask_size <= kUlpfecPacketMaskSizeLBitClear) { in UlpfecHeaderSize() 65 size_t packet_mask_size = in ReadFecHeader() local 67 fec_packet->fec_header_size = UlpfecHeaderSize(packet_mask_size); in ReadFecHeader() 72 fec_packet->packet_mask_size = packet_mask_size; in ReadFecHeader() 97 size_t packet_mask_size) const { in MinPacketMaskSize() 98 return packet_mask_size; in MinPacketMaskSize() 101 size_t UlpfecHeaderWriter::FecHeaderSize(size_t packet_mask_size) const { in FecHeaderSize() 102 return UlpfecHeaderSize(packet_mask_size); in FecHeaderSize() [all …]
|
D | flexfec_header_reader_writer_unittest.cc | 57 std::unique_ptr<uint8_t[]> GeneratePacketMask(size_t packet_mask_size, in GeneratePacketMask() argument 62 for (size_t i = 0; i < packet_mask_size; ++i) { in GeneratePacketMask() 77 size_t packet_mask_size) { in WriteHeader() argument 85 packet_mask_size, written_packet.get()); in WriteHeader() 110 EXPECT_EQ(expected_packet_mask_size, read_packet.packet_mask_size); in VerifyReadHeaders() 116 read_packet.packet_mask_size), in VerifyReadHeaders() 147 ASSERT_EQ(expected_packet_mask_size, read_packet.packet_mask_size); in VerifyWrittenAndReadHeaders() 153 read_packet.packet_mask_size), in VerifyWrittenAndReadHeaders() 264 const size_t packet_mask_size = kUlpfecPacketMaskSizeLBitClear; in TEST() local 265 auto packet_mask = GeneratePacketMask(packet_mask_size, 0xabcd); in TEST() [all …]
|
D | flexfec_header_reader_writer.cc | 62 size_t FlexfecHeaderSize(size_t packet_mask_size) { in FlexfecHeaderSize() argument 63 RTC_DCHECK_LE(packet_mask_size, kFlexfecPacketMaskSizes[2]); in FlexfecHeaderSize() 64 if (packet_mask_size <= kFlexfecPacketMaskSizes[0]) { in FlexfecHeaderSize() 66 } else if (packet_mask_size <= kFlexfecPacketMaskSizes[1]) { in FlexfecHeaderSize() 133 size_t packet_mask_size; in ReadFecHeader() local 138 packet_mask_size = kFlexfecPacketMaskSizes[0]; in ReadFecHeader() 158 packet_mask_size = kFlexfecPacketMaskSizes[1]; in ReadFecHeader() 169 packet_mask_size = kFlexfecPacketMaskSizes[2]; in ReadFecHeader() 192 fec_packet->fec_header_size = FlexfecHeaderSize(packet_mask_size); in ReadFecHeader() 196 fec_packet->packet_mask_size = packet_mask_size; in ReadFecHeader() [all …]
|
D | flexfec_header_reader_writer.h | 74 size_t packet_mask_size) const override; 82 size_t packet_mask_size,
|
D | ulpfec_header_reader_writer.h | 55 size_t packet_mask_size) const override; 63 size_t packet_mask_size,
|
D | forward_error_correction.h | 138 size_t packet_mask_size; variable 394 size_t packet_mask_size) const = 0; 397 virtual size_t FecHeaderSize(size_t packet_mask_size) const = 0; 404 size_t packet_mask_size,
|
D | forward_error_correction.cc | 434 if (fec_packet->packet_mask_offset + fec_packet->packet_mask_size > in InsertFecPacket() 441 for (uint16_t byte_idx = 0; byte_idx < fec_packet->packet_mask_size; in InsertFecPacket()
|