Skip to content

Commit

Permalink
updated video processing benchmark - CoreImage processing now uses en…
Browse files Browse the repository at this point in the history
…tire screen
  • Loading branch information
jamieomatthews committed Aug 19, 2013
1 parent 796919d commit 6bce791
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,10 @@ -(void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMS

CIImage *outputImage = [sepiaCoreImageFilter outputImage];

//[coreImageContext drawImage:outputImage atPoint:CGPointMake(0.0, 0.0) fromRect:[inputImage extent]];
[coreImageContext drawImage:outputImage inRect:CGRectMake(0, 0, 0, 0) fromRect:[inputImage extent]];
CGFloat scale = UIScreen.mainScreen.scale;
CGRect s = CGRectMake(0, 0, [[UIScreen mainScreen] bounds].size.width * scale, [[UIScreen mainScreen] bounds].size.height * scale);
[coreImageContext drawImage:outputImage inRect:s fromRect:[inputImage extent]];

[self.openGLESContext presentRenderbuffer:GL_RENDERBUFFER];
elapsedTime = CFAbsoluteTimeGetCurrent() - startTime;

Expand Down

0 comments on commit 6bce791

Please sign in to comment.