public class VideoSource extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
VideoSource.Kind |
Modifier and Type | Field and Description |
---|---|
protected int |
m_handle |
Modifier | Constructor and Description |
---|---|
protected |
VideoSource(int handle) |
Modifier and Type | Method and Description |
---|---|
VideoProperty[] |
enumerateProperties() |
VideoSink[] |
enumerateSinks() |
static VideoSource[] |
enumerateSources() |
VideoMode[] |
enumerateVideoModes() |
boolean |
equals(java.lang.Object other) |
void |
free() |
java.lang.String |
getDescription() |
int |
getHandle() |
VideoSource.Kind |
getKind() |
static VideoSource.Kind |
getKindFromInt(int kind) |
long |
getLastFrameTime() |
java.lang.String |
getName() |
VideoProperty |
getProperty(java.lang.String name) |
VideoMode |
getVideoMode() |
int |
hashCode() |
boolean |
isConnected() |
boolean |
isValid() |
boolean |
setFPS(int fps) |
boolean |
setPixelFormat(VideoMode.PixelFormat pixelFormat) |
boolean |
setResolution(int width,
int height) |
boolean |
setVideoMode(VideoMode.PixelFormat pixelFormat,
int width,
int height,
int fps) |
boolean |
setVideoMode(VideoMode mode) |
protected int m_handle
protected VideoSource(int handle)
public static VideoSource.Kind getKindFromInt(int kind)
public void free()
public boolean isValid()
public int getHandle()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public VideoSource.Kind getKind()
public java.lang.String getName()
public java.lang.String getDescription()
public long getLastFrameTime()
public boolean isConnected()
public VideoProperty getProperty(java.lang.String name)
public VideoProperty[] enumerateProperties()
public VideoMode getVideoMode()
public boolean setVideoMode(VideoMode mode)
public boolean setVideoMode(VideoMode.PixelFormat pixelFormat, int width, int height, int fps)
public boolean setPixelFormat(VideoMode.PixelFormat pixelFormat)
public boolean setResolution(int width, int height)
public boolean setFPS(int fps)
public VideoMode[] enumerateVideoModes()
public VideoSink[] enumerateSinks()
public static VideoSource[] enumerateSources()