MCPcopy Create free account
hub / github.com/android/ndk-samples / GetExposureRange

Method GetExposureRange

camera/basic/src/main/cpp/camera_manager.cpp:452–462  ·  view source on GitHub ↗

* Retrieve Camera Exposure adjustable range. * * @param min Camera minimium exposure time in nanoseconds * @param max Camera maximum exposure tiem in nanoseconds * * @return true min and max are loaded with the camera's exposure values * false camera has not initialized, no value available */

Source from the content-addressed store, hash-verified

450 * false camera has not initialized, no value available
451 */
452bool NDKCamera::GetExposureRange(int64_t* min, int64_t* max, int64_t* curVal) {
453 if (!exposureRange_.Supported() || !exposureTime_ || !min || !max ||
454 !curVal) {
455 return false;
456 }
457 *min = exposureRange_.min_;
458 *max = exposureRange_.max_;
459 *curVal = exposureTime_;
460
461 return true;
462}
463
464/**
465 * Retrieve Camera sensitivity range.

Callers 1

EnableUIMethod · 0.45

Calls 1

SupportedMethod · 0.45

Tested by

no test coverage detected