Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (c) 2019 Neil C Smith
* Copyright (c) 2016 Christophe Lafolet
* Copyright (c) 2014 Tom Greenwood
* Copyright (c) 2007 Wayne Meissner
*
* This file is part of gstreamer-java.
*
* This code is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 3 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* version 3 for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with this work. If not, see .
*/
package org.freedesktop.gstreamer;
import static org.freedesktop.gstreamer.lowlevel.GlibAPI.GLIB_API;
import static org.freedesktop.gstreamer.lowlevel.GstTagAPI.GSTTAG_API;
import static org.freedesktop.gstreamer.lowlevel.GstTagListAPI.GSTTAGLIST_API;
import java.util.AbstractList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.freedesktop.gstreamer.glib.GDate;
import org.freedesktop.gstreamer.lowlevel.GType;
import org.freedesktop.gstreamer.lowlevel.GstTagListAPI;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.PointerByReference;
import org.freedesktop.gstreamer.glib.NativeObject;
import org.freedesktop.gstreamer.glib.Natives;
/**
* List of tags and values used to describe media metadata.
*
*/
//@TODO consider handling Sample fields.
public class TagList extends MiniObject {
public static final String GTYPE_NAME = "GstTagList";
/**
* Creates a new instance of TagList
*
* @param init internal initialization data.
*/
TagList(Initializer init) {
super(init);
}
/**
* Constructs a new empty tag list.
*/
public TagList() {
super(initializer());
}
private static Initializer initializer() {
final Pointer ptr_new_tag_list = GSTTAGLIST_API.ptr_gst_tag_list_new_empty();
return Natives.initializer(ptr_new_tag_list);
}
/**
* Gets the number of values of type {@code tag} stored in the list.
*
* @param tag the name of the tag to get the size of.
* @return the number of values for {@code tag} in this list.
*/
public int getValueCount(String tag) {
return GSTTAGLIST_API.gst_tag_list_get_tag_size(this, tag);
}
/**
* Gets all data values for a tag contained in this list.
*
* @param tag the name of the tag to retrieve.
* @return the data associated with {@code tag}.
*/
public List