I am creating a camera application that accesses a preview frame by implementing
android.hardware.Camera.PreviewCallback#onPreviewFrame(byte[] data, Camera camera).
When I zoom in on the camera, causing
android.hardware.Camera.Parameters#setZoom(int zoom)
it does not seem to affect the data that i get in onPreviewFrame. The preview screen itself runs as expected.
This happens on the LG Nexus 4.
How can I get the actual scale that applies to the preview data. Do I have any way to find out if my device really uses data scale or not?
Thanks,
source
share