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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/Video/avfoundationvideocapturer.mm

Issue 2893843003: Reland of Split iOS sdk in to separate targets (Closed)
Patch Set: Clear up dependency cycles Created 3 years, 7 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 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 "avfoundationvideocapturer.h" 11 #include "avfoundationvideocapturer.h"
12 12
13 #import <AVFoundation/AVFoundation.h> 13 #import <AVFoundation/AVFoundation.h>
14 14
15 #import "RTCAVFoundationVideoCapturerInternal.h" 15 #import "RTCAVFoundationVideoCapturerInternal.h"
16 #import "RTCDispatcher+Private.h" 16 #import "RTCDispatcher+Private.h"
17 #import "WebRTC/RTCLogging.h" 17 #import "WebRTC/RTCLogging.h"
18 18
19 #include "avfoundationformatmapper.h" 19 #include "avfoundationformatmapper.h"
20 20
21 #include "webrtc/api/video/video_rotation.h" 21 #include "webrtc/api/video/video_rotation.h"
22 #include "webrtc/base/bind.h" 22 #include "webrtc/base/bind.h"
23 #include "webrtc/base/checks.h" 23 #include "webrtc/base/checks.h"
24 #include "webrtc/base/logging.h" 24 #include "webrtc/base/logging.h"
25 #include "webrtc/base/thread.h" 25 #include "webrtc/base/thread.h"
26 #include "webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h" 26 #include "webrtc/sdk/objc/Framework/Classes/Video/corevideo_frame_buffer.h"
27 27
28 namespace webrtc { 28 namespace webrtc {
29 29
30 enum AVFoundationVideoCapturerMessageType : uint32_t { 30 enum AVFoundationVideoCapturerMessageType : uint32_t {
31 kMessageTypeFrame, 31 kMessageTypeFrame,
32 }; 32 };
33 33
34 AVFoundationVideoCapturer::AVFoundationVideoCapturer() : _capturer(nil) { 34 AVFoundationVideoCapturer::AVFoundationVideoCapturer() : _capturer(nil) {
35 _capturer = 35 _capturer =
36 [[RTCAVFoundationVideoCapturerInternal alloc] initWithCapturer:this]; 36 [[RTCAVFoundationVideoCapturerInternal alloc] initWithCapturer:this];
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 167 }
168 168
169 rotation = kVideoRotation_0; 169 rotation = kVideoRotation_0;
170 } 170 }
171 171
172 OnFrame(webrtc::VideoFrame(buffer, rotation, translated_camera_time_us), 172 OnFrame(webrtc::VideoFrame(buffer, rotation, translated_camera_time_us),
173 captured_width, captured_height); 173 captured_width, captured_height);
174 } 174 }
175 175
176 } // namespace webrtc 176 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698