| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Implements the Demuxer interface using FFmpeg's libavformat. At this time | 5 // Implements the Demuxer interface using FFmpeg's libavformat. At this time |
| 6 // will support demuxing any audio/video format thrown at it. The streams | 6 // will support demuxing any audio/video format thrown at it. The streams |
| 7 // output mime types audio/x-ffmpeg and video/x-ffmpeg and include an integer | 7 // output mime types audio/x-ffmpeg and video/x-ffmpeg and include an integer |
| 8 // key FFmpegCodecID which contains the CodecID enumeration value. The CodecIDs | 8 // key FFmpegCodecID which contains the CodecID enumeration value. The CodecIDs |
| 9 // can be used to create and initialize the corresponding FFmpeg decoder. | 9 // can be used to create and initialize the corresponding FFmpeg decoder. |
| 10 // | 10 // |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 // DemuxerStream implementation. | 88 // DemuxerStream implementation. |
| 89 Type type() const override; | 89 Type type() const override; |
| 90 Liveness liveness() const override; | 90 Liveness liveness() const override; |
| 91 void Read(const ReadCB& read_cb) override; | 91 void Read(const ReadCB& read_cb) override; |
| 92 void EnableBitstreamConverter() override; | 92 void EnableBitstreamConverter() override; |
| 93 bool SupportsConfigChanges() override; | 93 bool SupportsConfigChanges() override; |
| 94 AudioDecoderConfig audio_decoder_config() override; | 94 AudioDecoderConfig audio_decoder_config() override; |
| 95 VideoDecoderConfig video_decoder_config() override; | 95 VideoDecoderConfig video_decoder_config() override; |
| 96 VideoRotation video_rotation() override; | 96 VideoRotation video_rotation() override; |
| 97 size_t GetMemoryLimit() const override; |
| 98 void SetMemoryLimit(size_t memory_limit) override; |
| 97 | 99 |
| 98 void SetLiveness(Liveness liveness); | 100 void SetLiveness(Liveness liveness); |
| 99 | 101 |
| 100 // Returns the range of buffered data in this stream. | 102 // Returns the range of buffered data in this stream. |
| 101 Ranges<base::TimeDelta> GetBufferedRanges() const; | 103 Ranges<base::TimeDelta> GetBufferedRanges() const; |
| 102 | 104 |
| 103 // Returns elapsed time based on the already queued packets. | 105 // Returns elapsed time based on the already queued packets. |
| 104 // Used to determine stream duration when it's not known ahead of time. | 106 // Used to determine stream duration when it's not known ahead of time. |
| 105 base::TimeDelta GetElapsedTime() const; | 107 base::TimeDelta GetElapsedTime() const; |
| 106 | 108 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 307 |
| 306 // NOTE: Weak pointers must be invalidated before all other member variables. | 308 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 307 base::WeakPtrFactory<FFmpegDemuxer> weak_factory_; | 309 base::WeakPtrFactory<FFmpegDemuxer> weak_factory_; |
| 308 | 310 |
| 309 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); | 311 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); |
| 310 }; | 312 }; |
| 311 | 313 |
| 312 } // namespace media | 314 } // namespace media |
| 313 | 315 |
| 314 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ | 316 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ |
| OLD | NEW |