Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: chromecast/media/cma/pipeline/media_pipeline_impl.h

Issue 1148253006: Chromecast: Use std::vector to pass video config in CMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ 6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 27 matching lines...) Expand all
38 // MediaPipeline implementation. 38 // MediaPipeline implementation.
39 void SetClient(const MediaPipelineClient& client) override; 39 void SetClient(const MediaPipelineClient& client) override;
40 void SetCdm(int cdm_id) override; 40 void SetCdm(int cdm_id) override;
41 AudioPipeline* GetAudioPipeline() const override; 41 AudioPipeline* GetAudioPipeline() const override;
42 VideoPipeline* GetVideoPipeline() const override; 42 VideoPipeline* GetVideoPipeline() const override;
43 void InitializeAudio( 43 void InitializeAudio(
44 const ::media::AudioDecoderConfig& config, 44 const ::media::AudioDecoderConfig& config,
45 scoped_ptr<CodedFrameProvider> frame_provider, 45 scoped_ptr<CodedFrameProvider> frame_provider,
46 const ::media::PipelineStatusCB& status_cb) override; 46 const ::media::PipelineStatusCB& status_cb) override;
47 void InitializeVideo( 47 void InitializeVideo(
48 const ::media::VideoDecoderConfig& config, 48 const std::vector<::media::VideoDecoderConfig>& configs,
49 scoped_ptr<CodedFrameProvider> frame_provider, 49 scoped_ptr<CodedFrameProvider> frame_provider,
50 const ::media::PipelineStatusCB& status_cb) override; 50 const ::media::PipelineStatusCB& status_cb) override;
51 void StartPlayingFrom(base::TimeDelta time) override; 51 void StartPlayingFrom(base::TimeDelta time) override;
52 void Flush(const ::media::PipelineStatusCB& status_cb) override; 52 void Flush(const ::media::PipelineStatusCB& status_cb) override;
53 void Stop() override; 53 void Stop() override;
54 void SetPlaybackRate(double playback_rate) override; 54 void SetPlaybackRate(double playback_rate) override;
55 55
56 AudioPipelineImpl* GetAudioPipelineImpl() const; 56 AudioPipelineImpl* GetAudioPipelineImpl() const;
57 VideoPipelineImpl* GetVideoPipelineImpl() const; 57 VideoPipelineImpl* GetVideoPipelineImpl() const;
58 58
(...skipping 17 matching lines...) Expand all
76 scoped_ptr<BufferingController> buffering_controller_; 76 scoped_ptr<BufferingController> buffering_controller_;
77 77
78 // Interface with the underlying hardware media pipeline. 78 // Interface with the underlying hardware media pipeline.
79 scoped_ptr<MediaPipelineDevice> media_pipeline_device_; 79 scoped_ptr<MediaPipelineDevice> media_pipeline_device_;
80 MediaClockDevice* clock_device_; 80 MediaClockDevice* clock_device_;
81 81
82 bool has_audio_; 82 bool has_audio_;
83 bool has_video_; 83 bool has_video_;
84 scoped_ptr<AudioPipelineImpl> audio_pipeline_; 84 scoped_ptr<AudioPipelineImpl> audio_pipeline_;
85 scoped_ptr<VideoPipelineImpl> video_pipeline_; 85 scoped_ptr<VideoPipelineImpl> video_pipeline_;
86 scoped_ptr< ::media::SerialRunner> pending_callbacks_; 86 scoped_ptr<::media::SerialRunner> pending_callbacks_;
87 87
88 // Playback rate set by the upper layer. 88 // Playback rate set by the upper layer.
89 float target_playback_rate_; 89 float target_playback_rate_;
90 90
91 // Indicate a possible re-buffering phase. 91 // Indicate a possible re-buffering phase.
92 bool is_buffering_; 92 bool is_buffering_;
93 93
94 // The media time is retrieved at regular intervals. 94 // The media time is retrieved at regular intervals.
95 // Indicate whether time update is enabled. 95 // Indicate whether time update is enabled.
96 bool enable_time_update_; 96 bool enable_time_update_;
97 bool pending_time_update_task_; 97 bool pending_time_update_task_;
98 base::TimeDelta last_media_time_; 98 base::TimeDelta last_media_time_;
99 99
100 // Used to make the statistics update period a multiplier of the time update 100 // Used to make the statistics update period a multiplier of the time update
101 // period. 101 // period.
102 int statistics_rolling_counter_; 102 int statistics_rolling_counter_;
103 103
104 base::WeakPtr<MediaPipelineImpl> weak_this_; 104 base::WeakPtr<MediaPipelineImpl> weak_this_;
105 base::WeakPtrFactory<MediaPipelineImpl> weak_factory_; 105 base::WeakPtrFactory<MediaPipelineImpl> weak_factory_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(MediaPipelineImpl); 107 DISALLOW_COPY_AND_ASSIGN(MediaPipelineImpl);
108 }; 108 };
109 109
110 } // namespace media 110 } // namespace media
111 } // namespace chromecast 111 } // namespace chromecast
112 112
113 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ 113 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698