Android: scaling does not affect the preview data passed onPreviewFrame ()

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,

+4
source share
1 answer

, ... HDR (Camera.Parameters.setSceneMode("hdr")) (, , HDR ). , , Nexus 4. getZoom() , .

+1

Source: https://habr.com/ru/post/1529632/


All Articles