| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 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 |
| 11 #include "webrtc/api/androidvideocapturer.h" | 11 #include "webrtc/api/androidvideocapturer.h" |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 | 14 |
| 15 #include "webrtc/api/java/jni/native_handle_impl.h" | 15 #include "webrtc/api/android/jni/native_handle_impl.h" |
| 16 #include "webrtc/base/common.h" | 16 #include "webrtc/base/common.h" |
| 17 #include "webrtc/base/timeutils.h" | 17 #include "webrtc/base/timeutils.h" |
| 18 #include "webrtc/media/engine/webrtcvideoframe.h" | 18 #include "webrtc/media/engine/webrtcvideoframe.h" |
| 19 | 19 |
| 20 namespace webrtc { | 20 namespace webrtc { |
| 21 | 21 |
| 22 AndroidVideoCapturer::AndroidVideoCapturer( | 22 AndroidVideoCapturer::AndroidVideoCapturer( |
| 23 const rtc::scoped_refptr<AndroidVideoCapturerDelegate>& delegate) | 23 const rtc::scoped_refptr<AndroidVideoCapturerDelegate>& delegate) |
| 24 : running_(false), | 24 : running_(false), |
| 25 delegate_(delegate), | 25 delegate_(delegate), |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 bool AndroidVideoCapturer::GetBestCaptureFormat( | 91 bool AndroidVideoCapturer::GetBestCaptureFormat( |
| 92 const cricket::VideoFormat& desired, | 92 const cricket::VideoFormat& desired, |
| 93 cricket::VideoFormat* best_format) { | 93 cricket::VideoFormat* best_format) { |
| 94 // Delegate this choice to VideoCapturer.startCapture(). | 94 // Delegate this choice to VideoCapturer.startCapture(). |
| 95 *best_format = desired; | 95 *best_format = desired; |
| 96 return true; | 96 return true; |
| 97 } | 97 } |
| 98 | 98 |
| 99 } // namespace webrtc | 99 } // namespace webrtc |
| OLD | NEW |