* 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 */
| 450 | * false camera has not initialized, no value available |
| 451 | */ |
| 452 | bool 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. |