Skip to content

Commit

Permalink
Fixed a compilation issue with BenchmarkSuite.
Browse files Browse the repository at this point in the history
  • Loading branch information
BradLarson committed Mar 18, 2014
1 parent dfcebf2 commit 551fc8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down

0 comments on commit 551fc8c

Please sign in to comment.