Skip to content

Instantly share code, notes, and snippets.

@cxa
Last active July 19, 2016 17:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cxa/394d41cece99d97cdd6423e38e900e77 to your computer and use it in GitHub Desktop.
Save cxa/394d41cece99d97cdd6423e38e900e77 to your computer and use it in GitHub Desktop.
if ( rawEnabled && self.photoOutput.availableRawPhotoPixelFormatTypes.count ) {
//photoSettings = [[AVCapturePhotoBracketSettings alloc] initWithFormat:nil rawPixelFormatType:(OSType)(((NSNumber *)self.photoOutput.availableRawPhotoPixelFormatTypes[0]).unsignedLongValue) bracketedSettings:bracketedSettings];
photoSettings = [AVCapturePhotoBracketSettings photoBracketSettingsWithRawPixelFormatType:(OSType)(((NSNumber *)self.photoOutput.availableRawPhotoPixelFormatTypes[0]).unsignedLongValue) processedFormat:nil bracketedSettings:bracketedSettings];
}
else {
//photoSettings = [[AVCapturePhotoBracketSettings alloc] initWithFormat:@{ AVVideoCodecKey : AVVideoCodecJPEG } rawPixelFormatType:0 bracketedSettings:bracketedSettings];
photoSettings = [AVCapturePhotoBracketSettings photoBracketSettingsWithRawPixelFormatType:0 processedFormat:@{ AVVideoCodecKey : AVVideoCodecJPEG } bracketedSettings:bracketedSettings];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment