Test digital zoom with ipu for camera preview.
Board :sarbre-sd (imx6dq)
BSP : android 13.4ga


In the above flow, one frame buffer is processed in four steps at camera preview.
Add the step to change the frame buffer before step 4 , the added step which zoom one preview frame.
The figure below shows the crop function of ipu lib, we use this function scale the frame.


Test result:
preview zoom levle 0:


preview zoom level max:


When taking pictures with 5M pixels and the zoom is over level 1, the picture size is not 2592x1944 but 2016x1512.
The underlying reason for it is that ipu crop function only supports the 2048x2048 maximum output .
Thumbnails of test result :

