|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.humatic.dsj.DSFilter
public class DSFilter
DSFilter references a DirectShow Filter that has beem added to the filtergraph.
| Nested Class Summary | |
|---|---|
class |
DSFilter.DSPin
|
| Field Summary | |
|---|---|
static int |
PINDIR_INPUT
|
static int |
PINDIR_OUTPUT
|
| Method Summary | |
|---|---|
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. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PINDIR_OUTPUT
public static final int PINDIR_INPUT
| Method Detail |
|---|
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 void disconnect(DSFilter.DSPin pin)
throws DSJException
DSJExceptionpublic 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
DSJExceptionpublic void showPropertiesDialog()
public boolean embedPropertiesPage(java.awt.Window parent,
java.awt.Point origin,
int pageIndex)
throws DSJException
DSJExceptionpublic 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.Objectpublic long getID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||