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 CHROMECAST_BROWSER_MEDIA_MEDIA_PIPELINE_HOST_H_ | 5 #ifndef CHROMECAST_BROWSER_MEDIA_MEDIA_PIPELINE_HOST_H_ |
6 #define CHROMECAST_BROWSER_MEDIA_MEDIA_PIPELINE_HOST_H_ | 6 #define CHROMECAST_BROWSER_MEDIA_MEDIA_PIPELINE_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void SetAvPipe(TrackId track_id, | 46 void SetAvPipe(TrackId track_id, |
47 scoped_ptr<base::SharedMemory> shared_mem, | 47 scoped_ptr<base::SharedMemory> shared_mem, |
48 const base::Closure& pipe_read_activity_cb, | 48 const base::Closure& pipe_read_activity_cb, |
49 const base::Closure& av_pipe_set_cb); | 49 const base::Closure& av_pipe_set_cb); |
50 void AudioInitialize(TrackId track_id, | 50 void AudioInitialize(TrackId track_id, |
51 const AvPipelineClient& client, | 51 const AvPipelineClient& client, |
52 const ::media::AudioDecoderConfig& config, | 52 const ::media::AudioDecoderConfig& config, |
53 const ::media::PipelineStatusCB& status_cb); | 53 const ::media::PipelineStatusCB& status_cb); |
54 void VideoInitialize(TrackId track_id, | 54 void VideoInitialize(TrackId track_id, |
55 const VideoPipelineClient& client, | 55 const VideoPipelineClient& client, |
56 const ::media::VideoDecoderConfig& config, | 56 const std::vector<::media::VideoDecoderConfig>& configs, |
57 const ::media::PipelineStatusCB& status_cb); | 57 const ::media::PipelineStatusCB& status_cb); |
58 void StartPlayingFrom(base::TimeDelta time); | 58 void StartPlayingFrom(base::TimeDelta time); |
59 void Flush(const ::media::PipelineStatusCB& status_cb); | 59 void Flush(const ::media::PipelineStatusCB& status_cb); |
60 void Stop(); | 60 void Stop(); |
61 | 61 |
62 void SetPlaybackRate(double playback_rate); | 62 void SetPlaybackRate(double playback_rate); |
63 void SetVolume(TrackId track_id, float playback_rate); | 63 void SetVolume(TrackId track_id, float playback_rate); |
64 void SetCdm(BrowserCdmCast* cdm); | 64 void SetCdm(BrowserCdmCast* cdm); |
65 | 65 |
66 void NotifyPipeWrite(TrackId track_id); | 66 void NotifyPipeWrite(TrackId track_id); |
(...skipping 10 matching lines...) Expand all Loading... |
77 MediaTrackMap media_track_map_; | 77 MediaTrackMap media_track_map_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(MediaPipelineHost); | 79 DISALLOW_COPY_AND_ASSIGN(MediaPipelineHost); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace media | 82 } // namespace media |
83 } // namespace chromecast | 83 } // namespace chromecast |
84 | 84 |
85 #endif // CHROMECAST_BROWSER_MEDIA_MEDIA_PIPELINE_HOST_H_ | 85 #endif // CHROMECAST_BROWSER_MEDIA_MEDIA_PIPELINE_HOST_H_ |
86 | 86 |
OLD | NEW |