public class DSFilter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
DSFilter.DSPin |
Modifier and Type | Field and Description |
---|---|
static int |
PINDIR_INPUT |
static int |
PINDIR_OUTPUT |
Modifier and Type | Method and Description |
---|---|
void |
applyPropPageSettings()
Applies changes made similiar to clicking an eventual "Apply" button on a native dialog.
|
void |
closePropPage()
Closes an embedded properties page (and applies changes made).
|
boolean |
connectDownstream(DSFilter.DSPin sourcePin,
DSFilter.DSPin destPin,
boolean direct)
Tries to connect the given output on this filter to an input on another
filter.
|
boolean |
connectWithFormat(DSFilter.DSPin sourcePin,
int outputFormatIndex,
DSFilter.DSPin destPin)
Tries to connect the given pins with the output pin's nth format (index into available output types as returned from
DSPin.getAvailableOutputTypes().
|
void |
disconnect(DSFilter.DSPin pin)
Disconnects the given pin
|
void |
dumpConnections()
Prints information on the filter and its connections to other filters in the graph to the current log stream.
|
boolean |
embedPropertiesPage(java.awt.Window parent,
java.awt.Point origin,
int pageIndex)
Embeds the filter's native Properties Page into the given java Window at the given Point.
|
java.lang.String |
getCLSID() |
DSFiltergraph |
getFiltergraph() |
DSFilterInfo |
getFilterInfo()
Returns the DSFilterInfo that describes this Filter.
|
byte[] |
getFilterState() |
long |
getID() |
DSFilter.DSPin[] |
getInputs() |
java.lang.String |
getName()
Returns the filter's "friendly name"
|
DSFilter.DSPin[] |
getOutputs() |
DSFilter.DSPin |
getPin(int dir,
int index)
Gets the nth input (DSFilterInfo.DSPinInfo.PINDIR_INPUT or 1) or output (DSFilterInfo.DSPinInfo.PINDIR_OUTPUT or 0) pin
|
DSFilter.DSPin |
getPin(int dir,
int majorType,
boolean connected,
int index)
Returns the pin at %index (zero based) into the filters pins with the given characteristics.
|
DSFilter.DSPin |
getPin(java.lang.String pinName) |
DSFilter.DSPin[] |
getPins() |
int |
getPropPageCount()
Returns the number of properties pages.
|
int[] |
getPropPageSize(int atIndex)
Returns an int[2] containing the required width and height of the properties page at the given index or null if the filter has no
properties page.
|
java.lang.String[] |
getPropPageTitles() |
void |
loadFilterState(java.lang.String fromFile)
Tries to reload a previously saved filterstate.
|
boolean |
renderEx(DSFilter.DSPin pin)
Renders the given output (see renderPin), taking only renderer filters into account that are already in the graph.
|
boolean |
renderPin(DSFilter.DSPin pin)
Attempts to create the required filterchain needed to render the given output pin's media.
|
void |
saveFilterState(java.lang.String toFile)
Tries to save a filter's state to a file at %toFile.
|
void |
setParameter(java.lang.String param,
java.lang.String paramValue)
Set a filter parameter.
|
void |
showPropertiesDialog()
Brings up the native properties page of the filter, given it exposes one.
|
java.lang.String |
toString() |
public static final int PINDIR_OUTPUT
public static final int PINDIR_INPUT
public DSFiltergraph getFiltergraph()
public DSFilterInfo getFilterInfo()
public java.lang.String getName()
public java.lang.String getCLSID()
public void saveFilterState(java.lang.String toFile) throws DSJException
DSJException
public byte[] getFilterState() throws DSJException
DSJException
public void loadFilterState(java.lang.String fromFile) throws DSJException
DSJException
public boolean connectDownstream(DSFilter.DSPin sourcePin, DSFilter.DSPin destPin, boolean direct) throws DSJException
DSJException
public boolean connectWithFormat(DSFilter.DSPin sourcePin, int outputFormatIndex, DSFilter.DSPin destPin)
public void disconnect(DSFilter.DSPin pin) throws DSJException
DSJException
public DSFilter.DSPin[] getPins()
public DSFilter.DSPin getPin(java.lang.String pinName)
public DSFilter.DSPin[] getInputs()
public DSFilter.DSPin[] getOutputs()
public DSFilter.DSPin getPin(int dir, int index)
public DSFilter.DSPin getPin(int dir, int majorType, boolean connected, int index)
public void setParameter(java.lang.String param, java.lang.String paramValue)
public boolean renderPin(DSFilter.DSPin pin) throws DSJException
DSJException
public boolean renderEx(DSFilter.DSPin pin) throws DSJException
DSJException
public void showPropertiesDialog()
public boolean embedPropertiesPage(java.awt.Window parent, java.awt.Point origin, int pageIndex) throws DSJException
DSJException
public int getPropPageCount()
public java.lang.String[] getPropPageTitles()
public int[] getPropPageSize(int atIndex)
public void applyPropPageSettings()
public void closePropPage()
public void dumpConnections()
public java.lang.String toString()
toString
in class java.lang.Object
public long getID()