Consistently name property max/min functions and add step/default.

This commit is contained in:
Peter Johnson
2016-09-16 21:00:19 -07:00
parent 9bb37d5df0
commit c606671d27
10 changed files with 100 additions and 22 deletions

View File

@@ -81,8 +81,10 @@ public class CameraServerJNI {
public static native void setBooleanProperty(int property, boolean value);
public static native double getDoubleProperty(int property);
public static native void setDoubleProperty(int property, double value);
public static native double getDoublePropertyMin(int property);
public static native double getDoublePropertyMax(int property);
public static native double getPropertyMin(int property);
public static native double getPropertyMax(int property);
public static native double getPropertyStep(int property);
public static native double getPropertyDefault(int property);
public static native String getStringProperty(int property);
public static native void setStringProperty(int property, String value);
public static native int getEnumProperty(int property);

View File

@@ -70,11 +70,19 @@ public class VideoProperty {
}
public double getMin() {
return CameraServerJNI.getDoublePropertyMin(m_handle);
return CameraServerJNI.getPropertyMin(m_handle);
}
public double getMax() {
return CameraServerJNI.getDoublePropertyMax(m_handle);
return CameraServerJNI.getPropertyMax(m_handle);
}
public double getStep() {
return CameraServerJNI.getPropertyStep(m_handle);
}
public double getDefault() {
return CameraServerJNI.getPropertyDefault(m_handle);
}
// String-specific functions