| 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/objc/avfoundationvideocapturer.h" | 11 #include "webrtc/api/objc/avfoundationvideocapturer.h" |
| 12 | 12 |
| 13 #include "webrtc/base/bind.h" | 13 #include "webrtc/base/bind.h" |
| 14 #include "webrtc/base/thread.h" |
| 14 | 15 |
| 15 #import <AVFoundation/AVFoundation.h> | 16 #import <AVFoundation/AVFoundation.h> |
| 16 #import <Foundation/Foundation.h> | 17 #import <Foundation/Foundation.h> |
| 17 #import <UIKit/UIKit.h> | 18 #import <UIKit/UIKit.h> |
| 18 | 19 |
| 19 #import "webrtc/base/objc/RTCDispatcher.h" | 20 #import "webrtc/base/objc/RTCDispatcher.h" |
| 20 #import "webrtc/base/objc/RTCLogging.h" | 21 #import "webrtc/base/objc/RTCLogging.h" |
| 21 | 22 |
| 22 // TODO(tkchin): support other formats. | 23 // TODO(tkchin): support other formats. |
| 23 static NSString* const kDefaultPreset = AVCaptureSessionPreset640x480; | 24 static NSString* const kDefaultPreset = AVCaptureSessionPreset640x480; |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 | 435 |
| 435 void AVFoundationVideoCapturer::SignalFrameCapturedOnStartThread( | 436 void AVFoundationVideoCapturer::SignalFrameCapturedOnStartThread( |
| 436 const cricket::CapturedFrame *frame) { | 437 const cricket::CapturedFrame *frame) { |
| 437 RTC_DCHECK(_startThread->IsCurrent()); | 438 RTC_DCHECK(_startThread->IsCurrent()); |
| 438 // This will call a superclass method that will perform the frame conversion | 439 // This will call a superclass method that will perform the frame conversion |
| 439 // to I420. | 440 // to I420. |
| 440 SignalFrameCaptured(this, frame); | 441 SignalFrameCaptured(this, frame); |
| 441 } | 442 } |
| 442 | 443 |
| 443 } // namespace webrtc | 444 } // namespace webrtc |
| OLD | NEW |