| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_FILTERS_DECODER_STREAM_H_ | 5 #ifndef MEDIA_FILTERS_DECODER_STREAM_H_ |
| 6 #define MEDIA_FILTERS_DECODER_STREAM_H_ | 6 #define MEDIA_FILTERS_DECODER_STREAM_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 STATE_UNINITIALIZED, | 112 STATE_UNINITIALIZED, |
| 113 STATE_INITIALIZING, | 113 STATE_INITIALIZING, |
| 114 STATE_NORMAL, // Includes idle, pending decoder decode/reset. | 114 STATE_NORMAL, // Includes idle, pending decoder decode/reset. |
| 115 STATE_FLUSHING_DECODER, | 115 STATE_FLUSHING_DECODER, |
| 116 STATE_PENDING_DEMUXER_READ, | 116 STATE_PENDING_DEMUXER_READ, |
| 117 STATE_REINITIALIZING_DECODER, | 117 STATE_REINITIALIZING_DECODER, |
| 118 STATE_END_OF_STREAM, // End of stream reached; returns EOS on all reads. | 118 STATE_END_OF_STREAM, // End of stream reached; returns EOS on all reads. |
| 119 STATE_ERROR | 119 STATE_ERROR |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 DemuxerStream::Type GetStreamType() { |
| 123 return StreamType; |
| 124 } |
| 125 |
| 122 void SelectDecoder(const SetDecryptorReadyCB& set_decryptor_ready_cb); | 126 void SelectDecoder(const SetDecryptorReadyCB& set_decryptor_ready_cb); |
| 123 | 127 |
| 124 // Called when |decoder_selector| selected the |selected_decoder|. | 128 // Called when |decoder_selector| selected the |selected_decoder|. |
| 125 // |decrypting_demuxer_stream| was also populated if a DecryptingDemuxerStream | 129 // |decrypting_demuxer_stream| was also populated if a DecryptingDemuxerStream |
| 126 // is created to help decrypt the encrypted stream. | 130 // is created to help decrypt the encrypted stream. |
| 127 void OnDecoderSelected( | 131 void OnDecoderSelected( |
| 128 scoped_ptr<Decoder> selected_decoder, | 132 scoped_ptr<Decoder> selected_decoder, |
| 129 scoped_ptr<DecryptingDemuxerStream> decrypting_demuxer_stream); | 133 scoped_ptr<DecryptingDemuxerStream> decrypting_demuxer_stream); |
| 130 | 134 |
| 131 // Satisfy pending |read_cb_| with |status| and |output|. | 135 // Satisfy pending |read_cb_| with |status| and |output|. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 217 |
| 214 template <> | 218 template <> |
| 215 int DecoderStream<DemuxerStream::AUDIO>::GetMaxDecodeRequests() const; | 219 int DecoderStream<DemuxerStream::AUDIO>::GetMaxDecodeRequests() const; |
| 216 | 220 |
| 217 typedef DecoderStream<DemuxerStream::VIDEO> VideoFrameStream; | 221 typedef DecoderStream<DemuxerStream::VIDEO> VideoFrameStream; |
| 218 typedef DecoderStream<DemuxerStream::AUDIO> AudioBufferStream; | 222 typedef DecoderStream<DemuxerStream::AUDIO> AudioBufferStream; |
| 219 | 223 |
| 220 } // namespace media | 224 } // namespace media |
| 221 | 225 |
| 222 #endif // MEDIA_FILTERS_DECODER_STREAM_H_ | 226 #endif // MEDIA_FILTERS_DECODER_STREAM_H_ |
| OLD | NEW |