FileDocCategorySizeDatePackage
FrameFetch.javaAPI DocAndroid 5.1 API1768Thu Mar 12 22:22:30 GMT 2015android.filterpacks.base

FrameFetch

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

Fields Summary
private android.filterfw.core.FrameFormat
mFormat
private String
mKey
private boolean
mRepeatFrame
Constructors Summary
public FrameFetch(String name)


       
        super(name);
    
Methods Summary
public voidprocess(android.filterfw.core.FilterContext context)

        Frame output = context.fetchFrame(mKey);
        if (output != null) {
            pushOutput("frame", output);
            if (!mRepeatFrame) {
                closeOutputPort("frame");
            }
        } else {
            delayNextProcess(250);
        }
    
public voidsetupPorts()

        addOutputPort("frame", mFormat == null ? FrameFormat.unspecified() : mFormat);