I'm an intermediate android programmer. I've a simple application created for learning camera. My app is using camera.takePicture()
method to register callbacks for JPEG callback and eventually capture the picture. But I feel that it may also be possible to capture the image using setOneShotPreviewCallback()
and providing a callback.
My question is:
setOneShotPreviewCallback()
?Thanks in advance.
takePicture()
uses (potentially) the camera's full resolution. The preview gives you the image shown on screen which is more usually the screen's resolution. The picture will be higher resolution in general and higher quality. Note that you get something like JPEG-encoded data from the picture callback, but raw image buffer data in the preview callback.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments