Skip to content

Commit

Permalink
Merge pull request BradLarson#1136 from jamieomatthews/master
Browse files Browse the repository at this point in the history
fixed gpuimage benchmark suite for live video streams
  • Loading branch information
BradLarson committed Sep 7, 2013
2 parents 1e3c263 + 6bce791 commit 5b54dfc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ -(void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMS

CIImage *outputImage = [sepiaCoreImageFilter outputImage];

[coreImageContext drawImage:outputImage atPoint:CGPointMake(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 5b54dfc

Please sign in to comment.