public final class CameraServerSource extends edu.wpi.first.shuffleboard.api.sources.AbstractDataSource<CameraServerData>
Type | Property and Description |
---|---|
javafx.beans.property.IntegerProperty |
targetCompression |
javafx.beans.property.IntegerProperty |
targetFps |
javafx.beans.property.Property<Resolution> |
targetResolution |
Modifier and Type | Field and Description |
---|---|
static Resolution |
MAX_RESOLUTION
The maximum supported resolution.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
static CameraServerSource |
forName(java.lang.String name) |
int |
getTargetCompression()
Gets the target compression level of the stream as set by
setTargetCompression(int) . |
int |
getTargetFps()
Gets the target FPS of the stream as set by
setTargetFps(int) . |
Resolution |
getTargetResolution()
Gets the target resolution of the stream as set by
setTargetResolution(edu.wpi.first.shuffleboard.plugin.cameraserver.data.Resolution) . |
edu.wpi.first.shuffleboard.api.sources.SourceType |
getType() |
void |
setTargetCompression(int targetCompression)
Sets the compression of the MJPEG stream, in the range [0, 100].
|
void |
setTargetFps(int targetFps)
Sets the output FPS of the camera.
|
void |
setTargetResolution(Resolution targetResolution)
Sets the target resolution of the stream.
|
javafx.beans.property.IntegerProperty |
targetCompressionProperty() |
javafx.beans.property.IntegerProperty |
targetFpsProperty() |
javafx.beans.property.Property<Resolution> |
targetResolutionProperty() |
activeProperty, addClient, connect, connectedProperty, dataProperty, disconnect, getDataType, hasClients, isConnected, nameProperty, removeClient, setActive, setConnected, setName, toString
public javafx.beans.property.IntegerProperty targetCompressionProperty
getTargetCompression()
,
setTargetCompression(int)
public javafx.beans.property.IntegerProperty targetFpsProperty
getTargetFps()
,
setTargetFps(int)
public javafx.beans.property.Property<Resolution> targetResolutionProperty
public static final Resolution MAX_RESOLUTION
public static CameraServerSource forName(java.lang.String name)
public edu.wpi.first.shuffleboard.api.sources.SourceType getType()
public void close()
public int getTargetCompression()
setTargetCompression(int)
.public javafx.beans.property.IntegerProperty targetCompressionProperty()
getTargetCompression()
,
setTargetCompression(int)
public void setTargetCompression(int targetCompression)
targetCompression
- the compression value of the MJPEG streampublic int getTargetFps()
setTargetFps(int)
.public javafx.beans.property.IntegerProperty targetFpsProperty()
getTargetFps()
,
setTargetFps(int)
public void setTargetFps(int targetFps)
targetFps
- the target FPS of the streampublic Resolution getTargetResolution()
setTargetResolution(edu.wpi.first.shuffleboard.plugin.cameraserver.data.Resolution)
.public javafx.beans.property.Property<Resolution> targetResolutionProperty()
public void setTargetResolution(Resolution targetResolution)
null
, or if either dimension is negative or zero, the stream
will use its default resolution.targetResolution
- the target resolution of the stream