Lines Matching defs:GraphRunner

27  * A GraphRunner schedules and executes the filter nodes of a graph.
29 * Typically, you create a GraphRunner given a FilterGraph instance, and execute it by calling
37 public final class GraphRunner {
238 Log.w("GraphRunner", "Event queue processing was interrupted.");
282 mThreadRunner.set(GraphRunner.this);
318 listener.onSubGraphRunEnded(GraphRunner.this);
374 Log.w("GraphRunner", "State is not running! (" + mState.current() + ")");
406 Log.v("GraphRunner", "CLOSING FILTERS");
411 Log.i("GraphRunner", "Closing Filter " + filters[i] + "!");
425 Log.i("GraphRunner", scheduleTime + ": Scheduling " + filter + "!");
430 Log.i("GraphRunner",
437 // GraphRunner.Scheduler classes ///////////////////////////////////////////////////////////////
464 // TODO(renn): We could probably do this with a simple GraphRunner counter that would
465 // represent GraphRunner local time. This would allow us to use integers instead of
541 // GraphRunner.Listener callback class /////////////////////////////////////////////////////////
547 public void onGraphRunnerStopped(GraphRunner runner);
552 * Any exceptions thrown in the GraphRunner's thread will cause the run to abort. The
555 * {@link #onGraphRunnerStopped(GraphRunner)} callback in case of an error.
564 public void onSubGraphRunEnded(GraphRunner runner);
568 * Config class to setup a GraphRunner with a custom configuration.
571 * the created GraphRunner instance.
580 /** Parameters shared between run-thread and GraphRunner frontend. */
587 // GraphRunner implementation //////////////////////////////////////////////////////////////////
610 private static ThreadLocal<GraphRunner> mThreadRunner = new ThreadLocal<GraphRunner>();
615 * Creates a new GraphRunner with the default configuration. You must attach FilterGraph
620 public GraphRunner(MffContext context) {
626 * Creates a new GraphRunner with the specified configuration. You must attach FilterGraph
632 public GraphRunner(MffContext context, Config config) {
641 public static GraphRunner current() {
649 * @return the FilterGraph instance that this GraphRunner is executing.
747 * Sets the filter scheduling strategy. This method can not be called when the GraphRunner is
751 * @throws RuntimeException if the GraphRunner is running.
758 "Attempting to change scheduling strategy on running " + "GraphRunner!");
766 * @return the scheduling strategy used by this GraphRunner.
778 * @param isVerbose true, if the GraphRunner should log scheduling details.
788 * Returns whether the GraphRunner is verbose.
790 * @return true, if the GraphRunner logs scheduling details.
800 * Returns whether Filters of this GraphRunner can use OpenGL.
802 * Filters may use OpenGL if the MffContext supports OpenGL and the GraphRunner allows it.
816 * @param flush true, if the GraphRunner should flush the graph when running completes.
826 * Returns whether the GraphRunner flushes frames when running completes.
828 * @return true, if the GraphRunner flushes frames when running completes.
838 * Sets the listener for receiving runtime events. A GraphRunner.Listener instance can be used
840 * {@link GraphRunner.Listener} class for details.
842 * @param listener the GraphRunner.Listener instance to set.
852 * Returns the currently assigned GraphRunner.Listener.
854 * @return the currently assigned GraphRunner.Listener instance.
873 * Tear down a GraphRunner and all its resources.
892 Log.e("GraphRunner", "Error waiting for runner thread to finish!");
950 + "GraphRunner!");
1010 mParams.listener.onGraphRunnerStopped(GraphRunner.this);
1017 Log.e("GraphRunner",