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

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

Issue 2258933003: Refactor WebRtcVideoCapturer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase, and revert HAVE_WEBRTC_VIDEO hack. Created 4 years, 4 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
« no previous file with comments | « webrtc/media/base/testutils.cc ('k') | webrtc/media/engine/webrtcvideocapturer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 int32_t CaptureSettings(webrtc::VideoCaptureCapability& settings) override { 68 int32_t CaptureSettings(webrtc::VideoCaptureCapability& settings) override {
69 if (!running_) return -1; 69 if (!running_) return -1;
70 settings = cap_; 70 settings = cap_;
71 return 0; 71 return 0;
72 } 72 }
73 73
74 int32_t SetCaptureRotation(webrtc::VideoRotation rotation) override { 74 int32_t SetCaptureRotation(webrtc::VideoRotation rotation) override {
75 return -1; // not implemented 75 return -1; // not implemented
76 } 76 }
77 bool SetApplyRotation(bool enable) override { 77 bool SetApplyRotation(bool enable) override {
78 return false; // not implemented 78 return true; // ignored
79 } 79 }
80 bool GetApplyRotation() override { 80 bool GetApplyRotation() override {
81 return true; // Rotation compensation is turned on. 81 return true; // Rotation compensation is turned on.
82 } 82 }
83 VideoCaptureEncodeInterface* GetEncodeInterface( 83 VideoCaptureEncodeInterface* GetEncodeInterface(
84 const webrtc::VideoCodec& codec) override { 84 const webrtc::VideoCodec& codec) override {
85 return NULL; // not implemented 85 return NULL; // not implemented
86 } 86 }
87 87
88 void SendFrame(int w, int h) { 88 void SendFrame(int w, int h) {
(...skipping 18 matching lines...) Expand all
107 private: 107 private:
108 FakeWebRtcVcmFactory* factory_; 108 FakeWebRtcVcmFactory* factory_;
109 int id_; 109 int id_;
110 webrtc::VideoCaptureDataCallback* callback_; 110 webrtc::VideoCaptureDataCallback* callback_;
111 bool running_; 111 bool running_;
112 webrtc::VideoCaptureCapability cap_; 112 webrtc::VideoCaptureCapability cap_;
113 int delay_; 113 int delay_;
114 }; 114 };
115 115
116 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOCAPTUREMODULE_H_ 116 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVIDEOCAPTUREMODULE_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/testutils.cc ('k') | webrtc/media/engine/webrtcvideocapturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698