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

Side by Side Diff: chromecast/media/cma/pipeline/media_pipeline.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_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_ 6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_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/time/time.h" 10 #include "base/time/time.h"
(...skipping 29 matching lines...) Expand all
40 virtual VideoPipeline* GetVideoPipeline() const = 0; 40 virtual VideoPipeline* GetVideoPipeline() const = 0;
41 41
42 // Create an audio/video pipeline. 42 // Create an audio/video pipeline.
43 // MediaPipeline owns the resulting audio/video pipeline. 43 // MediaPipeline owns the resulting audio/video pipeline.
44 // Only one audio and one video pipeline can be created. 44 // Only one audio and one video pipeline can be created.
45 virtual void InitializeAudio( 45 virtual void InitializeAudio(
46 const ::media::AudioDecoderConfig& config, 46 const ::media::AudioDecoderConfig& config,
47 scoped_ptr<CodedFrameProvider> frame_provider, 47 scoped_ptr<CodedFrameProvider> frame_provider,
48 const ::media::PipelineStatusCB& status_cb) = 0; 48 const ::media::PipelineStatusCB& status_cb) = 0;
49 virtual void InitializeVideo( 49 virtual void InitializeVideo(
50 const ::media::VideoDecoderConfig& config, 50 const std::vector<::media::VideoDecoderConfig>& configs,
51 scoped_ptr<CodedFrameProvider> frame_provider, 51 scoped_ptr<CodedFrameProvider> frame_provider,
52 const ::media::PipelineStatusCB& status_cb) = 0; 52 const ::media::PipelineStatusCB& status_cb) = 0;
53 53
54 // Control the media pipeline state machine. 54 // Control the media pipeline state machine.
55 virtual void StartPlayingFrom(base::TimeDelta time) = 0; 55 virtual void StartPlayingFrom(base::TimeDelta time) = 0;
56 virtual void Flush(const ::media::PipelineStatusCB& status_cb) = 0; 56 virtual void Flush(const ::media::PipelineStatusCB& status_cb) = 0;
57 virtual void Stop() = 0; 57 virtual void Stop() = 0;
58 58
59 // Set the playback rate. 59 // Set the playback rate.
60 virtual void SetPlaybackRate(double playback_rate) = 0; 60 virtual void SetPlaybackRate(double playback_rate) = 0;
61 61
62 private: 62 private:
63 DISALLOW_COPY_AND_ASSIGN(MediaPipeline); 63 DISALLOW_COPY_AND_ASSIGN(MediaPipeline);
64 }; 64 };
65 65
66 } // namespace media 66 } // namespace media
67 } // namespace chromecast 67 } // namespace chromecast
68 68
69 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_ 69 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698