/external/webrtc/modules/rtp_rtcp/source/ |
D | rtp_dependency_descriptor_reader.cc | 42 ReadBits(structure_->num_decode_targets); in RtpDependencyDescriptorReader() 48 uint32_t RtpDependencyDescriptorReader::ReadBits(size_t bit_count) { in ReadBits() function in webrtc::RtpDependencyDescriptorReader 50 if (!buffer_.ReadBits(&value, bit_count)) in ReadBits() 65 descriptor_->attached_structure->structure_id = ReadBits(6); in ReadTemplateDependencyStructure() 66 descriptor_->attached_structure->num_decode_targets = ReadBits(5) + 1; in ReadTemplateDependencyStructure() 73 uint32_t has_resolutions = ReadBits(1); in ReadTemplateDependencyStructure() 100 next_layer_idc = static_cast<NextLayerIdc>(ReadBits(2)); in ReadTemplateLayers() 127 static_cast<DecodeTargetIndication>(ReadBits(2)); in ReadTemplateDtis() 135 for (uint32_t fdiff_follows = ReadBits(1); fdiff_follows; in ReadTemplateFdiffs() 136 fdiff_follows = ReadBits(1)) { in ReadTemplateFdiffs() [all …]
|
D | video_rtp_depacketizer_vp9.cc | 43 RETURN_FALSE_ON_ERROR(parser->ReadBits(&m_bit, 1)); in ParsePictureId() 45 RETURN_FALSE_ON_ERROR(parser->ReadBits(&picture_id, 15)); in ParsePictureId() 48 RETURN_FALSE_ON_ERROR(parser->ReadBits(&picture_id, 7)); in ParsePictureId() 63 RETURN_FALSE_ON_ERROR(parser->ReadBits(&t, 3)); in ParseLayerInfoCommon() 64 RETURN_FALSE_ON_ERROR(parser->ReadBits(&u_bit, 1)); in ParseLayerInfoCommon() 65 RETURN_FALSE_ON_ERROR(parser->ReadBits(&s, 3)); in ParseLayerInfoCommon() 66 RETURN_FALSE_ON_ERROR(parser->ReadBits(&d_bit, 1)); in ParseLayerInfoCommon() 120 RETURN_FALSE_ON_ERROR(parser->ReadBits(&p_diff, 7)); in ParseRefIndices() 121 RETURN_FALSE_ON_ERROR(parser->ReadBits(&n_bit, 1)); in ParseRefIndices() 157 RETURN_FALSE_ON_ERROR(parser->ReadBits(&n_s, 3)); in ParseSsData() [all …]
|
D | rtp_dependency_descriptor_reader.h | 39 uint32_t ReadBits(size_t bit_count);
|
/external/webrtc/modules/video_coding/utility/ |
D | vp9_uncompressed_header_parser.cc | 31 RETURN_FALSE_IF_ERROR(br->ReadBits(&low_bit, 1)); in Vp9ReadProfile() 32 RETURN_FALSE_IF_ERROR(br->ReadBits(&high_bit, 1)); in Vp9ReadProfile() 36 RETURN_FALSE_IF_ERROR(br->ReadBits(&reserved_bit, 1)); in Vp9ReadProfile() 47 RETURN_FALSE_IF_ERROR(br->ReadBits(&sync_code, 24)); in Vp9ReadSyncCode() 62 RETURN_FALSE_IF_ERROR(br->ReadBits(&ten_or_twelve_bits, 1)); in Vp9ReadColorConfig() 67 RETURN_FALSE_IF_ERROR(br->ReadBits(&color_space, 3)); in Vp9ReadColorConfig() 73 RETURN_FALSE_IF_ERROR(br->ReadBits(&color_range, 1)); in Vp9ReadColorConfig() 80 RETURN_FALSE_IF_ERROR(br->ReadBits(&subsampling_x, 1)); in Vp9ReadColorConfig() 81 RETURN_FALSE_IF_ERROR(br->ReadBits(&subsampling_y, 1)); in Vp9ReadColorConfig() 91 RETURN_FALSE_IF_ERROR(br->ReadBits(&reserved_bit, 1)); in Vp9ReadColorConfig() [all …]
|
/external/webrtc/common_video/h264/ |
D | h264_bitstream_parser.cc | 77 RETURN_INV_ON_FAIL(slice_reader.ReadBits(&bits_tmp, 2)); in ParseNonParameterSetNalu() 82 slice_reader.ReadBits(&bits_tmp, sps_->log2_max_frame_num)); in ParseNonParameterSetNalu() 86 RETURN_INV_ON_FAIL(slice_reader.ReadBits(&field_pic_flag, 1)); in ParseNonParameterSetNalu() 89 RETURN_INV_ON_FAIL(slice_reader.ReadBits(&bits_tmp, 1)); in ParseNonParameterSetNalu() 100 slice_reader.ReadBits(&bits_tmp, sps_->log2_max_pic_order_cnt_lsb)); in ParseNonParameterSetNalu() 122 RETURN_INV_ON_FAIL(slice_reader.ReadBits(&bits_tmp, 1)); in ParseNonParameterSetNalu() 131 slice_reader.ReadBits(&num_ref_idx_active_override_flag, 1)); in ParseNonParameterSetNalu() 161 slice_reader.ReadBits(&ref_pic_list_modification_flag_l0, 1)); in ParseNonParameterSetNalu() 183 slice_reader.ReadBits(&ref_pic_list_modification_flag_l1, 1)); in ParseNonParameterSetNalu() 218 RETURN_INV_ON_FAIL(slice_reader.ReadBits(&bits_tmp, 2)); in ParseNonParameterSetNalu() [all …]
|
D | pps_parser.cc | 89 RETURN_EMPTY_ON_FAIL(bit_buffer->ReadBits(&entropy_coding_mode_flag, 1)); in ParseInternal() 94 bit_buffer->ReadBits(&bottom_field_pic_order_in_frame_present_flag, 1)); in ParseInternal() 130 RETURN_EMPTY_ON_FAIL(bit_buffer->ReadBits(&bits_tmp, 1)); in ParseInternal() 152 bit_buffer->ReadBits(&bits_tmp, slice_group_id_bits)); in ParseInternal() 162 RETURN_EMPTY_ON_FAIL(bit_buffer->ReadBits(&weighted_pred_flag, 1)); in ParseInternal() 165 RETURN_EMPTY_ON_FAIL(bit_buffer->ReadBits(&pps.weighted_bipred_idc, 2)); in ParseInternal() 181 RETURN_EMPTY_ON_FAIL(bit_buffer->ReadBits(&bits_tmp, 2)); in ParseInternal() 184 bit_buffer->ReadBits(&pps.redundant_pic_cnt_present_flag, 1)); in ParseInternal()
|
D | sps_parser.cc | 93 buffer->ReadBits(&sps.separate_colour_plane_flag, 1)); in ParseSpsUpToVui() 103 RETURN_EMPTY_ON_FAIL(buffer->ReadBits(&seq_scaling_matrix_present_flag, 1)); in ParseSpsUpToVui() 113 buffer->ReadBits(&seq_scaling_list_present_flags, 1)); in ParseSpsUpToVui() 162 buffer->ReadBits(&sps.delta_pic_order_always_zero_flag, 1)); in ParseSpsUpToVui() 194 RETURN_EMPTY_ON_FAIL(buffer->ReadBits(&sps.frame_mbs_only_flag, 1)); in ParseSpsUpToVui() 210 RETURN_EMPTY_ON_FAIL(buffer->ReadBits(&frame_cropping_flag, 1)); in ParseSpsUpToVui() 222 RETURN_EMPTY_ON_FAIL(buffer->ReadBits(&sps.vui_params_present, 1)); in ParseSpsUpToVui()
|
D | sps_vui_rewriter.cc | 70 RETURN_FALSE_ON_FAIL((src)->ReadBits(&tmp, bits)); \ 383 RETURN_FALSE_ON_FAIL(source->ReadBits(&bitstream_restriction_flag, 1)); in CopyAndRewriteVui() 525 RETURN_FALSE_ON_FAIL(source->ReadBits(&video_signal_type_present_flag, 1)); in CopyOrRewriteVideoSignalTypeInfo() 527 RETURN_FALSE_ON_FAIL(source->ReadBits(&video_format, 3)); in CopyOrRewriteVideoSignalTypeInfo() 528 RETURN_FALSE_ON_FAIL(source->ReadBits(&video_full_range_flag, 1)); in CopyOrRewriteVideoSignalTypeInfo() 529 RETURN_FALSE_ON_FAIL(source->ReadBits(&colour_description_present_flag, 1)); in CopyOrRewriteVideoSignalTypeInfo()
|
/external/puffin/src/ |
D | huffman_table.cc | 244 buffer[index++] = br->ReadBits(5); // HLIST in BuildDynamicHuffmanTable() 245 auto num_lit_len = br->ReadBits(5) + 257; in BuildDynamicHuffmanTable() 248 buffer[index++] = br->ReadBits(5); // HDIST in BuildDynamicHuffmanTable() 249 auto num_distance = br->ReadBits(5) + 1; in BuildDynamicHuffmanTable() 252 buffer[index++] = br->ReadBits(4); // HCLEN in BuildDynamicHuffmanTable() 253 auto num_codes = br->ReadBits(4) + 4; in BuildDynamicHuffmanTable() 265 code_lens_[kPermutations[idx]] = br->ReadBits(3); in BuildDynamicHuffmanTable() 267 buffer[index++] |= br->ReadBits(3); in BuildDynamicHuffmanTable() 269 buffer[index] = br->ReadBits(3) << 4; in BuildDynamicHuffmanTable() 323 auto bits = br->ReadBits(max_bits); in BuildHuffmanCodeLengths() [all …]
|
D | puffer.cc | 48 uint8_t final_bit = br->ReadBits(1); // BFINAL in PuffDeflate() 50 uint8_t type = br->ReadBits(2); // BTYPE in PuffDeflate() 74 auto len = br->ReadBits(16); // LEN in PuffDeflate() 76 auto nlen = br->ReadBits(16); // NLEN in PuffDeflate() 150 auto bits = br->ReadBits(max_bits); in PuffDeflate() 177 extra_bits_value = br->ReadBits(extra_bits_len); in PuffDeflate() 196 auto bits = br->ReadBits(bits_to_cache); in PuffDeflate() 208 extra_bits_value = br->ReadBits(extra_bits_len); in PuffDeflate()
|
D | bit_io_unittest.cc | 42 ASSERT_EQ(br.ReadBits(3), 0x05); in TEST() 44 ASSERT_EQ(br.ReadBits(8), 0xFF); in TEST() 56 ASSERT_EQ(br.ReadBits(4), 0x0A); in TEST()
|
D | bit_reader.h | 35 virtual uint32_t ReadBits(size_t nbits) = 0; 94 uint32_t ReadBits(size_t nbits) override;
|
D | bit_reader.cc | 25 uint32_t BufferBitReader::ReadBits(size_t nbits) { in ReadBits() function in puffin::BufferBitReader
|
/external/webrtc/rtc_base/ |
D | bit_buffer_unittest.cc | 116 TEST(BitBufferTest, ReadBits) { in TEST() argument 123 EXPECT_TRUE(buffer.ReadBits(&val, 3)); in TEST() 126 EXPECT_TRUE(buffer.ReadBits(&val, 2)); in TEST() 129 EXPECT_TRUE(buffer.ReadBits(&val, 7)); in TEST() 132 EXPECT_TRUE(buffer.ReadBits(&val, 2)); in TEST() 135 EXPECT_TRUE(buffer.ReadBits(&val, 1)); in TEST() 138 EXPECT_TRUE(buffer.ReadBits(&val, 1)); in TEST() 142 EXPECT_FALSE(buffer.ReadBits(&val, 1)); in TEST() 363 EXPECT_TRUE(buffer.ReadBits(&val, 3)); in TEST() 365 EXPECT_TRUE(buffer.ReadBits(&val, 2)); in TEST() [all …]
|
D | bit_buffer.cc | 88 if (!ReadBits(&bit_val, sizeof(uint8_t) * 8)) { in ReadUInt8() 98 if (!ReadBits(&bit_val, sizeof(uint16_t) * 8)) { in ReadUInt16() 107 return ReadBits(val, sizeof(uint32_t) * 8); in ReadUInt32() 144 bool BitBuffer::ReadBits(uint32_t* val, size_t bit_count) { in ReadBits() function in rtc::BitBuffer 174 if (!ReadBits(val, count_bits - 1)) { in ReadNonSymmetric() 183 if (!ReadBits(&extra_bit, /*bit_count=*/1)) { in ReadNonSymmetric() 215 if (value_bit_count > 32 || !ReadBits(val, value_bit_count)) { in ReadExponentialGolomb()
|
D | bit_buffer.h | 47 bool ReadBits(uint32_t* val, size_t bit_count);
|
/external/brotli/csharp/org/brotli/dec/ |
D | Decode.cs | 47 if (Org.Brotli.Dec.BitReader.ReadBits(br, 1) != 0) in DecodeVarLenUnsignedByte() 49 int n = Org.Brotli.Dec.BitReader.ReadBits(br, 3); in DecodeVarLenUnsignedByte() 56 return Org.Brotli.Dec.BitReader.ReadBits(br, n) + (1 << n); in DecodeVarLenUnsignedByte() 64 state.inputEnd = Org.Brotli.Dec.BitReader.ReadBits(br, 1) == 1; in DecodeMetaBlockLength() 68 if (state.inputEnd && Org.Brotli.Dec.BitReader.ReadBits(br, 1) != 0) in DecodeMetaBlockLength() 72 int sizeNibbles = Org.Brotli.Dec.BitReader.ReadBits(br, 2) + 4; in DecodeMetaBlockLength() 76 if (Org.Brotli.Dec.BitReader.ReadBits(br, 1) != 0) in DecodeMetaBlockLength() 80 int sizeBytes = Org.Brotli.Dec.BitReader.ReadBits(br, 2); in DecodeMetaBlockLength() 87 int bits = Org.Brotli.Dec.BitReader.ReadBits(br, 8); in DecodeMetaBlockLength() 99 int bits = Org.Brotli.Dec.BitReader.ReadBits(br, 4); in DecodeMetaBlockLength() [all …]
|
D | State.cs | 118 if (Org.Brotli.Dec.BitReader.ReadBits(br, 1) == 0) in DecodeWindowBits() 122 int n = Org.Brotli.Dec.BitReader.ReadBits(br, 3); in DecodeWindowBits() 127 n = Org.Brotli.Dec.BitReader.ReadBits(br, 3); in DecodeWindowBits()
|
D | BitReaderTest.cs | 20 Org.Brotli.Dec.BitReader.ReadBits(reader, 9); in TestReadAfterEos()
|
D | BitReader.cs | 125 internal static int ReadBits(Org.Brotli.Dec.BitReader br, int n) in ReadBits() method in Org.Brotli.Dec.BitReader 188 int paddingBits = Org.Brotli.Dec.BitReader.ReadBits(br, padding); in JumpToByteBoundary()
|
/external/webrtc/logging/rtc_event_log/encoder/ |
D | delta_encoding.cc | 696 reader.ReadBits(&encoding_type_bits, kBitsInHeaderForEncodingType); in IsSuitableDecoderFor() 732 reader->ReadBits(&encoding_type_bits, kBitsInHeaderForEncodingType); in Create() 745 if (!reader->ReadBits(&read_buffer, kBitsInHeaderForDeltaWidthBits)) { in Create() 762 if (!reader->ReadBits(&read_buffer, kBitsInHeaderForSignedDeltas)) { in Create() 768 if (!reader->ReadBits(&read_buffer, kBitsInHeaderForValuesOptional)) { in Create() 775 if (!reader->ReadBits(&read_buffer, kBitsInHeaderForValueWidthBits)) { in Create() 816 if (!reader_->ReadBits(&exists, 1u)) { in Decode() 880 if (!reader_->ReadBits(&higher_bits, higher_bit_count)) { in ParseDelta() 888 if (!reader_->ReadBits(&lower_bits, lower_bit_count)) { in ParseDelta()
|