net.sf.fmj.filtergraph
Class CodecNode

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

public class CodecNode
extends Node

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.Node
logger
 
Constructor Summary
CodecNode(Codec codec, Format inputFormat)
           
 
Method Summary
 Node duplicate()
           
 Codec getCodec()
           
 Format getInputFormat()
           
 int getPlugInType()
           
 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.Node
addDestLink, close, getDestLink, getDestLink, getDestLink, getInputPin, getInputPinByTrack, getNumDestLinks, getNumInputPins, getNumOutputPins, getOutputBuffer, getOutputPin, getOutputPinByTrack, getPlugIn, open, print, propagateDuplicate, removeDestLink, setInputPin, setOutputBuffer, setOutputPin, 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

getPlugInType

public int getPlugInType()
Specified by:
getPlugInType in class Node

duplicate

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

getInputFormat

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

getCodec

public Codec getCodec()

process

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

Specified by:
process in class Node