2

Is there a quality difference in the captured image using camera.takePicture (sh...

 2 years ago
source link: https://www.codesd.com/item/is-there-a-quality-difference-in-the-captured-image-using-camera-takepicture-shutter-reminder-jpeg-reminder-and-setoneshotpreviewcallback.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Is there a quality difference in the captured image using camera.takePicture (shutter reminder, jpeg reminder) and setOneShotPreviewCallback

advertisements

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:

  • Will there be any differences in image quality between the 2 approaches?
  • Any additional things to be taken care of when trying to construct image using 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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK