Commit 08279f33 authored by Alex Kushleyev's avatar Alex Kushleyev
Browse files

enable tof processing by default if persist.camera.modalai.tof param is not set

parent 72a9bccd
Pipeline #241363168 passed with stage
in 1 minute and 2 seconds
......@@ -200,10 +200,13 @@ int PerCameraMgr::Initialize(const camera_module_t* pCameraModule, ///< Cam
{
if (IsTOFCamera())
{
char enableAppTofProcessing = '0';
property_get("persist.camera.modalai.tof", &enableAppTofProcessing, &enableAppTofProcessing);
// Check param whether libcamera should send use raw or processed TOF data
// This param should either be omitted or set to 1 using linux cmd "setprop persist.camera.modalai.tof 1"
// Setting this param to 0 is no longer supported
int enableAppTofProcessing = 1;
enableAppTofProcessing = property_get_bool("persist.camera.modalai.tof",(int8_t)enableAppTofProcessing);
if (enableAppTofProcessing == '1')
if (enableAppTofProcessing == 1)
{
m_pTOFInterface = TOFCreateInterface();
......@@ -1604,4 +1607,4 @@ bool PerCameraMgr::LoadLensParamsFromFile()
<< " " << m_lensParameters.distortionRadial.at (2) << std::endl);
return status;
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment