net.sf.fmj.filtergraph
Class FilterGraphProcessor

java.lang.Object
  extended by net.sf.fmj.filtergraph.FilterGraphProcessor

public final class FilterGraphProcessor
extends java.lang.Object

Execute functions on filter graphs. Does not actually represent the graph itself, that would be simply a FilterGraphNode being used as a root. TODO: if a demux for example sets both discard and eom, what are the semantics? It appears that we will discard the EOM.

Author:
Ken Larson

Field Summary
static int PROCESS_DEFAULT
           
static int SUPPRESS_TRACK_READ
           
 
Method Summary
static FilterGraphNode getBeforeTail(FilterGraphNode n)
           
static FilterGraphNode getTail(FilterGraphNode n)
           
static void open(FilterGraphNode n)
           
static int process(FilterGraphNode n, Buffer input, int sourceTrackNumber, int destTrackNumber, int flags)
          Process a graph starting with n
static void start(FilterGraphNode n)
           
static void stop(FilterGraphNode n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROCESS_DEFAULT

public static final int PROCESS_DEFAULT
See Also:
Constant Field Values

SUPPRESS_TRACK_READ

public static final int SUPPRESS_TRACK_READ
See Also:
Constant Field Values
Method Detail

getTail

public static FilterGraphNode getTail(FilterGraphNode n)

getBeforeTail

public static FilterGraphNode getBeforeTail(FilterGraphNode n)

start

public static void start(FilterGraphNode n)
                  throws java.io.IOException
Throws:
java.io.IOException

stop

public static void stop(FilterGraphNode n)
                 throws java.io.IOException
Throws:
java.io.IOException

open

public static void open(FilterGraphNode n)
                 throws ResourceUnavailableException
Throws:
ResourceUnavailableException

process

public static int process(FilterGraphNode n,
                          Buffer input,
                          int sourceTrackNumber,
                          int destTrackNumber,
                          int flags)
Process a graph starting with n

Parameters:
n -
input - the source buffer sourceTrackNumber only used for demux, and destTrackNumber only used for mux