com.sun.media
接口 GraphInspector


public interface GraphInspector

This interface defines the notification callbacks from the media engine during the data flow graph building process. The return value from some of the methods can intervene and affect the graph building process.


方法摘要
 boolean detailMode()
          If this method returns true, the media engine will notify the inspector more frequently with more details.
 boolean verify(Codec codec, Format input, Format output)
          This method is notified when the engine has selected the given codec and has successfully attempted to set the given input and output formats on it.
 boolean verify(Multiplexer mux, Format[] inputs)
          This method is notified when the engine has selected the given multiplexer and has successfully attempted to set the given input formats on it.
 boolean verify(Renderer renderer, Format input)
          This method is notified when the engine has selected the given renderer and has successfully attempted to set the given input format on it.
 void verifyInputFailed(PlugIn plugin, Format input)
          This method is notified if the engine has attempted and failed to set the given input format on the given plugin.
 void verifyOutputFailed(PlugIn plugin, Format output)
          This method is notified if the engine has attempted and failed to set the given output format on the given plugin.
 

方法详细信息

detailMode

boolean detailMode()
If this method returns true, the media engine will notify the inspector more frequently with more details.


verify

boolean verify(Codec codec,
               Format input,
               Format output)
This method is notified when the engine has selected the given codec and has successfully attempted to set the given input and output formats on it. If this method returns false, the engine will reject the given codec for use in the final flow graph.

参数:
codec - the selected codec.
input - the selected input format to the codec.
output - the selected output format to the codec.
返回:
false will cause the engine to reject the given codec for use in the final flow graph.

verify

boolean verify(Renderer renderer,
               Format input)
This method is notified when the engine has selected the given renderer and has successfully attempted to set the given input format on it. If this method returns false, the engine will reject the given renderer for use in the final flow graph.

参数:
renderer - the selected renderer.
input - the selected input format to the renderer.
返回:
false will cause the engine to reject the given renderer for use in the final flow graph.

verify

boolean verify(Multiplexer mux,
               Format[] inputs)
This method is notified when the engine has selected the given multiplexer and has successfully attempted to set the given input formats on it. If this method returns false, the engine will reject the given multiplexer for use in the final flow graph.

参数:
multiplexer - the selected multiplexer.
inputs - the selected input formats to the multiplexer.
返回:
false will cause the engine to reject the given multiplexer for use in the final flow graph.

verifyInputFailed

void verifyInputFailed(PlugIn plugin,
                       Format input)
This method is notified if the engine has attempted and failed to set the given input format on the given plugin.

参数:
plugin - the selected plugin.
input - the selected input format.

verifyOutputFailed

void verifyOutputFailed(PlugIn plugin,
                        Format output)
This method is notified if the engine has attempted and failed to set the given output format on the given plugin.

参数:
plugin - the selected plugin.
output - the selected output format.