mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 23:39:44 +03:00
android: camera_device: Register EXPOSURE_TIME_RANGE
Register the EXPOSURE_TIME_RANGE static metadata inspecting the ExposureTime control limits as reported by the camera. If such information is not available, do not register the property. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
bc79e06531
commit
753d7536b7
1 changed files with 9 additions and 5 deletions
|
@ -895,11 +895,15 @@ const camera_metadata_t *CameraDevice::getStaticMetadata()
|
||||||
&filterArr, 1);
|
&filterArr, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t exposureTimeRange[] = {
|
const auto &exposureInfo = controlsInfo.find(&controls::ExposureTime);
|
||||||
100000, 200000000,
|
if (exposureInfo != controlsInfo.end()) {
|
||||||
};
|
int64_t exposureTimeRange[2] = {
|
||||||
staticMetadata_->addEntry(ANDROID_SENSOR_INFO_EXPOSURE_TIME_RANGE,
|
exposureInfo->second.min().get<int32_t>() * 1000LL,
|
||||||
&exposureTimeRange, 2);
|
exposureInfo->second.max().get<int32_t>() * 1000LL,
|
||||||
|
};
|
||||||
|
staticMetadata_->addEntry(ANDROID_SENSOR_INFO_EXPOSURE_TIME_RANGE,
|
||||||
|
&exposureTimeRange, 2);
|
||||||
|
}
|
||||||
|
|
||||||
staticMetadata_->addEntry(ANDROID_SENSOR_ORIENTATION, &orientation_, 1);
|
staticMetadata_->addEntry(ANDROID_SENSOR_ORIENTATION, &orientation_, 1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue