Add methods to get property name and enumerate properties.

Also add method to remove property by handle.
This commit is contained in:
Peter Johnson
2016-08-26 08:19:28 -07:00
parent 0158fd35f0
commit 0fbb2e8a14
10 changed files with 118 additions and 30 deletions

View File

@@ -60,9 +60,15 @@ public class CvSource extends VideoSource {
// std::function<void(String name, VideoProperty property)>
// onChange);
/// Remove a property.
/// @param name Property name
//public void removeProperty(VdeoProperty property) {
// CameraServerJNI.removeSourceProperty(m_handle, property.m_handle);
//}
/// Remove a property.
/// @param name Property name
public void removeProperty(String name) {
CameraServerJNI.removeSourceProperty(m_handle, name);
CameraServerJNI.removeSourcePropertyByName(m_handle, name);
}
}