06-27-2012 01:44 PM
Is it possible to perform image processing (sepia, vignetting) before the picture is actually taken?
E.g.: Instagram Live image processing.
Solved! Go to Solution.
06-28-2012 11:55 AM
Actually, what I said above is not entirely true...
You have access to the realtime viewfinder image data, but you would have to make a writeable copy of it and then blit it to your own viewfinder window. You would likely just keep the OS-provided camera viewfinder window invisible in this case.
This would allow you to have realtime effects in the viewfinder (might take a bit of a framerate hit due to the effect, but not terribly so).
As for inserting the effect in the full-sized image, you would have to decompress the JPEG buffer prior to saving, apply the same effect, recompress, and then save.
The upcoming API would allow you to do realtime in-place modification of the viewfinder buffers prior to them being displayed in the OS-provided camera viewfinder window. You could also do realtime modification of captured images, however you would still need to handle decompression if you are working in the JPEG domain. I can't recall whether uncompressed still image capture is supported in the current release, however it will definitely be available shortly - which would eliminate the decompress-modify-recompress pass.