mirror of
https://github.com/zakk4223/CocoaSplit.git
synced 2026-05-15 14:15:50 -06:00
Remote test/random?!? colorspace in AVcapture
This commit is contained in:
parent
01479aca32
commit
f13e2d46d8
3 changed files with 5 additions and 7 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
|
|
@ -182,9 +182,7 @@
|
|||
return NO;
|
||||
}
|
||||
|
||||
|
||||
NSLog(@"CONNECT %@:%d TO %@:%d FORMAT %@", node, outBus, toNode, inBus, format);
|
||||
|
||||
|
||||
OSStatus err;
|
||||
|
||||
UInt32 bus = inBus;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
-(NSArray *)layouts
|
||||
{
|
||||
NSLog(@"CALLED LAYOUTS!");
|
||||
NSMutableArray *layouts = self.captureController.sourceLayouts.mutableCopy;
|
||||
|
||||
if (self.captureController.liveLayout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue