Home
last modified time | relevance | path

Searched refs:read_cb_ (Results 1 – 25 of 29) sorted by relevance

12

/external/chromium_org/media/base/
Dfake_text_track_stream.cc20 DCHECK(read_cb_.is_null()); in ~FakeTextTrackStream()
25 DCHECK(read_cb_.is_null()); in Read()
27 read_cb_ = read_cb; in Read()
45 DCHECK(!read_cb_.is_null()); in SatisfyPendingRead()
64 base::ResetAndReturn(&read_cb_).Run(kOk, buffer); in SatisfyPendingRead()
68 DCHECK(!read_cb_.is_null()); in AbortPendingRead()
69 base::ResetAndReturn(&read_cb_).Run(kAborted, NULL); in AbortPendingRead()
73 DCHECK(!read_cb_.is_null()); in SendEosNotification()
74 base::ResetAndReturn(&read_cb_).Run(kOk, DecoderBuffer::CreateEOSBuffer()); in SendEosNotification()
79 if (!read_cb_.is_null()) in Stop()
Daudio_pull_fifo.cc15 : read_cb_(read_cb), in AudioPullFifo()
37 read_cb_.Run(write_pos, fifo_.get()); in Consume()
Dmulti_channel_resampler.cc18 : read_cb_(read_cb), in MultiChannelResampler()
89 read_cb_.Run(output_frames_ready_, wrapped_resampler_audio_bus_.get()); in ProvideInput()
Dsinc_resampler.cc143 read_cb_(read_cb), in SincResampler()
265 read_cb_.Run(request_frames_, r0_); in Resample()
332 read_cb_.Run(request_frames_, r0_); in Resample()
Daudio_pull_fifo.h49 const ReadCB read_cb_; variable
Dmulti_channel_resampler.h56 ReadCB read_cb_; variable
Dfake_text_track_stream.h41 ReadCB read_cb_; variable
Dsinc_resampler.h110 const ReadCB read_cb_; variable
/external/chromium_org/media/filters/
Ddecrypting_audio_decoder.cc91 CHECK(read_cb_.is_null()) << "Overlapping decodes are not supported."; in Read()
93 read_cb_ = BindToCurrentLoop(read_cb); in Read()
97 base::ResetAndReturn(&read_cb_).Run(kOk, AudioBuffer::CreateEOSBuffer()); in Read()
102 base::ResetAndReturn(&read_cb_).Run(kOk, queued_audio_frames_.front()); in Read()
134 DCHECK(!read_cb_.is_null()); in Reset()
139 DCHECK(!read_cb_.is_null()); in Reset()
141 base::ResetAndReturn(&read_cb_).Run(kAborted, NULL); in Reset()
144 DCHECK(read_cb_.is_null()); in Reset()
211 DCHECK(read_cb_.is_null()); // No Read() before initialization finished. in FinishInitialization()
234 DCHECK(!read_cb_.is_null()); in FinishConfigChange()
[all …]
Ddecrypting_demuxer_stream.cc69 CHECK(read_cb_.is_null()) << "Overlapping reads are not supported."; in Read()
71 read_cb_ = BindToCurrentLoop(read_cb); in Read()
103 DCHECK(!read_cb_.is_null()); in Reset()
108 DCHECK(!read_cb_.is_null()); in Reset()
110 base::ResetAndReturn(&read_cb_).Run(kAborted, NULL); in Reset()
113 DCHECK(read_cb_.is_null()); in Reset()
139 if (!read_cb_.is_null()) in Stop()
140 base::ResetAndReturn(&read_cb_).Run(kAborted, NULL); in Stop()
205 DCHECK(!read_cb_.is_null()); in DecryptBuffer()
219 base::ResetAndReturn(&read_cb_).Run(kConfigChanged, NULL); in DecryptBuffer()
[all …]
Dfake_demuxer_stream.cc56 DCHECK(read_cb_.is_null()); in Read()
58 read_cb_ = BindToCurrentLoop(read_cb); in Read()
103 DCHECK(!read_cb_.is_null()); in SatisfyRead()
112 if (!read_cb_.is_null()) in Reset()
113 base::ResetAndReturn(&read_cb_).Run(kAborted, NULL); in Reset()
127 DCHECK(!read_cb_.is_null()); in DoRead()
134 base::ResetAndReturn(&read_cb_).Run(kOk, in DoRead()
142 base::ResetAndReturn(&read_cb_).Run(kConfigChanged, NULL); in DoRead()
166 base::ResetAndReturn(&read_cb_).Run(kOk, buffer); in DoRead()
Dvideo_frame_stream.cc66 DCHECK(read_cb_.is_null()); in Read()
77 read_cb_ = read_cb; in Read()
141 if (!read_cb_.is_null()) in Stop()
143 base::ResetAndReturn(&read_cb_), ABORTED, scoped_refptr<VideoFrame>())); in Stop()
178 DCHECK(read_cb_.is_null()); in OnDecoderSelected()
208 DCHECK(!read_cb_.is_null()); in SatisfyRead()
209 base::ResetAndReturn(&read_cb_).Run(status, frame); in SatisfyRead()
225 DCHECK(!read_cb_.is_null()); in Decode()
246 DCHECK(!read_cb_.is_null()); in OnFrameReady()
300 DCHECK(!read_cb_.is_null()); in ReadFromDemuxerStream()
[all …]
Dopus_audio_decoder.cc300 CHECK(read_cb_.is_null()) << "Overlapping decodes are not supported."; in Read()
301 read_cb_ = BindToCurrentLoop(read_cb); in Read()
337 DCHECK(!read_cb_.is_null()); in ReadFromDemuxerStream()
345 DCHECK(!read_cb_.is_null()); in BufferReady()
350 base::ResetAndReturn(&read_cb_).Run(kAborted, NULL); in BufferReady()
359 base::ResetAndReturn(&read_cb_).Run(kDecodeError, NULL); in BufferReady()
374 base::ResetAndReturn(&read_cb_).Run(kOk, AudioBuffer::CreateEOSBuffer()); in BufferReady()
383 base::ResetAndReturn(&read_cb_).Run(kDecodeError, NULL); in BufferReady()
394 base::ResetAndReturn(&read_cb_).Run(kDecodeError, NULL); in BufferReady()
411 base::ResetAndReturn(&read_cb_).Run(kDecodeError, NULL); in BufferReady()
[all …]
Dffmpeg_audio_decoder.cc117 CHECK(read_cb_.is_null()) << "Overlapping decodes are not supported."; in Read()
119 read_cb_ = BindToCurrentLoop(read_cb); in Read()
128 base::ResetAndReturn(&read_cb_).Run( in Read()
230 DCHECK(!read_cb_.is_null()); in ReadFromDemuxerStream()
239 DCHECK(!read_cb_.is_null()); in BufferReady()
245 base::ResetAndReturn(&read_cb_).Run(kAborted, NULL); in BufferReady()
259 base::ResetAndReturn(&read_cb_).Run(kDecodeError, NULL); in BufferReady()
270 base::ResetAndReturn(&read_cb_).Run( in BufferReady()
284 base::ResetAndReturn(&read_cb_).Run(kDecodeError, NULL); in BufferReady()
320 base::ResetAndReturn(&read_cb_).Run( in BufferReady()
Daudio_renderer_impl_unittest.cc151 EXPECT_TRUE(read_cb_.is_null()); in InitializeWithStatus()
180 EXPECT_TRUE(read_cb_.is_null()); in Preroll()
211 return !read_cb_.is_null(); in IsReadPending()
216 if (!read_cb_.is_null()) in WaitForPendingRead()
225 DCHECK(!read_cb_.is_null()); in WaitForPendingRead()
232 CHECK(!read_cb_.is_null()); in SatisfyPendingRead()
394 CHECK(read_cb_.is_null()) << "Overlapping reads are not permitted"; in ReadDecoder()
395 read_cb_ = read_cb; in ReadDecoder()
403 CHECK(read_cb_.is_null()) in ResetDecoder()
411 CHECK(!read_cb_.is_null()); in DeliverBuffer()
[all …]
Dvideo_renderer_impl_unittest.cc260 if (!read_cb_.is_null()) in WaitForPendingRead()
269 DCHECK(!read_cb_.is_null()); in WaitForPendingRead()
274 CHECK(!read_cb_.is_null()); in SatisfyPendingRead()
278 read_cb_, decode_results_.front().first, in SatisfyPendingRead()
281 read_cb_.Reset(); in SatisfyPendingRead()
319 CHECK(read_cb_.is_null()); in FrameRequested()
320 read_cb_ = read_cb; in FrameRequested()
335 if (!read_cb_.is_null()) { in FlushRequested()
346 if (!read_cb_.is_null()) { in StopRequested()
362 VideoDecoder::DecodeCB read_cb_; member in media::VideoRendererImplTest
Dffmpeg_demuxer.cc211 DCHECK(read_cb_.is_null()) << "There should be no pending read"; in FlushBuffers()
220 if (!read_cb_.is_null()) { in Stop()
221 base::ResetAndReturn(&read_cb_).Run( in Stop()
240 CHECK(read_cb_.is_null()) << "Overlapping reads are not supported"; in Read()
241 read_cb_ = BindToCurrentLoop(read_cb); in Read()
248 base::ResetAndReturn(&read_cb_).Run( in Read()
276 DCHECK(read_cb_.is_null()); in ~FFmpegDemuxerStream()
290 if (!read_cb_.is_null()) { in SatisfyPendingRead()
292 base::ResetAndReturn(&read_cb_).Run( in SatisfyPendingRead()
295 base::ResetAndReturn(&read_cb_).Run( in SatisfyPendingRead()
[all …]
Dchunk_demuxer.cc256 ReadCB read_cb_; member in media::ChunkDemuxerStream
678 DCHECK(read_cb_.is_null()); in StartReturningData()
686 if (!read_cb_.is_null()) in AbortReads()
687 base::ResetAndReturn(&read_cb_).Run(kAborted, NULL); in AbortReads()
692 if (read_cb_.is_null()) in CompletePendingReadIfPossible()
705 if (!read_cb_.is_null()) { in Shutdown()
706 base::ResetAndReturn(&read_cb_).Run(DemuxerStream::kOk, in Shutdown()
719 DCHECK(read_cb_.is_null()); in Seek()
737 if (!read_cb_.is_null()) in Append()
829 DCHECK(read_cb_.is_null()); in Read()
[all …]
Dfake_demuxer_stream.h76 ReadCB read_cb_; variable
Dopus_audio_decoder.h75 ReadCB read_cb_; variable
Dffmpeg_audio_decoder.h94 ReadCB read_cb_; variable
/external/chromium_org/media/audio/
Dfake_audio_consumer.cc52 ReadCB read_cb_; member in media::FakeAudioConsumer::Worker
98 DCHECK(read_cb_.is_null()); in ~Worker()
103 return read_cb_.is_null(); in IsStopped()
111 DCHECK(read_cb_.is_null()); in Start()
112 read_cb_ = read_cb; in Start()
128 if (read_cb_.is_null()) in Stop()
130 read_cb_.Reset(); in Stop()
145 if (!read_cb_.is_null()) in DoRead()
146 read_cb_.Run(audio_bus_.get()); in DoRead()
/external/chromium_org/content/renderer/media/
Drtc_video_decoder_factory_tv.cc55 ReadCB read_cb_; member in content::RTCDemuxerStream
104 DCHECK(read_cb_.is_null()); in Read()
110 read_cb_ = media::BindToLoop(base::MessageLoopProxy::current(), read_cb); in Read()
118 if (!read_cb_.is_null()) in Destroy()
119 base::ResetAndReturn(&read_cb_).Run(DemuxerStream::kAborted, NULL); in Destroy()
125 if (read_cb_.is_null() || buffer_queue_.empty()) in RunReadCallback_Locked()
142 base::ResetAndReturn(&read_cb_).Run(DemuxerStream::kConfigChanged, NULL); in RunReadCallback_Locked()
146 base::ResetAndReturn(&read_cb_).Run(DemuxerStream::kOk, front.decoder_buffer); in RunReadCallback_Locked()
Dbuffered_resource_loader.cc211 read_cb_.Reset(); in Stop()
223 DCHECK(read_cb_.is_null()); in Read()
229 read_cb_ = read_cb; in Read()
501 DCHECK(read_cb_.is_null()) in didFinishLoading()
536 DCHECK(read_cb_.is_null()) in didFail()
621 DCHECK(read_cb_.is_null() || last_offset_ > buffer_.forward_bytes()) in ShouldDefer()
623 return read_cb_.is_null(); in ShouldDefer()
764 base::ResetAndReturn(&read_cb_).Run(status, bytes_read); in DoneRead()
Dbuffered_resource_loader.h247 bool HasPendingRead() { return !read_cb_.is_null(); } in NON_EXPORTED_BASE()
299 ReadCB read_cb_; in NON_EXPORTED_BASE() local

12