public class VideoSink
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
VideoSink.Kind |
Modifier and Type | Field and Description |
---|---|
protected int |
m_handle |
Modifier | Constructor and Description |
---|---|
protected |
VideoSink(int handle) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
VideoProperty[] |
enumerateProperties()
Enumerate all properties of this sink.
|
static VideoSink[] |
enumerateSinks()
Enumerate all existing sinks.
|
boolean |
equals(java.lang.Object other) |
void |
free()
Deprecated.
|
java.lang.String |
getDescription()
Get the sink description.
|
int |
getHandle() |
VideoSink.Kind |
getKind()
Get the kind of the sink.
|
static VideoSink.Kind |
getKindFromInt(int kind)
Convert from the numerical representation of kind to an enum type.
|
java.lang.String |
getName()
Get the name of the sink.
|
VideoProperty |
getProperty(java.lang.String name)
Get a property of the sink.
|
VideoSource |
getSource()
Get the connected source.
|
VideoProperty |
getSourceProperty(java.lang.String name)
Get a property of the associated source.
|
int |
hashCode() |
boolean |
isValid() |
void |
setSource(VideoSource source)
Configure which source should provide frames to this sink.
|
public static VideoSink.Kind getKindFromInt(int kind)
kind
- The numerical representation of kind@Deprecated public void free()
public void close()
close
in interface java.lang.AutoCloseable
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 VideoSink.Kind getKind()
public java.lang.String getName()
public java.lang.String getDescription()
public VideoProperty getProperty(java.lang.String name)
name
- Property namepublic VideoProperty[] enumerateProperties()
public void setSource(VideoSource source)
source
- Sourcepublic VideoSource getSource()
public VideoProperty getSourceProperty(java.lang.String name)
name
- Property namepublic static VideoSink[] enumerateSinks()