diff --git a/examples/iOS/BenchmarkSuite/BenchmarkSuite/ImageFilteringBenchmarkController.m b/examples/iOS/BenchmarkSuite/BenchmarkSuite/ImageFilteringBenchmarkController.m index 43b21ca06..35e55bbac 100755 --- a/examples/iOS/BenchmarkSuite/BenchmarkSuite/ImageFilteringBenchmarkController.m +++ b/examples/iOS/BenchmarkSuite/BenchmarkSuite/ImageFilteringBenchmarkController.m @@ -131,12 +131,12 @@ - (UIImage *)imageProcessedUsingGPUImage:(UIImage *)imageToProcess; GPUImagePicture *stillImageSource = [[GPUImagePicture alloc] initWithImage:imageToProcess]; GPUImageSepiaFilter *stillImageFilter = [[GPUImageSepiaFilter alloc] init]; - [stillImageFilter prepareForImageCapture]; [stillImageSource addTarget:stillImageFilter]; + [stillImageFilter useNextFrameForImageCapture]; [stillImageSource processImage]; - UIImage *currentFilteredVideoFrame = [stillImageFilter imageFromCurrentlyProcessedOutput]; + UIImage *currentFilteredVideoFrame = [stillImageFilter imageFromCurrentFramebuffer]; elapsedTime = CFAbsoluteTimeGetCurrent() - startTime; processingTimeForGPUImageRoutine = elapsedTime * 1000.0; diff --git a/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringDisplayController.m b/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringDisplayController.m index 53e4a9f90..34ed594ea 100755 --- a/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringDisplayController.m +++ b/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringDisplayController.m @@ -237,8 +237,8 @@ -(void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMS unsigned char *data = (unsigned char *)CVPixelBufferGetBaseAddress(pixelBuffer); - int bufferHeight = CVPixelBufferGetHeight(pixelBuffer); - int bufferWidth = CVPixelBufferGetWidth(pixelBuffer); + size_t bufferHeight = CVPixelBufferGetHeight(pixelBuffer); + size_t bufferWidth = CVPixelBufferGetWidth(pixelBuffer); NSInteger myDataLength = bufferWidth * bufferHeight * 4;