Examples of GList


Examples of de.yaams.extensions.rgssproject.database.GList

  /**
   * Build the gui
   */
  @Override
  protected void buildGui() {
    list = new GList(this, getTitle(), getIcon());
    gContent = new JPanel(new GridLayout(1, 1));
    super.buildGui();

    buildEmptyView();
  }
View Full Code Here

Examples of org.gstreamer.lowlevel.GlibAPI.GList

     *
     * @return a List of {@link Plugin}
     */
    public List<Plugin> getPluginList() {

        GList glist = gst.gst_registry_get_plugin_list(this);     
        List<Plugin> list = objectList(glist, Plugin.class);
        gst.gst_plugin_list_free(glist);
        return list;
    }
View Full Code Here

Examples of org.gstreamer.lowlevel.GlibAPI.GList

     *
     * @param type The plugin type.
     * @return a List of {@link PluginFeature} for the plugin type.
     */
    public List<PluginFeature> getPluginFeatureListByType(GType type) {
        GList glist = gst.gst_registry_get_feature_list(this, type);
        List<PluginFeature> list = objectList(glist, PluginFeature.class);
        gst.gst_plugin_feature_list_free(glist);
        return list;
    }
View Full Code Here

Examples of org.gstreamer.lowlevel.GlibAPI.GList

     * @param objectClass The proxy class to wrap the list elements in.
     * @return The converted list.
     */
    private List<Property> propertiesList(GList glist, boolean needRef, boolean ownsHandle) {
        List<Property> list = new ArrayList<Property>();
        GList next = glist;
        while (next != null) {
            if (next.data != null) {
                list.add(new Property(next.data, needRef, ownsHandle));
            }
            next = next.next();
        }
        return list;
    }
View Full Code Here

Examples of org.gstreamer.lowlevel.GlibAPI.GList

     *
     * @param name The plugin name.
     * @return a List of {@link PluginFeature} for the named plugin.
     */
    public List<PluginFeature> getPluginFeatureListByPlugin(String name) {
        GList glist = gst.gst_registry_get_feature_list_by_plugin(this, name);
        List<PluginFeature> list = objectList(glist, PluginFeature.class);
        gst.gst_plugin_feature_list_free(glist);
        return list;
    }
View Full Code Here

Examples of org.gstreamer.lowlevel.GlibAPI.GList

     * @param objectClass The proxy class to wrap the list elements in.
     * @return The converted list.
     */
    private <T extends GstObject> List<T> objectList(GList glist, Class<T> objectClass) {
        List<T> list = new ArrayList<T>();
        GList next = glist;
        while (next != null) {
            if (next.data != null) {
                list.add(GstObject.objectFor(next.data, objectClass, true, true));
            }
            next = next.next();  
        }
        return list;
    }
View Full Code Here

Examples of org.gstreamer.lowlevel.GlibAPI.GList

     * @param creator The proxy class to wrap the list elements in.
     * @return The converted list.
     */
    protected <T extends GObject> List<T> objectList(GList glist, ListElementCreator<T> creator) {
        List<T> list = new ArrayList<T>();
        GList next = glist;
        while (next != null) {
            if (next.data != null) {
                list.add(creator.create(next.data));
            }
            next = next.next();  
        }
        return list;
    }
View Full Code Here

Examples of org.gstreamer.lowlevel.GlibAPI.GList

     * @param objectClass The proxy class to wrap the list elements in.
     * @return The converted list.
     */
    private List<MixerTrack> trackList(GList glist, boolean needRef, boolean ownsHandle) {
        List<MixerTrack> list = new ArrayList<MixerTrack>();
        GList next = glist;
        while (next != null) {
            if (next.data != null) {
                list.add(new MixerTrack(this, next.data, needRef, ownsHandle));
            }
            next = next.next();  
        }
        return list;
    }
View Full Code Here

Examples of org.gstreamer.lowlevel.GlibAPI.GList

     *
     * @return The list of {@link StaticPadTemplate}
     */
    public List<StaticPadTemplate> getStaticPadTemplates() {
        logger.entering("ElementFactory", "getStaticPadTemplates");
        GList glist = gst.gst_element_factory_get_static_pad_templates(this);
        logger.log(DEBUG, "gst.gst_element_factory_get_static_pad_templates returned: " + glist);
        List<StaticPadTemplate> templates = new ArrayList<StaticPadTemplate>();
        GList next = glist;
        while (next != null) {
            if (next.data != null) {
                GstStaticPadTemplate temp = new GstStaticPadTemplate(next.data);
                templates.add(new StaticPadTemplate(temp.name_template, temp.direction,
                        temp.presence, gst.gst_static_caps_get(temp.static_caps)));
            }
            next = next.next();
        }
        return templates;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.