Chromium Code Reviews| 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 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 void UnmarkEndOfStream(); | 107 void UnmarkEndOfStream(); |
| 108 | 108 |
| 109 // DemuxerStream methods. | 109 // DemuxerStream methods. |
| 110 void Read(const ReadCB& read_cb) override; | 110 void Read(const ReadCB& read_cb) override; |
| 111 Type type() const override; | 111 Type type() const override; |
| 112 Liveness liveness() const override; | 112 Liveness liveness() const override; |
| 113 AudioDecoderConfig audio_decoder_config() override; | 113 AudioDecoderConfig audio_decoder_config() override; |
| 114 VideoDecoderConfig video_decoder_config() override; | 114 VideoDecoderConfig video_decoder_config() override; |
| 115 bool SupportsConfigChanges() override; | 115 bool SupportsConfigChanges() override; |
| 116 VideoRotation video_rotation() override; | 116 VideoRotation video_rotation() override; |
| 117 bool enabled() const override; | 117 bool enabled() const override; |
|
xhwang
2017/02/01 18:26:03
From code search, this is not used by the media pi
servolk
2017/02/01 22:29:17
We definitely need this in the DemuxerStream inter
| |
| 118 void set_enabled(bool enabled, base::TimeDelta timestamp) override; | 118 void set_enabled(bool enabled, base::TimeDelta timestamp) override; |
|
xhwang
2017/02/01 18:26:03
add an empty line here
servolk
2017/02/01 22:29:17
Done (in the next CL)
| |
| 119 void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) override; | 119 void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb); |
| 120 | 120 |
| 121 // Returns the text track configuration. It is an error to call this method | 121 // Returns the text track configuration. It is an error to call this method |
| 122 // if type() != TEXT. | 122 // if type() != TEXT. |
| 123 TextTrackConfig text_track_config(); | 123 TextTrackConfig text_track_config(); |
| 124 | 124 |
| 125 // Sets the memory limit, in bytes, on the SourceBufferStream. | 125 // Sets the memory limit, in bytes, on the SourceBufferStream. |
| 126 void SetStreamMemoryLimit(size_t memory_limit); | 126 void SetStreamMemoryLimit(size_t memory_limit); |
| 127 | 127 |
| 128 bool supports_partial_append_window_trimming() const { | 128 bool supports_partial_append_window_trimming() const { |
| 129 return partial_append_window_trimming_enabled_; | 129 return partial_append_window_trimming_enabled_; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 std::string GetDisplayName() const override; | 189 std::string GetDisplayName() const override; |
| 190 | 190 |
| 191 // |enable_text| Process inband text tracks in the normal way when true, | 191 // |enable_text| Process inband text tracks in the normal way when true, |
| 192 // otherwise ignore them. | 192 // otherwise ignore them. |
| 193 void Initialize(DemuxerHost* host, | 193 void Initialize(DemuxerHost* host, |
| 194 const PipelineStatusCB& init_cb, | 194 const PipelineStatusCB& init_cb, |
| 195 bool enable_text_tracks) override; | 195 bool enable_text_tracks) override; |
| 196 void Stop() override; | 196 void Stop() override; |
| 197 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; | 197 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; |
| 198 base::Time GetTimelineOffset() const override; | 198 base::Time GetTimelineOffset() const override; |
| 199 DemuxerStream* GetStream(DemuxerStream::Type type) override; | 199 std::vector<DemuxerStream*> GetStreams() override; |
| 200 void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) override; | |
| 200 base::TimeDelta GetStartTime() const override; | 201 base::TimeDelta GetStartTime() const override; |
| 201 int64_t GetMemoryUsage() const override; | 202 int64_t GetMemoryUsage() const override; |
| 202 void AbortPendingReads() override; | 203 void AbortPendingReads() override; |
| 203 | 204 |
| 204 // ChunkDemuxer reads are abortable. StartWaitingForSeek() and | 205 // ChunkDemuxer reads are abortable. StartWaitingForSeek() and |
| 205 // CancelPendingSeek() always abort pending and future reads until the | 206 // CancelPendingSeek() always abort pending and future reads until the |
| 206 // expected seek occurs, so that ChunkDemuxer can stay synchronized with the | 207 // expected seek occurs, so that ChunkDemuxer can stay synchronized with the |
| 207 // associated JS method calls. | 208 // associated JS method calls. |
| 208 void StartWaitingForSeek(base::TimeDelta seek_time) override; | 209 void StartWaitingForSeek(base::TimeDelta seek_time) override; |
| 209 void CancelPendingSeek(base::TimeDelta seek_time) override; | 210 void CancelPendingSeek(base::TimeDelta seek_time) override; |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 452 int detected_text_track_count_; | 453 int detected_text_track_count_; |
| 453 | 454 |
| 454 std::map<MediaTrack::Id, DemuxerStream*> track_id_to_demux_stream_map_; | 455 std::map<MediaTrack::Id, DemuxerStream*> track_id_to_demux_stream_map_; |
| 455 | 456 |
| 456 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 457 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
| 457 }; | 458 }; |
| 458 | 459 |
| 459 } // namespace media | 460 } // namespace media |
| 460 | 461 |
| 461 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 462 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| OLD | NEW |