Testing Android 11 2.2.0 and 2.6.0 on imx8m plus. I need to support a legacy application on Android that uses the Camera1 api. The HAL imx layer reports the number 4 for digital zoom.
CameraMetadata.cpp
This is resulting in the Android API legacy camera parameters isZoomSupported() returning true and getMaxZoom() returning 99. if I then call setZoom on the camera parameters, the output image is not changed. It appears as near as I can tell that digital zoom is ignored. It's unclear why the number 4 is used in the HAL and whether or not zoom is actually supposed to be supported or not.
If I change the metadata to report 1 instead of 4 for the zoom. The api reports false for isZoomSupported.
If zoom is supposed to be supported what do I need to change or implement in my camera? It seems the imx8m plus has IPU capability of zooming the image but that the HAL is not honoring the zoom parameters.