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

Side by Side Diff: chromecast/media/cma/pipeline/video_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: Remove DCHECK when config is updated. Will create another CL for the change 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_BASE_VIDEO_PIPELINE_IMPL_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_
6 #define CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_ 6 #define CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 26 matching lines...) Expand all
37 ~VideoPipelineImpl() override; 37 ~VideoPipelineImpl() override;
38 38
39 // Input port of the pipeline. 39 // Input port of the pipeline.
40 void SetCodedFrameProvider(scoped_ptr<CodedFrameProvider> frame_provider); 40 void SetCodedFrameProvider(scoped_ptr<CodedFrameProvider> frame_provider);
41 41
42 // Provide the CDM to use to decrypt samples. 42 // Provide the CDM to use to decrypt samples.
43 void SetCdm(BrowserCdmCast* media_keys); 43 void SetCdm(BrowserCdmCast* media_keys);
44 44
45 // Functions to control the state of the audio pipeline. 45 // Functions to control the state of the audio pipeline.
46 void Initialize( 46 void Initialize(
47 const ::media::VideoDecoderConfig& config, 47 const std::vector<::media::VideoDecoderConfig>& configs,
48 scoped_ptr<CodedFrameProvider> frame_provider, 48 scoped_ptr<CodedFrameProvider> frame_provider,
49 const ::media::PipelineStatusCB& status_cb); 49 const ::media::PipelineStatusCB& status_cb);
50 bool StartPlayingFrom(base::TimeDelta time, 50 bool StartPlayingFrom(base::TimeDelta time,
51 const scoped_refptr<BufferingState>& buffering_state); 51 const scoped_refptr<BufferingState>& buffering_state);
52 void Flush(const ::media::PipelineStatusCB& status_cb); 52 void Flush(const ::media::PipelineStatusCB& status_cb);
53 void Stop(); 53 void Stop();
54 54
55 // Update the playback statistics for this video stream. 55 // Update the playback statistics for this video stream.
56 void UpdateStatistics(); 56 void UpdateStatistics();
57 57
(...skipping 17 matching lines...) Expand all
75 base::WeakPtr<VideoPipelineImpl> weak_this_; 75 base::WeakPtr<VideoPipelineImpl> weak_this_;
76 base::WeakPtrFactory<VideoPipelineImpl> weak_factory_; 76 base::WeakPtrFactory<VideoPipelineImpl> weak_factory_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(VideoPipelineImpl); 78 DISALLOW_COPY_AND_ASSIGN(VideoPipelineImpl);
79 }; 79 };
80 80
81 } // namespace media 81 } // namespace media
82 } // namespace chromecast 82 } // namespace chromecast
83 83
84 #endif // CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_ 84 #endif // CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_
OLDNEW
« no previous file with comments | « chromecast/media/cma/pipeline/media_pipeline_impl.cc ('k') | chromecast/media/cma/pipeline/video_pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698