|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.teamdev.jxcapture.video.win.directshow.FilterGraphManager
public class FilterGraphManager
Base implementation of filter graph that allows to build IFilterGraph
graph object.
It allows to add/remove codecs to the filter graph, connect filters.
Nested Class Summary | |
---|---|
static class |
FilterGraphManager.GraphThreadMode
|
Constructor Summary | |
---|---|
FilterGraphManager()
Creates filter graph manager. |
|
FilterGraphManager(FilterGraphManager.GraphThreadMode threadMode)
Creates filter graph manager. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterGraphManager()
public FilterGraphManager(FilterGraphManager.GraphThreadMode threadMode)
threadMode
- defines graph threading modeMethod Detail |
---|
protected 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 filter
public 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 filters
public FilterWrapper findFilter(java.lang.String filterCLSID)
filterCLSID
- CLSIDs of required filter
public void connectPins(PinWrapper outputPin, PinWrapper inputPin)
public void renderFile(java.io.File file) throws UnsupportedStreamException
file
- file to render
UnsupportedStreamException
- if the specified file could not be renderedprotected void setNullSinkFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |