public class VideoSink extends Object implements 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(Object other) |
void |
free()
Deprecated.
|
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.
|
String |
getName()
Get the name of the sink.
|
VideoProperty |
getProperty(String name)
Get a property of the sink.
|
VideoSource |
getSource()
Get the connected source.
|
VideoProperty |
getSourceProperty(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 AutoCloseable
public boolean isValid()
public int getHandle()
public VideoSink.Kind getKind()
public String getName()
public String getDescription()
public VideoProperty getProperty(String name)
name
- Property namepublic VideoProperty[] enumerateProperties()
public void setSource(VideoSource source)
source
- Sourcepublic VideoSource getSource()
public VideoProperty getSourceProperty(String name)
name
- Property namepublic static VideoSink[] enumerateSinks()