Home
last modified time | relevance | path

Searched refs:packet_mask_size (Results 1 – 8 of 8) sorted by relevance

/external/webrtc/modules/rtp_rtcp/source/
Dulpfec_header_reader_writer_unittest.cc41 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 …]
Dulpfec_header_reader_writer.cc42 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 …]
Dflexfec_header_reader_writer_unittest.cc57 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 …]
Dflexfec_header_reader_writer.cc62 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 …]
Dflexfec_header_reader_writer.h74 size_t packet_mask_size) const override;
82 size_t packet_mask_size,
Dulpfec_header_reader_writer.h55 size_t packet_mask_size) const override;
63 size_t packet_mask_size,
Dforward_error_correction.h138 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,
Dforward_error_correction.cc434 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()