Lines Matching defs:graph

27  * A GraphRunner schedules and executes the filter nodes of a graph.
197 public void enterSubGraph(FilterGraph graph, SubListener listener) {
199 onOpenGraph(graph);
289 private void onPrepare(FilterGraph graph) {
293 onOpenGraph(graph);
297 private void onOpenGraph(FilterGraph graph) {
298 loadFilters(graph);
299 mOpenedGraphs.add(graph);
380 for (FilterGraph graph : mOpenedGraphs) {
381 graph.flushFrames();
386 private void onTearDown(FilterGraph graph) {
387 for (Filter filter : graph.getAllFilters()) {
390 graph.wipe();
393 private void loadFilters(FilterGraph graph) {
394 Filter[] filters = graph.getAllFilters();
399 for (FilterGraph graph : mOpenedGraphs) {
400 closeFilters(graph);
404 private void closeFilters(FilterGraph graph) {
407 Filter[] filters = graph.getAllFilters();
545 * only if the graph completed without an error.
558 * @param closedSuccessfully true, if the graph was closed successfully after the error.
638 * Returns the currently running graph-runner.
639 * @return The currently running graph-runner.
646 * Returns the graph that this runner is currently executing. Returns null if no graph is
665 * Begins graph execution. The graph filters are scheduled and executed until processing
668 public synchronized void start(FilterGraph graph) {
669 if (graph.mRunner != this) {
672 mRunningGraph = graph;
674 mRunLoop.pushEvent(Event.PREPARE, graph);
678 * Begin executing a sub-graph. This only succeeds if the current runner is already
681 public void enterSubGraph(FilterGraph graph, SubListener listener) {
685 mRunLoop.enterSubGraph(graph, listener);
689 * Waits until graph execution has finished or stopped with an error.
691 * used when a graph is run in one-shot mode to compute a result.
698 * Pauses graph execution.
705 * Resumes graph execution after pausing.
712 * Stops graph execution.
719 * Returns whether the graph is currently being executed. A graph is considered to be running,
722 * @return true, if the graph is currently being executed.
729 * Returns whether the graph is currently paused.
731 * @return true, if the graph is currently paused.
738 * Returns whether the graph is currently stopped.
740 * @return true, if the graph is currently stopped.
775 * scheduling steps that may help identify and debug problems in the graph structure. The
811 * Enable flushing all frames from the graph when running completes.
816 * @param flush true, if the GraphRunner should flush the graph when running completes.
839 * to determine when certain events occur during graph execution (and react on them). See the
900 * method, as otherwise Filters in the graph may reference frames that are now released.
918 void attachGraph(FilterGraph graph) {
920 mGraphs.add(graph);
943 * Tears down the specified graph.
945 * The graph must be attached to this runner.
947 void tearDownGraph(FilterGraph graph) {
948 if (graph.getRunner() != this) {
949 throw new IllegalArgumentException("Attempting to tear down graph with foreign "
952 mRunLoop.pushEvent(Event.TEARDOWN, graph);
954 mGraphs.remove(graph);
961 * Removes and releases frames that are waiting in the graph connections of the currently
965 * TODO: With the new sub-graph architecture, this can now be simplified and made public.
966 * It can then no longer rely on opened graphs, and instead flush a graph and all its
1018 "Uncaught exception during graph execution! Stack Trace: ");