public class DataSource extends PushBufferDataSource implements CaptureDevice, FrameGrabbingControl
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object[] |
controls |
DURATION_UNBOUNDED, DURATION_UNKNOWN
Constructor and Description |
---|
DataSource() |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
static VideoFormat |
convertCivilFormat(com.lti.civil.VideoFormat civilVideoFormat) |
void |
disconnect() |
CaptureDeviceInfo |
getCaptureDeviceInfo() |
java.lang.String |
getContentType() |
java.lang.Object |
getControl(java.lang.String controlType) |
java.awt.Component |
getControlComponent() |
java.lang.Object[] |
getControls() |
Time |
getDuration() |
FormatControl[] |
getFormatControls() |
PushBufferStream[] |
getStreams() |
Buffer |
grabFrame() |
void |
start() |
void |
stop() |
getLocator, initCheck, setLocator
public Buffer grabFrame()
grabFrame
in interface FrameGrabbingControl
public java.awt.Component getControlComponent()
getControlComponent
in interface Control
public void connect() throws java.io.IOException
connect
in interface CaptureDevice
connect
in class DataSource
java.io.IOException
public void disconnect()
disconnect
in interface CaptureDevice
disconnect
in class DataSource
public java.lang.String getContentType()
getContentType
in class DataSource
public java.lang.Object getControl(java.lang.String controlType)
getControl
in interface Controls
getControl
in class DataSource
public java.lang.Object[] getControls()
getControls
in interface Controls
getControls
in class DataSource
public void start() throws java.io.IOException
start
in interface CaptureDevice
start
in class DataSource
java.io.IOException
public void stop() throws java.io.IOException
stop
in interface CaptureDevice
stop
in class DataSource
java.io.IOException
public Time getDuration()
getDuration
in interface Duration
getDuration
in class DataSource
public PushBufferStream[] getStreams()
getStreams
in class PushBufferDataSource
public static VideoFormat convertCivilFormat(com.lti.civil.VideoFormat civilVideoFormat)
public CaptureDeviceInfo getCaptureDeviceInfo()
getCaptureDeviceInfo
in interface CaptureDevice
public FormatControl[] getFormatControls()
getFormatControls
in interface CaptureDevice