| 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_TRAITS_H_ | 5 #ifndef MEDIA_FILTERS_DECODER_STREAM_TRAITS_H_ |
| 6 #define MEDIA_FILTERS_DECODER_STREAM_TRAITS_H_ | 6 #define MEDIA_FILTERS_DECODER_STREAM_TRAITS_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" |
| 8 #include "media/base/cdm_context.h" | 9 #include "media/base/cdm_context.h" |
| 9 #include "media/base/demuxer_stream.h" | 10 #include "media/base/demuxer_stream.h" |
| 10 #include "media/base/pipeline_status.h" | 11 #include "media/base/pipeline_status.h" |
| 11 #include "media/base/video_decoder_config.h" | 12 #include "media/base/video_decoder_config.h" |
| 12 #include "media/filters/audio_timestamp_validator.h" | 13 #include "media/filters/audio_timestamp_validator.h" |
| 13 | 14 |
| 14 namespace media { | 15 namespace media { |
| 15 | 16 |
| 16 class AudioBuffer; | 17 class AudioBuffer; |
| 17 class AudioDecoder; | 18 class AudioDecoder; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 int bytes_decoded); | 76 int bytes_decoded); |
| 76 static scoped_refptr<OutputType> CreateEOSOutput(); | 77 static scoped_refptr<OutputType> CreateEOSOutput(); |
| 77 | 78 |
| 78 explicit DecoderStreamTraits(const scoped_refptr<MediaLog>& media_log) {} | 79 explicit DecoderStreamTraits(const scoped_refptr<MediaLog>& media_log) {} |
| 79 | 80 |
| 80 void InitializeDecoder(DecoderType* decoder, | 81 void InitializeDecoder(DecoderType* decoder, |
| 81 DemuxerStream* stream, | 82 DemuxerStream* stream, |
| 82 CdmContext* cdm_context, | 83 CdmContext* cdm_context, |
| 83 const InitCB& init_cb, | 84 const InitCB& init_cb, |
| 84 const OutputCB& output_cb); | 85 const OutputCB& output_cb); |
| 85 void OnDecode(const scoped_refptr<DecoderBuffer>& buffer) {} | 86 void OnDecode(const scoped_refptr<DecoderBuffer>& buffer); |
| 86 void OnDecodeDone(const scoped_refptr<OutputType>& buffer) {} | 87 void OnDecodeDone(const scoped_refptr<OutputType>& buffer) {} |
| 87 void OnStreamReset(DemuxerStream* stream) {} | 88 void OnStreamReset(DemuxerStream* stream); |
| 89 |
| 90 private: |
| 91 base::TimeDelta last_keyframe_timestamp_; |
| 88 }; | 92 }; |
| 89 | 93 |
| 90 } // namespace media | 94 } // namespace media |
| 91 | 95 |
| 92 #endif // MEDIA_FILTERS_DECODER_STREAM_TRAITS_H_ | 96 #endif // MEDIA_FILTERS_DECODER_STREAM_TRAITS_H_ |
| OLD | NEW |