Skip to content

Instantly share code, notes, and snippets.

@PoomSmart
Created March 2, 2015 07:48
Show Gist options
  • Save PoomSmart/b2d98e5cc50de472798c to your computer and use it in GitHub Desktop.
Save PoomSmart/b2d98e5cc50de472798c to your computer and use it in GitHub Desktop.
A private AVCaptureStillImageOutput method
#import <AVFoundation/AVFoundation.h>
@interface AVCaptureStillImageOutput (PrivateAPI)
- (void)captureStillImageSurfaceAsynchronouslyFromConnection:(AVCaptureConnection *)connection completionHandler:(void (^)(IOSurfaceRef photoSurfaceRef, NSInteger photoSurfaceSize, IOSurfaceRef photoPreviewSurfaceRef, NSInteger photoPreviewSurfaceSize, CFDictionaryRef photoProperties))completionHandler;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment