|
|
@ -1602,7 +1602,7 @@ bool CPhoneDevice::TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c
|
|
|
|
if(!GpioControl::GetSelftestStatus(waitTime))
|
|
|
|
if(!GpioControl::GetSelftestStatus(waitTime))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_isSelfTesting.store(true);
|
|
|
|
m_isSelfTesting.store(true);
|
|
|
|
waitTime = (waitTime != 0) ? (waitTime * 1024) : 10240;
|
|
|
|
waitTime = (waitTime != 0) ? (waitTime * 1000) : 10000;
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(waitTime));
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(waitTime));
|
|
|
|
m_isSelfTesting.store(false);
|
|
|
|
m_isSelfTesting.store(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1809,7 +1809,7 @@ bool CPhoneDevice::TakeVideoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c
|
|
|
|
if(!GpioControl::GetSelftestStatus(waitTime))
|
|
|
|
if(!GpioControl::GetSelftestStatus(waitTime))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_isSelfTesting.store(true);
|
|
|
|
m_isSelfTesting.store(true);
|
|
|
|
waitTime = (waitTime != 0) ? (waitTime * 1024) : 10240;
|
|
|
|
waitTime = (waitTime != 0) ? (waitTime * 1000) : 10000;
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(waitTime));
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(waitTime));
|
|
|
|
m_isSelfTesting.store(false);
|
|
|
|
m_isSelfTesting.store(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1931,7 +1931,7 @@ bool CPhoneDevice::StartPushStreaming(IDevice::PHOTO_INFO& photoInfo, const std:
|
|
|
|
if(!GpioControl::GetSelftestStatus(waitTime))
|
|
|
|
if(!GpioControl::GetSelftestStatus(waitTime))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_isSelfTesting.store(true);
|
|
|
|
m_isSelfTesting.store(true);
|
|
|
|
waitTime = (waitTime != 0) ? (waitTime * 1024) : 10240;
|
|
|
|
waitTime = (waitTime != 0) ? (waitTime * 1000) : 10000;
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(waitTime));
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(waitTime));
|
|
|
|
m_isSelfTesting.store(false);
|
|
|
|
m_isSelfTesting.store(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2234,7 +2234,7 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector<
|
|
|
|
{
|
|
|
|
{
|
|
|
|
uint32_t waitTime = localPhotoInfo.selfTestingTime;
|
|
|
|
uint32_t waitTime = localPhotoInfo.selfTestingTime;
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera is SelfTesting Time=%u s", waitTime);
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera is SelfTesting Time=%u s", waitTime);
|
|
|
|
waitTime = (waitTime <= 5 ) ? 0 : ((waitTime - 5) * 1024);
|
|
|
|
waitTime = (waitTime <= 5 ) ? 0 : ((waitTime - 5) * 1000);
|
|
|
|
if (waitTime > 0)
|
|
|
|
if (waitTime > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(waitTime));
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(waitTime));
|
|
|
@ -2340,7 +2340,7 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector<
|
|
|
|
pThis->m_isSelfTesting.store(true);
|
|
|
|
pThis->m_isSelfTesting.store(true);
|
|
|
|
time_t remaintime = GpioControl::GetSelfTestRemain(waitTime);
|
|
|
|
time_t remaintime = GpioControl::GetSelfTestRemain(waitTime);
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera is SeltTesting,remaining selfTestingtime=%u", remaintime);
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera is SeltTesting,remaining selfTestingtime=%u", remaintime);
|
|
|
|
remaintime = (remaintime != 0) ? (remaintime * 1024) : 10240;
|
|
|
|
remaintime = (remaintime != 0) ? (remaintime * 1000) : 10000;
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(remaintime));
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(remaintime));
|
|
|
|
pThis->m_isSelfTesting.store(false);
|
|
|
|
pThis->m_isSelfTesting.store(false);
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera SeltTesting is over");
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera SeltTesting is over");
|
|
|
@ -2397,7 +2397,7 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector<
|
|
|
|
pThis->m_isSelfTesting.store(true);
|
|
|
|
pThis->m_isSelfTesting.store(true);
|
|
|
|
time_t remaintime = GpioControl::GetSelfTestRemain(waitTime);
|
|
|
|
time_t remaintime = GpioControl::GetSelfTestRemain(waitTime);
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera is SeltTesting,remaining selfTestingtime=%u", remaintime);
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera is SeltTesting,remaining selfTestingtime=%u", remaintime);
|
|
|
|
remaintime = (remaintime != 0) ? (remaintime * 1024) : 10240;
|
|
|
|
remaintime = (remaintime != 0) ? (remaintime * 1000) : 10000;
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(remaintime));
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(remaintime));
|
|
|
|
pThis->m_isSelfTesting.store(false);
|
|
|
|
pThis->m_isSelfTesting.store(false);
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera SeltTesting is over");
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera SeltTesting is over");
|
|
|
@ -2432,7 +2432,7 @@ bool CPhoneDevice::TakePhoto(const IDevice::PHOTO_INFO& photoInfo, const vector<
|
|
|
|
pThis->m_isSelfTesting.store(true);
|
|
|
|
pThis->m_isSelfTesting.store(true);
|
|
|
|
time_t remaintime = GpioControl::GetSelfTestRemain(waitTime);
|
|
|
|
time_t remaintime = GpioControl::GetSelfTestRemain(waitTime);
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera is SeltTesting,remaining selfTestingtime=%u", remaintime);
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera is SeltTesting,remaining selfTestingtime=%u", remaintime);
|
|
|
|
remaintime = (remaintime != 0) ? (remaintime * 1024) : 10240;
|
|
|
|
remaintime = (remaintime != 0) ? (remaintime * 1000) : 10000;
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(remaintime));
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(remaintime));
|
|
|
|
pThis->m_isSelfTesting.store(false);
|
|
|
|
pThis->m_isSelfTesting.store(false);
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera SeltTesting is over");
|
|
|
|
XYLOG(XYLOG_SEVERITY_INFO, "Camera SeltTesting is over");
|
|
|
|