public class ImageStream extends AbstractVideoPullBufferStream<DataSource>
| Modifier and Type | Field and Description |
|---|---|
protected T |
dataSource
The DataSource which has created this instance and which
contains it as one of its streams.
|
protected javax.media.control.FormatControl |
formatControl
The FormatControl which gives access to the Format of
the media data provided by this SourceStream and which,
optionally, allows setting it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases the resources used by this instance throughout its existence and
makes it available for garbage collection.
|
protected javax.media.Format |
doGetFormat()
Gets the Format of this AbstractBufferStream as
directly known by it.
|
protected void |
doRead(javax.media.Buffer buffer)
Blocks and reads into a Buffer from this
PullBufferStream.
|
protected javax.media.Format |
doSetFormat(javax.media.Format format)
Attempts to set the Format of this
AbstractBufferStream.
|
boolean |
endOfStream()
Determines whether the end of this SourceStream has been
reached.
|
javax.media.protocol.ContentDescriptor |
getContentDescriptor()
Gets a ContentDescriptor which describes the type of the content
made available by this SourceStream.
|
long |
getContentLength()
Gets the length in bytes of the content made available by this
SourceStream.
|
Object[] |
getControls()
Implements
Controls.getControls(). |
javax.media.Format |
getFormat()
Gets the Format of the media data made available by this
AbstractBufferStream.
|
byte[] |
readScreen(byte[] output,
Dimension dim)
Read screen.
|
void |
setDisplayIndex(int displayIndex)
Sets the index of the display to be used by this ImageStream.
|
void |
setOrigin(int x,
int y)
Sets the origin to be captured by this ImageStream.
|
void |
start()
Start desktop capture stream.
|
void |
stop()
Stop desktop capture stream.
|
readwillReadBlockgetControl, getControl, queryInterface, queryInterfaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final T extends javax.media.protocol.DataSource dataSource
protected final javax.media.control.FormatControl formatControl
protected void doRead(javax.media.Buffer buffer)
throws IOException
doRead in class AbstractVideoPullBufferStream<DataSource>buffer - the Buffer this PullBufferStream is to
read intoIOException - if an I/O error occurs while this
PullBufferStream reads into the specified BufferAbstractVideoPullBufferStream.doRead(Buffer)public byte[] readScreen(byte[] output,
Dimension dim)
output - output buffer for screen bytesdim - dimension of the screenpublic void setDisplayIndex(int displayIndex)
displayIndex - the index of the display to be used by this
ImageStreampublic void setOrigin(int x,
int y)
x - the x coordinate of the origin to be set on this instancey - the y coordinate of the origin to be set on this instancepublic void start()
throws IOException
start in class AbstractVideoPullBufferStream<DataSource>IOException - if anything goes wrong while starting the transfer of
media data from this AbstractBufferStreamAbstractBufferStream.start()public void stop()
throws IOException
stop in class AbstractVideoPullBufferStream<DataSource>IOException - if anything goes wrong while stopping the transfer of
media data from this AbstractBufferStreamAbstractBufferStream.stop()public void close()
Warning: The method is not invoked by the framework, extenders may choose to invoke it.
protected javax.media.Format doGetFormat()
protected javax.media.Format doSetFormat(javax.media.Format format)
format - the Format to be set as the format of this
AbstractBufferStreampublic boolean endOfStream()
endOfStream in interface javax.media.protocol.SourceStreampublic javax.media.protocol.ContentDescriptor getContentDescriptor()
getContentDescriptor in interface javax.media.protocol.SourceStreampublic long getContentLength()
getContentLength in interface javax.media.protocol.SourceStreampublic Object[] getControls()
Controls.getControls(). Gets the
controls available for this instance.getControls in interface javax.media.Controlspublic javax.media.Format getFormat()
Copyright © 2022 jitsi.org. All rights reserved.