public class FilterGraphManager
extends java.lang.Object
IFilterGraph graph object.| Modifier and Type | Class and Description | 
|---|---|
static class  | 
FilterGraphManager.GraphThreadMode  | 
| Constructor and Description | 
|---|
FilterGraphManager()
Creates filter graph manager. 
 | 
FilterGraphManager(FilterGraphManager.GraphThreadMode threadMode)
Creates filter graph manager. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addFilter(FilterWrapper filterWrapper)
Adds the specified filter to this graph. 
 | 
void | 
clearGraph()
Removes all filters that are connected to this filter graph. 
 | 
void | 
configureVideoWindow(boolean showPreview)
Configures video window. 
 | 
FilterWrapper | 
connectFilters(FilterWrapper sourceFilter,
              FilterWrapper destFilter,
              FilterWrapper[] alternateFilters)
Connects the specified source filter to the dest filter. 
 | 
void | 
connectPins(PinWrapper outputPin,
           PinWrapper inputPin)  | 
protected IGraphBuilder | 
createFilterGraph(FilterGraphManager.GraphThreadMode threadMode)  | 
FilterWrapper | 
findAnyFilter(java.lang.String... filterCLSIDs)
Service function that searches for any of specified filters in this graph. 
 | 
FilterWrapper | 
findFilter(java.lang.String filterCLSID)
Service function that searches for the specified filters in this graph. 
 | 
protected java.util.List<IBaseFilter> | 
getConnectedFilters()
Returns filters which are connected to this filter graph. 
 | 
IGraphBuilder | 
getFilterGraph()
Returns filter graph peer. 
 | 
java.util.Set<FilterWrapper> | 
getFilters()
Returns the list that contains all filters in the graph. 
 | 
void | 
release()
Release this filter graph manager. 
 | 
protected void | 
removeAllFilters()
Removes all filters from this filter graph. 
 | 
void | 
removeFilter(FilterWrapper filterWrapper)
Removes the specified filter from this graph. 
 | 
void | 
renderFile(java.io.File file)
Renders a specified file 
 | 
protected void | 
setNullSinkFilter()  | 
protected void | 
synchronizeFilterSet()  | 
public FilterGraphManager()
public FilterGraphManager(FilterGraphManager.GraphThreadMode threadMode)
threadMode - defines graph threading modeprotected IGraphBuilder createFilterGraph(FilterGraphManager.GraphThreadMode threadMode)
public void clearGraph()
protected java.util.List<IBaseFilter> getConnectedFilters()
protected void removeAllFilters()
public void release()
public IGraphBuilder getFilterGraph()
public void addFilter(FilterWrapper filterWrapper)
filterWrapper - filter to joinpublic void removeFilter(FilterWrapper filterWrapper)
filterWrapper - filter to removepublic FilterWrapper connectFilters(FilterWrapper sourceFilter, FilterWrapper destFilter, FilterWrapper[] alternateFilters)
sourceFilter - source filterdestFilter - dest filteralternateFilters - alternate filterpublic void configureVideoWindow(boolean showPreview)
showPreview - true makes video window visible; false makes video window hidden.protected void synchronizeFilterSet()
public java.util.Set<FilterWrapper> getFilters()
public FilterWrapper findAnyFilter(java.lang.String... filterCLSIDs)
filterCLSIDs - CLSIDs of required filterspublic FilterWrapper findFilter(java.lang.String filterCLSID)
filterCLSID - CLSIDs of required filterpublic void connectPins(PinWrapper outputPin, PinWrapper inputPin)
public void renderFile(java.io.File file)
                throws UnsupportedStreamException
file - file to renderUnsupportedStreamException - if the specified file could not be renderedprotected void setNullSinkFilter()