Removed file RTCCameraVideoCapturer.mm that isn't needed

Also added post commit review changes.

BUG=webrtc:7898

Review-Url: https://codereview.webrtc.org/2988783002
Cr-Commit-Position: refs/heads/master@{#19145}
This commit is contained in:
jtteh
2017-07-25 15:48:39 -07:00
committed by Commit Bot
parent b1c9d1de36
commit 3b673c66a4
7 changed files with 16 additions and 464 deletions

View File

@ -13,7 +13,7 @@
NS_ASSUME_NONNULL_BEGIN
@interface AVCaptureSession (Device)
@interface AVCaptureSession (DevicePosition)
// Check the image's EXIF for the camera the image came from.
+ (AVCaptureDevicePosition)devicePositionForSampleBuffer:(CMSampleBufferRef)sampleBuffer;

View File

@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#import "AVCaptureSession+Device.h"
#import "AVCaptureSession+DevicePosition.h"
BOOL CFStringContainsString(CFStringRef theString, CFStringRef stringToFind) {
return CFStringFindWithOptions(theString,
@ -18,7 +18,7 @@ BOOL CFStringContainsString(CFStringRef theString, CFStringRef stringToFind) {
nil);
}
@implementation AVCaptureSession (Device)
@implementation AVCaptureSession (DevicePosition)
+ (AVCaptureDevicePosition)devicePositionForSampleBuffer:(CMSampleBufferRef)sampleBuffer {
// Check the image's EXIF for the camera the image came from.

View File

@ -16,7 +16,7 @@
#import "WebRTC/UIDevice+RTCDevice.h"
#endif
#import "AVCaptureSession+Device.h"
#import "AVCaptureSession+DevicePosition.h"
#import "RTCDispatcher+Private.h"
#import "WebRTC/RTCLogging.h"
@ -218,7 +218,7 @@
#if TARGET_OS_IPHONE
// Default to portrait orientation on iPhone.
webrtc::VideoRotation rotation = webrtc::kVideoRotation_90;
BOOL usingFrontCamera;
BOOL usingFrontCamera = NO;
// Check the image's EXIF for the camera the image came from as the image could have been
// delayed as we set alwaysDiscardsLateVideoFrames to NO.
AVCaptureDevicePosition cameraPosition =