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

Side by Side Diff: webrtc/media/engine/nullwebrtcvideoengine.h

Issue 3008043002: Simplify passing video codec factories in media engine (Closed)
Patch Set: Created 3 years, 3 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 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 15 matching lines...) Expand all
26 namespace cricket { 26 namespace cricket {
27 27
28 class VideoMediaChannel; 28 class VideoMediaChannel;
29 class WebRtcVideoDecoderFactory; 29 class WebRtcVideoDecoderFactory;
30 class WebRtcVideoEncoderFactory; 30 class WebRtcVideoEncoderFactory;
31 31
32 // Video engine implementation that does nothing and can be used in 32 // Video engine implementation that does nothing and can be used in
33 // CompositeMediaEngine. 33 // CompositeMediaEngine.
34 class NullWebRtcVideoEngine { 34 class NullWebRtcVideoEngine {
35 public: 35 public:
36 NullWebRtcVideoEngine() {} 36 std::vector<VideoCodec> codecs() const { return std::vector<VideoCodec>(); }
37 ~NullWebRtcVideoEngine() {}
38 37
39 void SetExternalDecoderFactory(WebRtcVideoDecoderFactory* decoder_factory) {} 38 RtpCapabilities GetCapabilities() const { return RtpCapabilities(); }
40 void SetExternalEncoderFactory(WebRtcVideoEncoderFactory* encoder_factory) {}
41
42 void Init() {}
43
44 const std::vector<VideoCodec>& codecs() {
45 return codecs_;
46 }
47
48 RtpCapabilities GetCapabilities() {
49 RtpCapabilities capabilities;
50 return capabilities;
51 }
52 39
53 VideoMediaChannel* CreateChannel(webrtc::Call* call, 40 VideoMediaChannel* CreateChannel(webrtc::Call* call,
54 const MediaConfig& config, 41 const MediaConfig& config,
55 const VideoOptions& options) { 42 const VideoOptions& options) {
56 return nullptr; 43 return nullptr;
57 } 44 }
58
59 private:
60 std::vector<VideoCodec> codecs_;
61 }; 45 };
62 46
63 } // namespace cricket 47 } // namespace cricket
64 48
65 #endif // WEBRTC_MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_ 49 #endif // WEBRTC_MEDIA_ENGINE_NULLWEBRTCVIDEOENGINE_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/videoengine_unittest.h ('k') | webrtc/media/engine/nullwebrtcvideoengine_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698