Package edu.wpi.cscore
Class ImageSink
- java.lang.Object
-
- edu.wpi.cscore.VideoSink
-
- edu.wpi.cscore.ImageSink
-
- All Implemented Interfaces:
AutoCloseable
public abstract class ImageSink extends VideoSink
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.wpi.cscore.VideoSink
VideoSink.Kind
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedImageSink(int handle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetError()Get error string.voidsetDescription(String description)Set sink description.voidsetEnabled(boolean enabled)Enable or disable getting new frames.-
Methods inherited from class edu.wpi.cscore.VideoSink
close, enumerateProperties, enumerateSinks, equals, getConfigJson, getDescription, getHandle, getKind, getKindFromInt, getName, getProperty, getSource, getSourceProperty, hashCode, isValid, setConfigJson, setSource
-
-
-
-
Method Detail
-
setDescription
public void setDescription(String description)
Set sink description.- Parameters:
description- Description
-
getError
public String getError()
Get error string. Call this if WaitForFrame() returns 0 to determine what the error is.
-
setEnabled
public void setEnabled(boolean enabled)
Enable or disable getting new frames. Disabling will cause processFrame (for callback-based CvSinks) to not be called and WaitForFrame() to not return. This can be used to save processor resources when frames are not needed.
-
-