return ret;
}
同时在该文件的sendCommand函数处理adapter传下的eCmd_setCShotSpeed。eCmd_setCShotSpeed定义在alps\mediatek\platform\mt6589\hardware\camera\hal\adapter\inc\scenario\shot\IShot.h
case eCmd_setCShotSpeed:
ret = onCmd_setCShotSpeed(arg1);
break;
(3)Adapter在以下文件的函数setCShotSpeed发送eCmd_setCShotSpeed。
MtkPhotoCamAdapter.Capture.cpp (alps\mediatek\platform\mt6589\hardware\camera\hal\adapter\mtkphoto):
MtkZsdNccCamAdapter.Capture.cpp (alps\mediatek\platform\mt6589\hardware\camera\hal\adapter\mtkzsd\mtkzsdncc):
status_t
CamAdapter::
setCShotSpeed(int32_t i4CShotSpeeed)
{
if(i4CShotSpeeed <= 0)
{
MY_LOGE("can not set continuous shot speed as %d fps)", i4CShotSpeeed);
return BAD_VALUE;
}