public class JavaSourceFilter extends DSFilter
DSFilter.DSPin
Modifier and Type | Field and Description |
---|---|
static int |
BLOCK_STRICT
Source flags for use in DSGraph.createJavaSourceGraph(...)
|
static int |
BLOCKING
Source flags for use in DSGraph.createJavaSourceGraph(...)
|
static int |
CALLBACK
Source flags for use in DSGraph.createJavaSourceGraph(...)
|
static int |
RUNNING
Source flags for use in DSGraph.createJavaSourceGraph(...)
|
PINDIR_INPUT, PINDIR_OUTPUT
Modifier and Type | Method and Description |
---|---|
int |
drawJavaImage(int[] srcCoords)
Do a partial redraw of a frame composited in the Graphics2D as returned from getDrawingSurface().
|
int |
getAudioFrameTime()
Returns milliseconds per audioframe, when set up for audio.
|
int |
getBufferSize()
Returns the size (in bytes) of the buffer, that the filter wants to be fed with when
set up for audio..
|
java.awt.Graphics2D |
getDrawingSurface()
Returns a Graphics2D Object an application can use to draw into.
|
int |
getVideoFrameTime()
Returns milliseconds per videoframe, when set up for video.
|
int |
setJavaAudio(byte[] audioData)
Sends audio bytes to the filter.
|
int |
setJavaImage()
Send a frame composited in the Graphics2D as returned from getDrawingSurface() to DirectShow.
|
int |
setJavaImage(byte[] data)
The filter expects to be fed with 24bit BGR data.
|
void |
stop() |
applyPropPageSettings, closePropPage, connectDownstream, connectWithFormat, disconnect, dumpConnections, embedPropertiesPage, getCLSID, getFiltergraph, getFilterInfo, getFilterState, getID, getInputs, getName, getOutputs, getPin, getPin, getPin, getPins, getPropPageCount, getPropPageSize, getPropPageTitles, loadFilterState, renderEx, renderPin, saveFilterState, setParameter, showPropertiesDialog, toString
public static final int RUNNING
public static final int BLOCKING
public static final int CALLBACK
public static final int BLOCK_STRICT
public java.awt.Graphics2D getDrawingSurface()
public int getVideoFrameTime()
public int getBufferSize()
public int getAudioFrameTime()
public void stop()
public int setJavaImage(byte[] data)
public int setJavaImage()
public int drawJavaImage(int[] srcCoords)
public int setJavaAudio(byte[] audioData) throws DSJException
DSJException