优化日志格式

hdrplus
Matthew 11 months ago
parent 2634cafeae
commit c0ca4f736c

@ -364,11 +364,13 @@ int NdkCamera::open(const std::string& cameraId) {
status = ACameraMetadata_getConstEntry(camera_metadata,ACAMERA_CONTROL_AF_AVAILABLE_MODES, &e); status = ACameraMetadata_getConstEntry(camera_metadata,ACAMERA_CONTROL_AF_AVAILABLE_MODES, &e);
// AASSERT(status == ACAMERA_OK, "ACameraMetadata_getConstEntry::ACAMERA_CONTROL_AF_AVAILABLE_MODES return error, %d", status); // AASSERT(status == ACAMERA_OK, "ACameraMetadata_getConstEntry::ACAMERA_CONTROL_AF_AVAILABLE_MODES return error, %d", status);
#ifdef _DEBUG #ifdef _DEBUG
std::string afModes;
for (int idx = 0; idx < e.count; idx++) for (int idx = 0; idx < e.count; idx++)
{ {
unsigned int m = e.data.u8[idx]; afModes += std::to_string(e.data.u8[idx]) + " ";
XYLOG(XYLOG_SEVERITY_DEBUG, "Available AF Mode %u", m);
} }
XYLOG(XYLOG_SEVERITY_DEBUG, "Available AF Mode: ", m);
#endif #endif
afSupported = (status == ACAMERA_OK) && !(e.count == 0 || (e.count == 1 && e.data.u8[0] == ACAMERA_CONTROL_AF_MODE_OFF)); afSupported = (status == ACAMERA_OK) && !(e.count == 0 || (e.count == 1 && e.data.u8[0] == ACAMERA_CONTROL_AF_MODE_OFF));
} }
@ -445,7 +447,7 @@ int NdkCamera::open(const std::string& cameraId) {
float zoomRatioMin = val.data.f[0]; float zoomRatioMin = val.data.f[0];
float zoomRatioMax = val.data.f[1]; float zoomRatioMax = val.data.f[1];
ALOGI("Zoom Ratio Range: %f -> %f", zoomRatioMin, zoomRatioMax); ALOGI("Zoom Ratio Range: [%f,%f]", zoomRatioMin, zoomRatioMax);
} }
} }

Loading…
Cancel
Save