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

Method value

camera/texture-view/src/main/cpp/camera_manager.h:55–57  ·  view source on GitHub ↗

* return absolute value from relative value * value: in percent (50 for 50%) */

Source from the content-addressed store, hash-verified

53 * value: in percent (50 for 50%)
54 */
55 T value(int percent) {
56 return static_cast<T>(min_ + (max_ - min_) * percent / 100);
57 }
58 RangeValue() { min_ = max_ = static_cast<T>(0); }
59
60 bool Supported(void) const { return (min_ != max_); }

Callers 1

NDKCameraMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected