/external/webrtc/modules/rtp_rtcp/source/ |
D | rtp_dependency_descriptor_writer.cc | 77 WriteBits(/*val=*/0, remaining_bits % 64); in Write() 80 WriteBits(/*val=*/0, 64); in Write() 210 void RtpDependencyDescriptorWriter::WriteBits(uint64_t val, size_t bit_count) { in WriteBits() function in webrtc::RtpDependencyDescriptorWriter 211 if (!bit_writer_.WriteBits(val, bit_count)) in WriteBits() 228 WriteBits(structure_.structure_id, 6); in WriteTemplateDependencyStructure() 229 WriteBits(structure_.num_decode_targets - 1, 5); in WriteTemplateDependencyStructure() 235 WriteBits(has_resolutions, 1); in WriteTemplateDependencyStructure() 251 WriteBits(next_layer_idc, 2); in WriteTemplateLayers() 253 WriteBits(static_cast<uint64_t>(NextLayerIdc::kNoMoreLayers), 2); in WriteTemplateLayers() 262 WriteBits(static_cast<uint32_t>(dti), 2); in WriteTemplateDtis() [all …]
|
D | rtp_format_vp9.cc | 161 RETURN_FALSE_ON_ERROR(writer->WriteBits(m_bit ? 1 : 0, 1)); in WritePictureId() 162 RETURN_FALSE_ON_ERROR(writer->WriteBits(vp9.picture_id, m_bit ? 15 : 7)); in WritePictureId() 176 RETURN_FALSE_ON_ERROR(writer->WriteBits(TemporalIdxField(vp9, 0), 3)); in WriteLayerInfoCommon() 177 RETURN_FALSE_ON_ERROR(writer->WriteBits(vp9.temporal_up_switch ? 1 : 0, 1)); in WriteLayerInfoCommon() 178 RETURN_FALSE_ON_ERROR(writer->WriteBits(SpatialIdxField(vp9, 0), 3)); in WriteLayerInfoCommon() 180 writer->WriteBits(vp9.inter_layer_predicted ? 1 : 0, 1)); in WriteLayerInfoCommon() 224 RETURN_FALSE_ON_ERROR(writer->WriteBits(vp9.pid_diff[i], 7)); in WriteRefIndices() 225 RETURN_FALSE_ON_ERROR(writer->WriteBits(n_bit ? 1 : 0, 1)); in WriteRefIndices() 256 RETURN_FALSE_ON_ERROR(writer->WriteBits(vp9.num_spatial_layers - 1, 3)); in WriteSsData() 258 writer->WriteBits(vp9.spatial_layer_resolution_present ? 1 : 0, 1)); in WriteSsData() [all …]
|
D | rtp_dependency_descriptor_writer.h | 59 void WriteBits(uint64_t val, size_t bit_count);
|
/external/puffin/src/ |
D | huffer.cc | 45 TEST_AND_RETURN_FALSE(bw->WriteBits(1, final_bit)); in HuffDeflate() 46 TEST_AND_RETURN_FALSE(bw->WriteBits(2, type)); in HuffDeflate() 54 TEST_AND_RETURN_FALSE(bw->WriteBits(16, pd.length)); in HuffDeflate() 55 TEST_AND_RETURN_FALSE(bw->WriteBits(16, ~pd.length)); in HuffDeflate() 61 TEST_AND_RETURN_FALSE(bw->WriteBits(16, 0)); in HuffDeflate() 62 TEST_AND_RETURN_FALSE(bw->WriteBits(16, ~0)); in HuffDeflate() 100 TEST_AND_RETURN_FALSE(bw->WriteBits(nbits, literal_huffman)); in HuffDeflate() 136 TEST_AND_RETURN_FALSE(bw->WriteBits(nbits, length_huffman)); in HuffDeflate() 140 bw->WriteBits(extra_bits_len, len - kLengthBases[index])); in HuffDeflate() 156 TEST_AND_RETURN_FALSE(bw->WriteBits(nbits, distance_huffman)); in HuffDeflate() [all …]
|
D | bit_io_unittest.cc | 22 ASSERT_TRUE(bw.WriteBits(0, 0x05)); in TEST() 23 ASSERT_TRUE(bw.WriteBits(3, 0x05)); in TEST() 24 ASSERT_TRUE(bw.WriteBits(8, 0xFF)); in TEST() 34 ASSERT_FALSE(bw.WriteBits(9, 0x1C)); in TEST() 35 ASSERT_TRUE(bw.WriteBits(4, 0x0A)); in TEST()
|
D | huffman_table.cc | 401 TEST_AND_RETURN_FALSE(bw->WriteBits(5, buffer[index++])); in BuildDynamicHuffmanTable() 404 TEST_AND_RETURN_FALSE(bw->WriteBits(5, buffer[index++])); in BuildDynamicHuffmanTable() 407 TEST_AND_RETURN_FALSE(bw->WriteBits(4, buffer[index++])); in BuildDynamicHuffmanTable() 424 TEST_AND_RETURN_FALSE(bw->WriteBits(3, len)); in BuildDynamicHuffmanTable() 480 TEST_AND_RETURN_FALSE(bw->WriteBits(nbits, hcode)); in BuildHuffmanCodeLengths() 491 TEST_AND_RETURN_FALSE(bw->WriteBits(2, pcode - 16)); in BuildHuffmanCodeLengths() 497 TEST_AND_RETURN_FALSE(bw->WriteBits(3, pcode - 20)); in BuildHuffmanCodeLengths() 503 TEST_AND_RETURN_FALSE(bw->WriteBits(7, pcode - 28)); in BuildHuffmanCodeLengths()
|
D | bit_writer.cc | 13 bool BufferBitWriter::WriteBits(size_t nbits, uint32_t bits) { in WriteBits() function in puffin::BufferBitWriter 46 return WriteBits((8 - (out_holder_bits_ & 7)) & 7, bits); in WriteBoundaryBits()
|
D | bit_writer.h | 27 virtual bool WriteBits(size_t nbits, uint32_t bits) = 0; 78 bool WriteBits(size_t nbits, uint32_t bits) override;
|
D | puffin_stream.cc | 382 bit_writer.WriteBits(cur_deflate_->offset & 7, last_byte_)); in Write()
|
/external/webrtc/common_video/h264/ |
D | pps_parser_unittest.cc | 46 bit_buffer.WriteBits(pps.entropy_coding_mode_flag, 1); in WritePps() 48 bit_buffer.WriteBits(pps.bottom_field_pic_order_in_frame_present_flag ? 1 : 0, in WritePps() 76 bit_buffer.WriteBits(kIgnored, 1); in WritePps() 97 bit_buffer.WriteBits(kIgnored, slice_group_id_bits); in WritePps() 111 bit_buffer.WriteBits(pps.weighted_pred_flag ? 1 : 0, 1); in WritePps() 113 bit_buffer.WriteBits(pps.weighted_bipred_idc, 2); in WritePps() 123 bit_buffer.WriteBits(kIgnored, 2); in WritePps() 125 bit_buffer.WriteBits(pps.redundant_pic_cnt_present_flag, 1); in WritePps() 131 bit_buffer.WriteBits(0, 8 - bit_offset); in WritePps()
|
D | sps_vui_rewriter_unittest.cc | 219 writer.WriteBits(0, 1); in GenerateFakeSps() 230 writer.WriteBits(0, 1); in GenerateFakeSps() 232 writer.WriteBits(0, 1); in GenerateFakeSps() 234 writer.WriteBits(0, 1); in GenerateFakeSps() 236 writer.WriteBits(1, 1); in GenerateFakeSps() 249 writer.WriteBits(vui.vui_parameters_present_flag, 1); in GenerateFakeSps() 252 writer.WriteBits(0, 2); in GenerateFakeSps() 254 writer.WriteBits(vui.video_signal_type_present_flag, 1); in GenerateFakeSps() 257 writer.WriteBits(5, 3); in GenerateFakeSps() 258 writer.WriteBits(vui.video_full_range_flag, 1); in GenerateFakeSps() [all …]
|
D | sps_vui_rewriter.cc | 72 RETURN_FALSE_ON_FAIL((dest)->WriteBits(tmp, bits)); \ 184 sps_writer.WriteBits(0, 8 - bit_offset); in ParseAndRewriteSps() 295 RETURN_FALSE_ON_FAIL(destination->WriteBits(1, 1)); in CopyAndRewriteVui() 304 RETURN_FALSE_ON_FAIL(destination->WriteBits(0, 2)); in CopyAndRewriteVui() 309 destination->WriteBits(video_signal_type_present_flag, 1)); in CopyAndRewriteVui() 316 RETURN_FALSE_ON_FAIL(destination->WriteBits(0, 5)); in CopyAndRewriteVui() 318 RETURN_FALSE_ON_FAIL(destination->WriteBits(1, 1)); in CopyAndRewriteVui() 384 RETURN_FALSE_ON_FAIL(destination->WriteBits(1, 1)); in CopyAndRewriteVui() 463 RETURN_FALSE_ON_FAIL(destination->WriteBits(1, 1)); in AddBitstreamRestriction() 494 RETURN_FALSE_ON_FAIL(destination->WriteBits(5, 3)); // 5 = Unspecified in AddVideoSignalTypeInfo() [all …]
|
D | sps_parser_unittest.cc | 71 writer.WriteBits(0, 1); in GenerateFakeSps() 82 writer.WriteBits(0, 1); in GenerateFakeSps() 84 writer.WriteBits(0, 1); in GenerateFakeSps() 86 writer.WriteBits(0, 1); in GenerateFakeSps() 88 writer.WriteBits(1, 1); in GenerateFakeSps() 100 writer.WriteBits(0, 1); in GenerateFakeSps()
|
/external/webrtc/rtc_base/ |
D | bit_buffer_unittest.cc | 352 EXPECT_TRUE(buffer.WriteBits(0x2u, 3)); in TEST() 353 EXPECT_TRUE(buffer.WriteBits(0x1u, 2)); in TEST() 354 EXPECT_TRUE(buffer.WriteBits(0x53u, 7)); in TEST() 355 EXPECT_TRUE(buffer.WriteBits(0x0u, 2)); in TEST() 356 EXPECT_TRUE(buffer.WriteBits(0x1u, 1)); in TEST() 357 EXPECT_TRUE(buffer.WriteBits(0x1ABCDu, 17)); in TEST() 359 EXPECT_FALSE(buffer.WriteBits(1, 1)); in TEST() 421 EXPECT_TRUE(buffer.WriteBits(0, 1)); in TEST() 423 EXPECT_TRUE(buffer.WriteBits(0, 3)); in TEST() 425 EXPECT_TRUE(buffer.WriteBits(0, 2)); in TEST()
|
D | bit_buffer.cc | 258 return WriteBits(val, sizeof(uint8_t) * 8); in WriteUInt8() 262 return WriteBits(val, sizeof(uint16_t) * 8); in WriteUInt16() 266 return WriteBits(val, sizeof(uint32_t) * 8); in WriteUInt32() 269 bool BitBufferWriter::WriteBits(uint64_t val, size_t bit_count) { in WriteBits() function in rtc::BitBufferWriter 326 ? WriteBits(val, count_bits - 1) in WriteNonSymmetric() 327 : WriteBits(val + num_min_bits_values, count_bits); in WriteNonSymmetric() 351 return WriteBits(val_to_encode, CountBits(val_to_encode) * 2 - 1); in WriteExponentialGolomb()
|
D | bit_buffer.h | 119 bool WriteBits(uint64_t val, size_t bit_count);
|
/external/webrtc/logging/rtc_event_log/encoder/ |
D | delta_encoding.cc | 121 void WriteBits(uint64_t val, size_t bit_count) { in WriteBits() function in webrtc::__anon7a50db710111::BitWriter 123 const bool success = bit_writer_.WriteBits(val, bit_count); in WriteBits() 128 void WriteBits(const std::string& input) { in WriteBits() function in webrtc::__anon7a50db710111::BitWriter 131 WriteBits(c, 8 * sizeof(std::string::value_type)); in WriteBits() 459 writer_->WriteBits(value.has_value() ? 1u : 0u, 1); in Encode() 474 writer_->WriteBits(EncodeVarInt(value.value())); in Encode() 538 writer_->WriteBits(static_cast<uint64_t>(encoding_type), in EncodeHeader() 544 writer_->WriteBits(params_.delta_width_bits() - 1, in EncodeHeader() 551 writer_->WriteBits(static_cast<uint64_t>(params_.signed_deltas()), in EncodeHeader() 553 writer_->WriteBits(static_cast<uint64_t>(params_.values_optional()), in EncodeHeader() [all …]
|