mobile c++ 如何实现camera自动对焦功能?为什么我这样都没有对焦效果?
IAMCameraControl gcap.pCamControl
if ( (gcap.pCamControl) )
{
hr = gcap.pCamControl->GetRange( CameraControl_Focus, &nMin, &nMax, &nStep, &nDefault, &nFlags );
hr = gcap.pCamControl->Set( CameraControl_Focus, 50, CameraControl_Flags_Manual );
hr = gcap.pCamControl->Set( CameraControl_Focus, 1, CameraControl_Flags_Manual );
}