/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | h264_bitstream_parser.cc | 137 sps_parser.ReadBits(&sps_.separate_colour_plane_flag, 1)); in ParseSpsNalu() 144 RETURN_FALSE_ON_FAIL(sps_parser.ReadBits(&bits_tmp, 1)); in ParseSpsNalu() 148 sps_parser.ReadBits(&seq_scaling_matrix_present_flag, 1)); in ParseSpsNalu() 155 sps_parser.ReadBits(&seq_scaling_list_present_flags, 8)); in ParseSpsNalu() 158 sps_parser.ReadBits(&seq_scaling_list_present_flags, 12)); in ParseSpsNalu() 179 sps_parser.ReadBits(&sps_.delta_pic_order_always_zero_flag, 1)); in ParseSpsNalu() 196 RETURN_FALSE_ON_FAIL(sps_parser.ReadBits(&bits_tmp, 1)); in ParseSpsNalu() 202 RETURN_FALSE_ON_FAIL(sps_parser.ReadBits(&sps_.frame_mbs_only_flag, 1)); in ParseSpsNalu() 225 RETURN_FALSE_ON_FAIL(parser.ReadBits(&entropy_coding_mode_flag, 1)); in ParsePpsNalu() 232 parser.ReadBits(&bottom_field_pic_order_in_frame_present_flag, 1)); in ParsePpsNalu() [all …]
|
D | rtp_format_vp9.cc | 315 RETURN_FALSE_ON_ERROR(parser->ReadBits(&m_bit, 1)); in ParsePictureId() 317 RETURN_FALSE_ON_ERROR(parser->ReadBits(&picture_id, 15)); in ParsePictureId() 320 RETURN_FALSE_ON_ERROR(parser->ReadBits(&picture_id, 7)); in ParsePictureId() 335 RETURN_FALSE_ON_ERROR(parser->ReadBits(&t, 3)); in ParseLayerInfoCommon() 336 RETURN_FALSE_ON_ERROR(parser->ReadBits(&u_bit, 1)); in ParseLayerInfoCommon() 337 RETURN_FALSE_ON_ERROR(parser->ReadBits(&s, 3)); in ParseLayerInfoCommon() 338 RETURN_FALSE_ON_ERROR(parser->ReadBits(&d_bit, 1)); in ParseLayerInfoCommon() 390 RETURN_FALSE_ON_ERROR(parser->ReadBits(&p_diff, 7)); in ParseRefIndices() 391 RETURN_FALSE_ON_ERROR(parser->ReadBits(&n_bit, 1)); in ParseRefIndices() 427 RETURN_FALSE_ON_ERROR(parser->ReadBits(&n_s, 3)); in ParseSsData() [all …]
|
D | h264_sps_parser.cc | 98 RETURN_FALSE_ON_FAIL(parser.ReadBits(&separate_colour_plane_flag, 1)); in Parse() 108 RETURN_FALSE_ON_FAIL(parser.ReadBits(&seq_scaling_matrix_present_flag, 1)); in Parse() 115 parser.ReadBits(&seq_scaling_list_present_flags, 8)); in Parse() 118 parser.ReadBits(&seq_scaling_list_present_flags, 12)); in Parse() 172 RETURN_FALSE_ON_FAIL(parser.ReadBits(&frame_mbs_only_flag, 1)); in Parse() 188 RETURN_FALSE_ON_FAIL(parser.ReadBits(&frame_cropping_flag, 1)); in Parse()
|
/external/webrtc/webrtc/base/ |
D | bitbuffer_unittest.cc | 111 TEST(BitBufferTest, ReadBits) { in TEST() argument 118 EXPECT_TRUE(buffer.ReadBits(&val, 3)); in TEST() 121 EXPECT_TRUE(buffer.ReadBits(&val, 2)); in TEST() 124 EXPECT_TRUE(buffer.ReadBits(&val, 7)); in TEST() 127 EXPECT_TRUE(buffer.ReadBits(&val, 2)); in TEST() 130 EXPECT_TRUE(buffer.ReadBits(&val, 1)); in TEST() 133 EXPECT_TRUE(buffer.ReadBits(&val, 1)); in TEST() 137 EXPECT_FALSE(buffer.ReadBits(&val, 1)); in TEST() 263 EXPECT_TRUE(buffer.ReadBits(&val, 3)); in TEST() 265 EXPECT_TRUE(buffer.ReadBits(&val, 2)); in TEST() [all …]
|
D | bitbuffer.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() 140 bool BitBuffer::ReadBits(uint32_t* val, size_t bit_count) { in ReadBits() function in rtc::BitBuffer 182 if (value_bit_count > 32 || !ReadBits(val, value_bit_count)) { in ReadExponentialGolomb()
|
/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;
|
/external/swiftshader/third_party/SPIRV-Tools/test/ |
D | bit_stream.cpp | 127 size_t ReadBits(uint64_t* bits, size_t num_bits) override { in ReadBits() function in spvtools::comp::__anond93a91310111::BitReaderFromString 539 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST() 541 EXPECT_EQ(20u, reader.ReadBits(&bits, 20)); in TEST() 543 EXPECT_EQ(20u, reader.ReadBits(&bits, 20)); in TEST() 545 EXPECT_EQ(22u, reader.ReadBits(&bits, 30)); in TEST() 569 while (reader.ReadBits(&bits, to_read) > 0) { in TEST() 583 EXPECT_EQ(1u, reader.ReadBits(&bits, 1)); in TEST() 585 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST() 587 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST() 589 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST() [all …]
|
/external/deqp-deps/SPIRV-Tools/test/ |
D | bit_stream.cpp | 127 size_t ReadBits(uint64_t* bits, size_t num_bits) override { in ReadBits() function in spvtools::comp::__anonffc740370111::BitReaderFromString 539 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST() 541 EXPECT_EQ(20u, reader.ReadBits(&bits, 20)); in TEST() 543 EXPECT_EQ(20u, reader.ReadBits(&bits, 20)); in TEST() 545 EXPECT_EQ(22u, reader.ReadBits(&bits, 30)); in TEST() 569 while (reader.ReadBits(&bits, to_read) > 0) { in TEST() 583 EXPECT_EQ(1u, reader.ReadBits(&bits, 1)); in TEST() 585 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST() 587 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST() 589 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST() [all …]
|
/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/v4l2_codec2/vda/ |
D | bit_reader.h | 25 template<typename T> bool ReadBits(int num_bits, T* out) { in ReadBits() function 26 return bit_reader_core_.ReadBits(num_bits, out); in ReadBits()
|
D | vp9_raw_bits_reader.cc | 31 valid_ = reader_->ReadBits(1, &value); in ReadBool() 42 valid_ = reader_->ReadBits(bits, &value); in ReadLiteral()
|
D | bit_reader_core.h | 39 bool ReadBits(int num_bits, bool* out) { in ReadBits() function 57 template<typename T> bool ReadBits(int num_bits, T* out) { in ReadBits() function
|
D | vp9_bool_decoder.cc | 83 reader_->ReadBits(bits_to_read, &data); in Fill() 156 reader_->ReadBits(size_to_read, &data); in ConsumePaddingBits()
|
D | h264_bit_reader.h | 40 bool ReadBits(int num_bits, int* out);
|
D | bit_reader.cc | 29 if (!ReadBits(8, ptr++)) in ReadString()
|
/external/swiftshader/third_party/SPIRV-Tools/source/comp/ |
D | bit_stream.cpp | 124 if (reader->ReadBits(&bits, chunk_length) != chunk_length) return false; in ReadVariableWidthInternal() 130 if (reader->ReadBits(&more_to_come, 1) != 1) return false; in ReadVariableWidthInternal() 140 if (reader->ReadBits(&bits, left_to_read) != left_to_read) return false; in ReadVariableWidthInternal() 292 size_t BitReaderWord64::ReadBits(uint64_t* bits, size_t num_bits) { in ReadBits() function in spvtools::comp::BitReaderWord64
|
D | bit_stream.h | 191 virtual size_t ReadBits(uint64_t* bits, size_t num_bits) = 0; 198 const size_t num_read = ReadBits(&bits, sizeof(T) * 8); in ReadUnencoded() 248 size_t ReadBits(uint64_t* bits, size_t num_bits) override;
|
/external/deqp-deps/SPIRV-Tools/source/comp/ |
D | bit_stream.cpp | 124 if (reader->ReadBits(&bits, chunk_length) != chunk_length) return false; in ReadVariableWidthInternal() 130 if (reader->ReadBits(&more_to_come, 1) != 1) return false; in ReadVariableWidthInternal() 140 if (reader->ReadBits(&bits, left_to_read) != left_to_read) return false; in ReadVariableWidthInternal() 292 size_t BitReaderWord64::ReadBits(uint64_t* bits, size_t num_bits) { in ReadBits() function in spvtools::comp::BitReaderWord64
|
D | bit_stream.h | 191 virtual size_t ReadBits(uint64_t* bits, size_t num_bits) = 0; 198 const size_t num_read = ReadBits(&bits, sizeof(T) * 8); in ReadUnencoded() 248 size_t ReadBits(uint64_t* bits, size_t num_bits) override;
|