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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/Video/RTCCameraVideoCapturer.m

Issue 2862543002: Split iOS sdk in to separate targets (Closed)
Patch Set: Add required lib to metal target 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 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2017 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 #import <Foundation/Foundation.h> 11 #import <Foundation/Foundation.h>
12 12
13 #import "WebRTC/RTCCameraVideoCapturer.h" 13 #import "WebRTC/RTCCameraVideoCapturer.h"
14 #import "WebRTC/RTCLogging.h" 14 #import "WebRTC/RTCLogging.h"
15 15
16 #if TARGET_OS_IPHONE 16 #if TARGET_OS_IPHONE
17 #import "WebRTC/UIDevice+RTCDevice.h" 17 #import "WebRTC/UIDevice+RTCDevice.h"
18 #endif 18 #endif
19 19
20 #import "RTCDispatcher+Private.h" 20 #import "Common/RTCDispatcher+Private.h"
21 21
22 const int64_t kNanosecondsPerSecond = 1000000000; 22 const int64_t kNanosecondsPerSecond = 1000000000;
23 23
24 static inline BOOL IsMediaSubTypeSupported(FourCharCode mediaSubType) { 24 static inline BOOL IsMediaSubTypeSupported(FourCharCode mediaSubType) {
25 return (mediaSubType == kCVPixelFormatType_420YpCbCr8PlanarFullRange || 25 return (mediaSubType == kCVPixelFormatType_420YpCbCr8PlanarFullRange ||
26 mediaSubType == kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange); 26 mediaSubType == kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange);
27 } 27 }
28 28
29 @interface RTCCameraVideoCapturer ()<AVCaptureVideoDataOutputSampleBufferDelegat e> 29 @interface RTCCameraVideoCapturer ()<AVCaptureVideoDataOutputSampleBufferDelegat e>
30 @property(nonatomic, readonly) dispatch_queue_t frameQueue; 30 @property(nonatomic, readonly) dispatch_queue_t frameQueue;
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 case UIDeviceOrientationFaceUp: 415 case UIDeviceOrientationFaceUp:
416 case UIDeviceOrientationFaceDown: 416 case UIDeviceOrientationFaceDown:
417 case UIDeviceOrientationUnknown: 417 case UIDeviceOrientationUnknown:
418 // Ignore. 418 // Ignore.
419 break; 419 break;
420 } 420 }
421 #endif 421 #endif
422 } 422 }
423 423
424 @end 424 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698