net.sf.fmj.filtergraph
Class CodecNode

java.lang.Object
  extended by net.sf.fmj.filtergraph.FilterGraphNode
      extended by net.sf.fmj.filtergraph.CodecNode

public class CodecNode
extends FilterGraphNode

A node in a filter graph for a Codec. dest has size of 1.

Author:
Ken Larson

Field Summary
 
Fields inherited from class net.sf.fmj.filtergraph.FilterGraphNode
logger
 
Constructor Summary
CodecNode(Codec codec, Format inputFormat)
           
 
Method Summary
 FilterGraphNode duplicate()
           
 Codec getCodec()
           
 Format getInputFormat()
           
 PlugIn getPlugIn()
           
 void open()
           
 int process(Buffer input, int sourceTrackNumber, int destTrackNumber, int flags)
          sourceTrackNumber only used for demux, and destTrackNumber only used for mux.
 
Methods inherited from class net.sf.fmj.filtergraph.FilterGraphNode
addDestLink, getDestLink, getNumDestLinks, getOutputBuffer, print, propagateDuplicate, setOutputBuffer, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodecNode

public CodecNode(Codec codec,
                 Format inputFormat)
Method Detail

duplicate

public FilterGraphNode duplicate()
Specified by:
duplicate in class FilterGraphNode

getInputFormat

public Format getInputFormat()
Specified by:
getInputFormat in class FilterGraphNode

getCodec

public Codec getCodec()

open

public void open()
          throws ResourceUnavailableException
Specified by:
open in class FilterGraphNode
Throws:
ResourceUnavailableException

process

public int process(Buffer input,
                   int sourceTrackNumber,
                   int destTrackNumber,
                   int flags)
Description copied from class: FilterGraphNode
sourceTrackNumber only used for demux, and destTrackNumber only used for mux.

Specified by:
process in class FilterGraphNode

getPlugIn

public PlugIn getPlugIn()
Overrides:
getPlugIn in class FilterGraphNode