本文整理汇总了Java中org.gstreamer.Bin类的典型用法代码示例。如果您正苦于以下问题:Java Bin类的具体用法?Java Bin怎么用?Java Bin使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Bin类属于org.gstreamer包,在下文中一共展示了Bin类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: VideoComponent
import org.gstreamer.Bin; //导入依赖的package包/类
/**
* Overlay VideoComponent
* @param parent
* @param style
* @param enableX11Events true if X11 event should have to be grabbed (mouse move, enter and leave event on Linux).
*
* On Linux by default the handling of mouse move, enter and leave event are not propagated.
* Unfortunately the "handle-events" properties hide some important expose events too,
* sowe've to do some lowlevel trick to be able to get these events.
*/
public VideoComponent(final Composite parent, int style, boolean enableX11Events) {
super(parent, style | SWT.EMBEDDED);
x11Events = enableX11Events;
addDisposeListener(this);
Element colorspace = ElementFactory.make("videoconvert", "colorspace" + counter);
Element videoscale = ElementFactory.make("avvideoscale", "videoscale" + counter);
autosink = (Bin)ElementFactory.make("autovideosink", "VideoComponent" + counter++);
sink.addMany(colorspace, videoscale, autosink);
Element.linkMany(colorspace, videoscale, autosink);
sink.addPad(new GhostPad("colorspace_sink_ghostpad", colorspace.getSinkPads().get(0)));
sinkListener = new ELEMENT_ADDED() {
public void elementAdded(Bin bin, Element element) {
if (element instanceof BaseSink) {
videosink = (BaseSink)element;
for (Map.Entry<String, Object> e : properties.entrySet())
videosink.set(e.getKey(), e.getValue());
// according to gstreamer docs:
// http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstxoverlay.html
// the overlay should have to be set from bus's SyncHandler,
// but we use autosink and in element-added the pipe already
// created so the windows must be prepared so we simple call
// the setOverlay and not the comment code bellow
// Bus bus = videosink.getBus();
// oldSyncHandler = bus.getSyncHandler();
// bus.setSyncHandler(VideoComponent.this); // for prepare-xwindow-id
setOverlay();
autosink.disconnect(this); // from element-added
sinkListener = null; // no longer needed
}
}
};
autosink.connect(sinkListener);
}
示例2: _gst_debug_bin_to_dot_file
import org.gstreamer.Bin; //导入依赖的package包/类
void _gst_debug_bin_to_dot_file(Bin bin, int details, String
fileName);
示例3: gstDebugBinToDotFile
import org.gstreamer.Bin; //导入依赖的package包/类
public static final void gstDebugBinToDotFile(Bin bin, int details,
String fileName) {
gst._gst_debug_bin_to_dot_file(bin, details, fileName);
}
示例4: gst_bin_new
import org.gstreamer.Bin; //导入依赖的package包/类
@CallerOwnsReturn Bin gst_bin_new(String name);
示例5: gst_bin_add
import org.gstreamer.Bin; //导入依赖的package包/类
boolean gst_bin_add(Bin bin, Element element);
示例6: gst_bin_add_many
import org.gstreamer.Bin; //导入依赖的package包/类
void gst_bin_add_many(Bin bin, Element... elements);
示例7: gst_bin_remove
import org.gstreamer.Bin; //导入依赖的package包/类
boolean gst_bin_remove(Bin bin, Element element);
示例8: gst_bin_remove_many
import org.gstreamer.Bin; //导入依赖的package包/类
void gst_bin_remove_many(Bin bin, Element... elements);
示例9: gst_bin_get_by_name
import org.gstreamer.Bin; //导入依赖的package包/类
@CallerOwnsReturn Element gst_bin_get_by_name(Bin bin, String name);
示例10: gst_bin_get_by_name_recurse_up
import org.gstreamer.Bin; //导入依赖的package包/类
@CallerOwnsReturn Element gst_bin_get_by_name_recurse_up(Bin bin, String name);
示例11: gst_bin_get_by_interface
import org.gstreamer.Bin; //导入依赖的package包/类
@CallerOwnsReturn Element gst_bin_get_by_interface(Bin bin, GType iface);
示例12: gst_bin_iterate_elements
import org.gstreamer.Bin; //导入依赖的package包/类
Pointer gst_bin_iterate_elements(Bin bin);
示例13: gst_bin_iterate_sorted
import org.gstreamer.Bin; //导入依赖的package包/类
Pointer gst_bin_iterate_sorted(Bin bin);
示例14: gst_bin_iterate_recurse
import org.gstreamer.Bin; //导入依赖的package包/类
Pointer gst_bin_iterate_recurse(Bin bin);
示例15: gst_bin_iterate_sinks
import org.gstreamer.Bin; //导入依赖的package包/类
Pointer gst_bin_iterate_sinks(Bin bin);