| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 // A base class that provides the plumbing for a decoder filters. | 5 // A base class that provides the plumbing for a decoder filters. |
| 6 | 6 |
| 7 #ifndef MEDIA_FILTERS_DECODER_BASE_H_ | 7 #ifndef MEDIA_FILTERS_DECODER_BASE_H_ |
| 8 #define MEDIA_FILTERS_DECODER_BASE_H_ | 8 #define MEDIA_FILTERS_DECODER_BASE_H_ |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 } | 251 } |
| 252 | 252 |
| 253 // The critical section for the decoder. | 253 // The critical section for the decoder. |
| 254 Lock lock_; | 254 Lock lock_; |
| 255 | 255 |
| 256 // If false, then the Stop() method has been called, and no further processing | 256 // If false, then the Stop() method has been called, and no further processing |
| 257 // of buffers should occur. | 257 // of buffers should occur. |
| 258 bool running_; | 258 bool running_; |
| 259 | 259 |
| 260 // Pointer to the demuxer stream that will feed us compressed buffers. | 260 // Pointer to the demuxer stream that will feed us compressed buffers. |
| 261 DemuxerStream* demuxer_stream_; | 261 scoped_refptr<DemuxerStream> demuxer_stream_; |
| 262 | 262 |
| 263 // If this pointer is NULL then there is no thread dedicated to this decoder | 263 // If this pointer is NULL then there is no thread dedicated to this decoder |
| 264 // and decodes will happen on the pipeline thread. | 264 // and decodes will happen on the pipeline thread. |
| 265 scoped_ptr<base::Thread> decode_thread_; | 265 scoped_ptr<base::Thread> decode_thread_; |
| 266 | 266 |
| 267 // Number of times we have called Read() on the demuxer that have not yet | 267 // Number of times we have called Read() on the demuxer that have not yet |
| 268 // been satisfied. | 268 // been satisfied. |
| 269 size_t pending_reads_; | 269 size_t pending_reads_; |
| 270 | 270 |
| 271 CancelableTask* process_task_; | 271 CancelableTask* process_task_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 287 // Queue of buffers supplied by the renderer through the Read() method. | 287 // Queue of buffers supplied by the renderer through the Read() method. |
| 288 typedef std::deque<Assignable<Output>*> OutputQueue; | 288 typedef std::deque<Assignable<Output>*> OutputQueue; |
| 289 OutputQueue output_queue_; | 289 OutputQueue output_queue_; |
| 290 | 290 |
| 291 DISALLOW_COPY_AND_ASSIGN(DecoderBase); | 291 DISALLOW_COPY_AND_ASSIGN(DecoderBase); |
| 292 }; | 292 }; |
| 293 | 293 |
| 294 } // namespace media | 294 } // namespace media |
| 295 | 295 |
| 296 #endif // MEDIA_FILTERS_DECODER_BASE_H_ | 296 #endif // MEDIA_FILTERS_DECODER_BASE_H_ |
| OLD | NEW |