Search in sources :

Example 1 with AutoMap

use of org.fagu.fmv.ffmpeg.operation.AutoMap in project fmv by f-agu.

the class FilterGraphUI method addTail.

/**
 */
private void addTail() {
    // TODO autoMap by outputProcessor
    AutoMap autoMap = operation.getAutoMap();
    Set<Label> labels = autoMap.find(operation);
    Node node = graph.addNode("output");
    node.addAttribute("ui.label", "output");
    node.addAttribute("ui.class", "root");
    for (Label label : labels) {
        // System.out.println(filterNaming.generate(label));
        Set<FilterComplex> fcs = filterGraph.getByOut(label);
        for (FilterComplex outFC : fcs) {
            Node inNode = createOrGetNode(outFC);
            graph.addEdge("output" + label, inNode, node);
        }
    }
}
Also used : FilterComplex(org.fagu.fmv.ffmpeg.filter.FilterComplex) Node(org.graphstream.graph.Node) Label(org.fagu.fmv.ffmpeg.filter.Label) AutoMap(org.fagu.fmv.ffmpeg.operation.AutoMap)

Aggregations

FilterComplex (org.fagu.fmv.ffmpeg.filter.FilterComplex)1 Label (org.fagu.fmv.ffmpeg.filter.Label)1 AutoMap (org.fagu.fmv.ffmpeg.operation.AutoMap)1 Node (org.graphstream.graph.Node)1