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

Method value

camera/basic/src/main/cpp/camera_manager.h:45–47  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

43 * value: in percent (50 for 50%)
44 */
45 T value(int percent) {
46 return static_cast<T>(min_ + (max_ - min_) * percent / 100);
47 }
48 RangeValue() { min_ = max_ = static_cast<T>(0); }
49
50 bool Supported(void) const { return (min_ != max_); }

Callers 5

NDKCameraMethod · 0.45
InitLoggingFunction · 0.45
createSwapChainMethod · 0.45
createCommandPoolMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected