BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.24k stars 4.61k forks source link

stillCamera startCameraCapture when no filter #2326

Closed ashen-23 closed 8 years ago

ashen-23 commented 8 years ago

if I don't need filter sometime, what is the parameter 'finalFilterInChain' in "public func capturePhotoAsJPEGProcessedUpToFilter(finalFilterInChain: GPUImageOutput!, withCompletionHandler block: ((NSData!, NSError!) -> Void)!)" ?

thanks a lot

BradLarson commented 8 years ago

I don't believe there currently is a way to capture a photo directly from a still photo camera, without any filters, in the original GPUImage. This is a design flaw that I've corrected in GPUImage 2.

You could simply use a passthrough filter, like a brightness filter set to the default value, and capture from that.