Remote test/random?!? colorspace in AVcapture

This commit is contained in:
Zakk 2020-04-13 19:50:39 -04:00
parent 01479aca32
commit f13e2d46d8
3 changed files with 5 additions and 7 deletions

View file

@ -72,11 +72,10 @@
CGColorSpaceRef cSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_709);
NSData *cData = CFBridgingRelease(CGColorSpaceCopyICCData(cSpace));
NSLog(@"NADATA %@", cData);
//CGColorSpaceRef cSpace = CGColorSpaceCreateWithName(kCGColorSpaceITUR_709);
//NSData *cData = CFBridgingRelease(CGColorSpaceCopyICCData(cSpace));
// [videoSettings setValue:@{AVVideoColorPrimariesKey: AVVideoColorPrimaries_ITU_R_709_2, AVVideoTransferFunctionKey: AVVideoTransferFunction_ITU_R_709_2, AVVideoYCbCrMatrixKey: AVVideoYCbCrMatrix_ITU_R_601_4} forKey:AVVideoColorPropertiesKey];
[videoSettings setValue:@{@"IOSurfaceColorSpace": cData} forKey:(NSString *)kCVPixelBufferIOSurfacePropertiesKey];
[videoSettings setValue:@{} forKey:(NSString *)kCVPixelBufferIOSurfacePropertiesKey];
_video_capture_output = [[AVCaptureVideoDataOutput alloc] init];

View file

@ -182,9 +182,7 @@
return NO;
}
NSLog(@"CONNECT %@:%d TO %@:%d FORMAT %@", node, outBus, toNode, inBus, format);
OSStatus err;
UInt32 bus = inBus;

View file

@ -24,6 +24,7 @@
-(NSArray *)layouts
{
NSLog(@"CALLED LAYOUTS!");
NSMutableArray *layouts = self.captureController.sourceLayouts.mutableCopy;
if (self.captureController.liveLayout)