Created
September 21, 2015 06:30
-
-
Save dpanzer/0fa81c065781241fb324 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ | |
UIImage *imgBinary = [self.myScanDelegate createGPUBinaryImage:fixedRotation]; | |
//UIImageWriteToSavedPhotosAlbum(self.mostRecentBinary, self, @selector(finishedSavingToCameraRoll:didFinishSavingWithError:contextInfo:), nil); | |
//NSLog(@"About to process image with dimensions %.0f x %.0f", binaryImg.size.width, binaryImg.size.height); | |
NSLog(@"Starting blink static scan with mostRecentBinary = %p...", imgBinary); | |
WFBlinkDelegate *blinkDelegate = [WFBlinkDelegate new]; | |
blinkDelegate.imgFrame = fixedRotation; | |
blinkDelegate.imgBinary = imgBinary; | |
blinkDelegate.myScanDelegate = self.myScanDelegate; | |
blinkDelegate.receipt = self.receipt; | |
blinkDelegate.scanViewController = self; | |
blinkDelegate.lookupResults = self.lookupResults; | |
[self.blinkDelegatesArray addObject:blinkDelegate]; | |
[self.coordinator processImage:imgBinary scanningRegion:CGRectMake(0.0, 0.0, 1.0, 1.0) delegate:blinkDelegate]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment