Implement CvSink.

* Make CvSink constructor explicit.

* Add SetDescription function.
This commit is contained in:
Peter Johnson
2016-10-26 23:37:00 -07:00
parent 9a44a38141
commit c66a55d81a
11 changed files with 263 additions and 64 deletions

View File

@@ -32,6 +32,12 @@ public class CvSink extends VideoSink {
// super(CameraServerJNI.createCvSinkCallback(name, processFrame));
//}
/// Set sink description.
/// @param description Description
public void setDescription(String description) {
CameraServerJNI.setSinkDescription(m_handle, description);
}
/// Wait for the next frame and get the image.
/// @return Frame time, or 0 on error (call GetError() to obtain the error
/// message);