1

Android: Zoom not effecting preview frame data passed to onPreviewFrame()

view story
linux-howto

http://stackoverflow.com – I'm building a camera app which access the preview frame by implementing android.hardware.Camera.PreviewCallback#onPreviewFrame(byte[] data, Camera camera). When I change my camera zoom by calling the android.hardware.Camera.Parameters#setZoom(int zoom) it doesn't seem to have any effect on the data i get in the onPreviewFrame. The preview display itself is effected as expected. This is happening on LG Nexus 4. How can I get the actual zoom which is applied on the preview data. do I have any way of knowing if my device actually applies zoom on the data or not? Thanks, (HowTos)