GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

reuse GPUImageView of GPUImageStillCamera for more filters to apply

Open CullenSUN opened this issue 14 years ago • 1 comments

Hi Brad,

I believe a lot people here are working on sth similar to me:

  1. use GPUImageStillCamera to take a photo with several filters OR a Doing_Nothing filter
  2. pauseCameraCapture, and the GPUImageView will display the captured image (last frame from the camera).
  3. In order to apply a set of filters to the captured image, I have to get UIImage *capturedImage from capturePhotoAsJPEGProcessedUpToFilter: and create another GPUImagePicture *stillImageSource = [[GPUImagePicture alloc] initWithImage:capturedImage]; add target: filters, and addTarget: a GPUImageView, then processImage. I am thinking, since the GPUImageStillCamera's GPUImageView is displaying the image texture, can we just use it and add filters from there instead of create a GPUImagePicture... because it takes about as long as 1 second.

Thanks. Appreciate your efforts for developing this framework.

CullenSUN avatar Aug 12 '12 10:08 CullenSUN

i have the same question to get captured image (last frame from the camera) ,and use it create another GPUImagePicture. can't captured original image?

vinxu avatar Sep 24 '12 06:09 vinxu