Samsung s4 zoom does not support smooth zoom isSmoothZoomSupported()==false

前端 未结 2 946
一个人的身影
一个人的身影 2021-01-14 23:50

I\'ve tried to handle ZoomIn/ZoomOut at \'s4 zoom\' device in my camera record application. Because it does support only regular zoom, i.e parameters.isZoomSupported()

相关标签:
2条回答
  • 2021-01-15 00:02

    I have already found solution for Smooth control of Shutter lens on Samsung S4 Zoom device. Set device in smart mode: parameters.set("mode", "smart-auto");

    For Zoom In start: parameters.set("zoom-action", "optical-tele-start");

    For Zoom Out start: parameters.set("zoom-action", "optical-wide-start");

    For Zoom action stop: parameters.set("zoom-action", "zoom-stop");

    Shutter speed: parameters.set("zoom-speed", 1); //1,2,...

    Don't forget save parameters in the Camera instance mCamera.setParameters(parameters);

    This works fine in my device, shutter now is silent and smooth. :) Regards.

    0 讨论(0)
  • 2021-01-15 00:02

    Also, in order to get current zoom value, use this code:

                Parameters parameters = mCamera.getParameters();
                List<Integer> zoom_list = parameters.getZoomRatios();
    
                int val = 0;
    
                if(isSamsungS4Zoom){
                        //FOR S4 ZOOM
                        mZoomVal = parameters.getInt("curr_zoom_level");
                        val = zoom_list.get(mZoomVal);
                }else{
                        val = zoom_list.get(mZoomVal);
                }
    
    0 讨论(0)
提交回复
热议问题