FileDocCategorySizeDatePackage
FrameBranch.javaAPI DocAndroid 5.1 API1670Thu Mar 12 22:22:30 GMT 2015android.filterpacks.base

FrameBranch

public class FrameBranch extends android.filterfw.core.Filter
hide

Fields Summary
private int
mNumberOfOutputs
Constructors Summary
public FrameBranch(String name)


       
        super(name);
    
Methods Summary
public android.filterfw.core.FrameFormatgetOutputFormat(java.lang.String portName, android.filterfw.core.FrameFormat inputFormat)

        return inputFormat;
    
public voidprocess(android.filterfw.core.FilterContext context)

        // Get input frame
        Frame input = pullInput("in");

        // Push output
        for (int i = 0; i < mNumberOfOutputs; ++i) {
            pushOutput("out" + i, input);
        }
    
public voidsetupPorts()

        addInputPort("in");
        for (int i = 0; i < mNumberOfOutputs; ++i) {
            addOutputBasedOnInput("out" + i, "in");
        }