Home
last modified time | relevance | path

Searched refs:reader_ (Results 1 – 25 of 44) sorted by relevance

12

/external/v4l2_codec2/vda/
Dvp9_uncompressed_header_parser.cc628 if (reader_.ReadBool()) in ReadProfile()
630 if (reader_.ReadBool()) in ReadProfile()
632 if (profile > 2 && reader_.ReadBool()) in ReadProfile()
640 if (reader_.ReadLiteral(8 * 3) != kSyncCode) { in VerifySyncCode()
650 fhdr->bit_depth = reader_.ReadBool() ? 12 : 10; in ReadColorConfig()
655 fhdr->color_space = static_cast<Vp9ColorSpace>(reader_.ReadLiteral(3)); in ReadColorConfig()
657 fhdr->color_range = reader_.ReadBool(); in ReadColorConfig()
659 fhdr->subsampling_x = reader_.ReadBool() ? 1 : 0; in ReadColorConfig()
660 fhdr->subsampling_y = reader_.ReadBool() ? 1 : 0; in ReadColorConfig()
665 bool reserved = reader_.ReadBool(); in ReadColorConfig()
[all …]
Dvp9_compressed_header_parser.cc71 tx_mode = reader_.ReadLiteral(2); in ReadTxMode()
73 tx_mode += reader_.ReadLiteral(1); in ReadTxMode()
81 if (reader_.ReadLiteral(1) == 0) in DecodeTermSubexp()
82 return reader_.ReadLiteral(4); in DecodeTermSubexp()
83 if (reader_.ReadLiteral(1) == 0) in DecodeTermSubexp()
84 return reader_.ReadLiteral(4) + 16; in DecodeTermSubexp()
85 if (reader_.ReadLiteral(1) == 0) in DecodeTermSubexp()
86 return reader_.ReadLiteral(5) + 32; in DecodeTermSubexp()
87 uint8_t v = reader_.ReadLiteral(7); in DecodeTermSubexp()
90 return (v << 1) - 1 + reader_.ReadLiteral(1); in DecodeTermSubexp()
[all …]
Dvp9_raw_bits_reader.cc21 reader_.reset(new BitReader(data, size)); in Initialize()
26 DCHECK(reader_); in ReadBool()
31 valid_ = reader_->ReadBits(1, &value); in ReadBool()
36 DCHECK(reader_); in ReadLiteral()
42 valid_ = reader_->ReadBits(bits, &value); in ReadLiteral()
52 DCHECK(reader_); in GetBytesRead()
53 return (reader_->bits_read() + 7) / 8; in GetBytesRead()
57 DCHECK(reader_); in ConsumeTrailingBits()
58 int bits_left = GetBytesRead() * 8 - reader_->bits_read(); in ConsumeTrailingBits()
Dvp9_bool_decoder.cc52 reader_.reset(new BitReader(data, size)); in Initialize()
71 int bits_left = reader_->bits_available(); in Fill()
83 reader_->ReadBits(bits_to_read, &data); in Fill()
92 DCHECK(reader_); in ReadBool()
128 DCHECK(reader_); in ReadLiteral()
138 DCHECK(reader_); in ConsumePaddingBits()
140 if (count_to_fill_ > reader_->bits_available()) { in ConsumePaddingBits()
152 while (reader_->bits_available() > 0) { in ConsumePaddingBits()
155 std::min(reader_->bits_available(), static_cast<int>(sizeof(data) * 8)); in ConsumePaddingBits()
156 reader_->ReadBits(size_to_read, &data); in ConsumePaddingBits()
/external/webrtc/webrtc/test/testsupport/
Dpacket_reader_unittest.cc24 reader_ = new PacketReader(); in SetUp()
27 delete reader_; in TearDown()
38 PacketReader* reader_; member in webrtc::test::PacketReaderTest
44 EXPECT_EQ(-1, reader_->NextPacket(&data_pointer)); in TEST_F()
49 reader_->InitializeReading(packet_data_, 0, kPacketSizeInBytes); in TEST_F()
50 ASSERT_EQ(0, reader_->NextPacket(&packet_data_pointer_)); in TEST_F()
60 reader_->InitializeReading(data, kDataLengthInBytes, kPacketSizeInBytes); in TEST_F()
61 int length_to_read = reader_->NextPacket(&data_pointer); in TEST_F()
66 length_to_read = reader_->NextPacket(&data_pointer); in TEST_F()
77 reader_->InitializeReading(data, kPacketSizeInBytes, kPacketSizeInBytes); in TEST_F()
[all …]
/external/google-breakpad/src/common/dwarf/
Ddwarf2reader.cc56 : offset_from_section_start_(offset), reader_(reader), in CompilationUnit()
96 const uint64 number = reader_->ReadUnsignedLEB128(abbrevptr, &len); in ReadAbbrevs()
104 const uint64 tag = reader_->ReadUnsignedLEB128(abbrevptr, &len); in ReadAbbrevs()
109 abbrev.has_children = reader_->ReadOneByte(abbrevptr); in ReadAbbrevs()
115 const uint64 nametemp = reader_->ReadUnsignedLEB128(abbrevptr, &len); in ReadAbbrevs()
119 const uint64 formtemp = reader_->ReadUnsignedLEB128(abbrevptr, &len); in ReadAbbrevs()
152 form = static_cast<enum DwarfForm>(reader_->ReadUnsignedLEB128(start, in SkipAttribute()
177 reader_->ReadUnsignedLEB128(start, &len); in SkipAttribute()
181 reader_->ReadSignedLEB128(start, &len); in SkipAttribute()
184 return start + reader_->AddressSize(); in SkipAttribute()
[all …]
Ddwarf2reader.h131 ByteReader* reader_; variable
305 ByteReader* reader_; variable
644 reader_(reader), handler_(handler), reporter_(reporter), in buffer_()
797 ByteReader *reader_; variable
Dfunctioninfo.h124 reader_(reader), current_function_info_(NULL) { } in CUFunctionInfoHandler()
182 ByteReader* reader_; variable
/external/tensorflow/tensorflow/c/
Dcheckpoint_reader.cc34 : reader_(nullptr), in CheckpointReader()
53 reader_.reset(new TensorSliceReader(filename)); in CheckpointReader()
54 if (!reader_->status().ok()) { in CheckpointReader()
55 Set_TF_Status_from_Status(out_status, reader_->status()); in CheckpointReader()
59 new TensorSliceReader::VarToShapeMap(reader_->GetVariableToShapeMap())); in CheckpointReader()
61 reader_->GetVariableToDataTypeMap())); in CheckpointReader()
66 if (reader_ != nullptr) { in HasTensor()
67 return reader_->HasTensor(name, nullptr, nullptr); in HasTensor()
85 if (reader_ != nullptr) return reader_->DebugString(); in DebugString()
93 if (reader_ != nullptr) { in GetTensor()
[all …]
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dbwe_test_baselinefile.cc45 : reader_(), in BaseLineFileVerify()
58 reader_.swap(reader); in BaseLineFileVerify()
68 if (reader_.get()) { in Estimate()
71 if (reader_->Read(&read_ms) && read_ms == time_ms && in Estimate()
72 reader_->Read(&read_bps) && read_bps == estimate_bps) { in Estimate()
76 reader_.reset(NULL); in Estimate()
82 if (reader_.get()) { in VerifyOrWrite()
83 if (reader_->IsAtEnd()) { in VerifyOrWrite()
94 rtc::scoped_ptr<ResourceFileReader> reader_; member in webrtc::testing::bwe::BaseLineFileVerify
/external/tensorflow/tensorflow/python/lib/io/
Dpy_record_reader.cc52 reader->reader_ = new RecordReader(reader->file_, options); in New()
57 delete reader_; in ~PyRecordReader()
62 if (reader_ == nullptr) { in GetNext()
67 Status s = reader_->ReadRecord(&offset_, &record_); in GetNext()
72 delete reader_; in Close()
75 reader_ = nullptr; in Close()
/external/tensorflow/tensorflow/core/platform/
Dtensor_coding.cc101 explicit StringListDecoderImpl(const string& in) : reader_(in) {} in StringListDecoderImpl()
107 if (!core::GetVarint32(&reader_, &size)) return false; in ReadSizes()
110 if (total != static_cast<int64>(reader_.size())) { in ReadSizes()
117 const char* data = reader_.data(); in Data()
118 reader_.remove_prefix(size); in Data()
123 StringPiece reader_; member in tensorflow::port::StringListDecoderImpl
208 explicit CordStringListDecoderImpl(const Cord& in) : reader_(in) {} in CordStringListDecoderImpl()
214 if (!::strings::CordReaderReadVarint(&reader_, &size)) return false; in ReadSizes()
217 if (total != static_cast<int64>(reader_.Available())) { in ReadSizes()
225 reader_.ReadN(size, tmp_.data()); in Data()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/comp/
Dmarkv_decoder.cpp50 if (!reader_.ReadVariableWidthU32(word, chunk_length)) in DecodeNonIdWord()
54 if (!reader_.ReadUnencoded(word)) in DecodeNonIdWord()
118 if (!reader_.ReadVariableWidthU32(rank, model_->mtf_rank_chunk_length())) in DecodeMtfRankHuffman()
154 if (!reader_.ReadBits(&decoded_value, MarkvCodec::kShortDescriptorNumBits)) in DecodeIdWithDescriptor()
226 if (!reader_.ReadVariableWidthU32(&rank, model_->mtf_rank_chunk_length())) in DecodeRefId()
282 if (!reader_.ReadBits(&id_was_forward_declared, 1)) in DecodeResultId()
287 if (!reader_.ReadVariableWidthU32(&rank, model_->mtf_rank_chunk_length())) in DecodeResultId()
333 if (!reader_.ReadVariableWidthU64(&word, model_->u64_chunk_length())) in DecodeLiteralNumber()
337 if (!reader_.ReadVariableWidthS64(&val, model_->s64_chunk_length(), in DecodeLiteralNumber()
342 if (!reader_.ReadUnencoded(&word)) in DecodeLiteralNumber()
[all …]
Dmarkv_decoder.h38 reader_(markv) { in MarkvDecoder()
74 const bool result = reader_.ReadBits(&bits, 1); in ReadBit()
155 BitReaderWord64 reader_; variable
/external/deqp-deps/SPIRV-Tools/source/comp/
Dmarkv_decoder.cpp50 if (!reader_.ReadVariableWidthU32(word, chunk_length)) in DecodeNonIdWord()
54 if (!reader_.ReadUnencoded(word)) in DecodeNonIdWord()
118 if (!reader_.ReadVariableWidthU32(rank, model_->mtf_rank_chunk_length())) in DecodeMtfRankHuffman()
154 if (!reader_.ReadBits(&decoded_value, MarkvCodec::kShortDescriptorNumBits)) in DecodeIdWithDescriptor()
226 if (!reader_.ReadVariableWidthU32(&rank, model_->mtf_rank_chunk_length())) in DecodeRefId()
282 if (!reader_.ReadBits(&id_was_forward_declared, 1)) in DecodeResultId()
287 if (!reader_.ReadVariableWidthU32(&rank, model_->mtf_rank_chunk_length())) in DecodeResultId()
333 if (!reader_.ReadVariableWidthU64(&word, model_->u64_chunk_length())) in DecodeLiteralNumber()
337 if (!reader_.ReadVariableWidthS64(&val, model_->s64_chunk_length(), in DecodeLiteralNumber()
342 if (!reader_.ReadUnencoded(&word)) in DecodeLiteralNumber()
[all …]
Dmarkv_decoder.h38 reader_(markv) { in MarkvDecoder()
74 const bool result = reader_.ReadBits(&bits, 1); in ReadBit()
155 BitReaderWord64 reader_; variable
/external/grpc-grpc/include/grpcpp/impl/codegen/
Dproto_buffer_reader.h56 &reader_, buffer->c_buffer())) { in ProtoBufferReader()
64 g_core_codegen_interface->grpc_byte_buffer_reader_destroy(&reader_); in ~ProtoBufferReader()
84 if (!g_core_codegen_interface->grpc_byte_buffer_reader_next(&reader_, in Next()
137 grpc_byte_buffer_reader* reader() { return &reader_; } in reader()
143 grpc_byte_buffer_reader reader_; ///< internal object to read \a grpc_slice variable
/external/tensorflow/tensorflow/core/kernels/
Dtf_record_reader_op.cc43 reader_.reset(new io::RecordReader(file_.get(), options)); in OnWorkStartedLocked()
48 reader_.reset(nullptr); in OnWorkFinishedLocked()
56 Status status = reader_->ReadRecord(&offset_, value); in ReadLocked()
68 reader_.reset(nullptr); in ResetLocked()
79 std::unique_ptr<io::RecordReader> reader_; member in tensorflow::TFRecordReader
/external/tensorflow/tensorflow/contrib/bigtable/kernels/
Dbigtable_lib.h99 if (iterator_ == reader_->end()) { in GetNextInternal()
123 if (reader_) { in EnsureIteratorInitialized()
132 reader_.reset(new ::google::cloud::bigtable::RowReader( in EnsureIteratorInitialized()
134 iterator_ = reader_->begin(); in EnsureIteratorInitialized()
139 std::unique_ptr<::google::cloud::bigtable::RowReader> reader_ GUARDED_BY(mu_);
/external/perf_data_converter/src/quipper/
Dperf_parser.cc57 PerfParser::PerfParser(PerfReader* reader) : reader_(reader) {} in PerfParser()
62 : reader_(reader), options_(options) {} in PerfParser()
66 reader_->MaybeSortEventsByTime(); in ParseRawEvents()
74 DeduceHugePages(reader_->mutable_events()); in ParseRawEvents()
81 CombineMappings(reader_->mutable_events()); in ParseRawEvents()
91 parsed_events_.resize(reader_->events().size()); in ParseRawEvents()
93 for (int i = 0; i < reader_->events().size(); ++i) { in ParseRawEvents()
94 if (reader_->events().Get(i).header().type() == PERF_RECORD_FINISHED_ROUND) in ParseRawEvents()
97 reader_->mutable_events()->Mutable(i); in ParseRawEvents()
376 reader_->GetFilenamesToBuildIDs(&filenames_to_build_ids); in FillInDsoBuildIds()
[all …]
/external/pdfium/core/fxcrt/xml/
Dcfx_saxreader_unittest.cpp50 reader_.SetHandler(handler); in SetHandler()
54 return reader_.StartParse( in StartParse()
64 ret = reader_.ContinueParse(); in ContinueParse()
70 CFX_SAXReader reader_; member in CFX_SAXReaderTest
/external/tensorflow/tensorflow/contrib/hadoop/kernels/
Dhadoop_dataset_ops.cc258 if (reader_) { in GetNextInternal()
260 Status status = reader_->ReadRecord(&key, &value); in GetNextInternal()
315 reader_.reset(new SequenceFileReader(file_.get())); in SetupStreamsLocked()
316 return reader_->ReadHeader(); in SetupStreamsLocked()
321 reader_.reset(); in ResetStreamsLocked()
328 std::unique_ptr<SequenceFileReader> reader_ GUARDED_BY(mu_);
/external/tensorflow/tensorflow/core/lib/io/
Drecordio_test.cc112 RecordReader* reader_; member in tensorflow::io::__anon3461d06d0111::RecordioTest
121 reader_(new RecordReader(&source_)) {} in RecordioTest()
125 delete reader_; in ~RecordioTest()
140 Status s = reader_->ReadRecord(&readpos_, &record); in Read()
174 Status s = reader_->ReadRecord(&offset, &record); in CheckOffsetPastEndReturnsNoRecords()
/external/tensorflow/tensorflow/core/kernels/data/
Dcache_dataset_ops.cc444 reader_(dataset()->env_, dataset()->filename_), in FileReaderIterator()
452 TF_RETURN_IF_ERROR(reader_.status()); in GetNextInternal()
453 if (!reader_.Valid()) { in GetNextInternal()
467 reader_ in GetNextInternal()
472 if (!reader_.Valid()) { in GetNextInternal()
477 StringPiece key = reader_.key(); in GetNextInternal()
479 TF_RETURN_IF_ERROR(reader_.ReadCurrent(&(*out_tensors)[i])); in GetNextInternal()
480 TF_RETURN_IF_ERROR(reader_.status()); in GetNextInternal()
515 if (!reader_.Valid()) { in RestoreInternal()
518 reader_.Seek(dataset()->FormatName(cur_index_, 0)); in RestoreInternal()
[all …]
/external/google-breakpad/src/tools/mac/dump_syms/
Dmacho_dump.cc95 DumpCommand(mach_o::Reader *reader) : reader_(reader), index_(0) { } in DumpCommand()
115 return reader_->WalkSegmentSections(segment, &dump_section); in SegmentCommand()
118 mach_o::Reader *reader_; member in __anone21013250111::DumpCommand

12