public class DSCaptureDevice
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
DSCaptureDevice.ISampleGrabberCB
The Java equivalent of the DirectShow ISampleGrabberCB interface
as it is utilized by DSCaptureDevice.
|
Constructor and Description |
---|
DSCaptureDevice(long ptr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connects to this DirectShow video capture device.
|
void |
disconnect()
Disconnects from this DirectShow video capture device.
|
DSFormat |
getFormat()
Get current format.
|
java.lang.String |
getName()
Get name of the capture device.
|
DSFormat[] |
getSupportedFormats()
Get the supported video format this capture device supports.
|
(package private) static int |
samplecopy(long thiz,
long src,
long dst,
int length) |
void |
setDelegate(DSCaptureDevice.ISampleGrabberCB delegate)
Set a delegate to use when a frame is received.
|
int |
setFormat(DSFormat format)
Set format to use with this capture device.
|
int |
start() |
int |
stop() |
public static final int S_FALSE
public static final int S_OK
public DSCaptureDevice(long ptr)
ptr
- native pointerstatic int samplecopy(long thiz, long src, long dst, int length)
public void connect()
public void disconnect()
public DSFormat getFormat()
public java.lang.String getName()
public DSFormat[] getSupportedFormats()
public void setDelegate(DSCaptureDevice.ISampleGrabberCB delegate)
delegate
- delegatepublic int setFormat(DSFormat format)
format
- format to setpublic int start()
public int stop()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.