| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |