|
|
|
@ -364,11 +364,13 @@ int NdkCamera::open(const std::string& cameraId) {
|
|
|
|
|
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);
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
|
std::string afModes;
|
|
|
|
|
for (int idx = 0; idx < e.count; idx++)
|
|
|
|
|
{
|
|
|
|
|
unsigned int m = e.data.u8[idx];
|
|
|
|
|
XYLOG(XYLOG_SEVERITY_DEBUG, "Available AF Mode %u", m);
|
|
|
|
|
afModes += std::to_string(e.data.u8[idx]) + " ";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
XYLOG(XYLOG_SEVERITY_DEBUG, "Available AF Mode: ", m);
|
|
|
|
|
#endif
|
|
|
|
|
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 zoomRatioMax = val.data.f[1];
|
|
|
|
|
|
|
|
|
|
ALOGI("Zoom Ratio Range: %f -> %f", zoomRatioMin, zoomRatioMax);
|
|
|
|
|
ALOGI("Zoom Ratio Range: [%f,%f]", zoomRatioMin, zoomRatioMax);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|