class Inspector
Public Class Methods
new()
click to toggle source
# File gstreamer/sample/gst-inspect.rb, line 63 def initialize @prefix = "" end
Public Instance Methods
print_element(name)
click to toggle source
# File gstreamer/sample/gst-inspect.rb, line 85 def print_element(name) factory = Gst::ElementFactory.find(name) if factory print_element_factory(factory, false) else registry = Gst::Registry.get type_find_factory = registry.find_feature(name, Gst::TypeFindFactory) if type_find_factory # TODO else plugin = registry.find_plugin(name) print_plugin_info(plugin) # TODO: print_plugin_features(plugin) end end end
print_list(print_all)
click to toggle source
# File gstreamer/sample/gst-inspect.rb, line 67 def print_list(print_all) plugins = {} n_features = 0 each_feature do |plugin, feature| plugins[plugin.name] = nil n_features += 1 if print_all if feature.is_a?(Gst::ElementFactory) print_element_factory(feature, true) end else print_feature(plugin, feature) end end puts puts("Total count: #{plugins.size} plugins, #{n_features} features") end