|
|
|
@ -412,6 +412,11 @@ bool CPhoneDevice::QuerySystemProperties(std::map<std::string, std::string>& pro
|
|
|
|
|
snprintf(str, sizeof(str), "%.1f", val);
|
|
|
|
|
it->second = str;
|
|
|
|
|
}
|
|
|
|
|
else if (it->first == (PROP_LIGHT))
|
|
|
|
|
{
|
|
|
|
|
int val = GpioControl::getLightAdc();
|
|
|
|
|
it->second = std::to_string(val);
|
|
|
|
|
}
|
|
|
|
|
else if (it->first == (PROP_CHARGING_CURRENT))
|
|
|
|
|
{
|
|
|
|
|
it->second = std::to_string(GpioControl::getChargingCurrent());
|
|
|
|
@ -1140,11 +1145,12 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat)
|
|
|
|
|
|
|
|
|
|
NdkCamera::CAPTURE_RESULT captureResult = mCamera->getCaptureResult();
|
|
|
|
|
char str[128] = { 0 };
|
|
|
|
|
snprintf(str, sizeof(str), "AE=%u EXPS=%ums ISO=%d AF=%u FD=%.3f AFS=%u HDR=%d", captureResult.autoExposure,
|
|
|
|
|
snprintf(str, sizeof(str), "AE=%u EXPS=%ums ISO=%d AF=%u LDR=%d AFS=%u HDR=%d", captureResult.autoExposure,
|
|
|
|
|
(unsigned int)(captureResult.exposureTime / 1000000),
|
|
|
|
|
captureResult.sensitibity,
|
|
|
|
|
captureResult.autoFocus,
|
|
|
|
|
isnan(captureResult.FocusDistance) ? 0 : captureResult.FocusDistance,
|
|
|
|
|
// isnan(captureResult.FocusDistance) ? 0 : captureResult.FocusDistance,
|
|
|
|
|
GpioControl::getLightAdc(),
|
|
|
|
|
(unsigned int)captureResult.afState,
|
|
|
|
|
captureResult.hdrMode);
|
|
|
|
|
// cv::putText(mat, str, cv::Point(0, mat.rows - 20), cv::FONT_HERSHEY_COMPLEX, fontScale, scalar, thickness1, cv::LINE_AA);
|
|
|
|
|