Examples of GValueArray


Examples of org.gstreamer.lowlevel.GValueAPI.GValueArray

        return list;
    }

    private Object[] valuesArray(Pointer ptr) {
        if (ptr == null) return null;
        GValueArray valueArray = null;
        try
        {
            valueArray = new GValueArray(ptr);
        }
        catch (NullPointerException ex)
        {
            // This probably means that there are not values available for the
            // specified property.
            return null;
        }
        if (valueArray != null)
        {
            Object[] objectArray = new Object[valueArray.n_values];
            for (int i = 0; i < valueArray.n_values; i++)
            {
                objectArray[i] = valueArray.getValue(i);
            }
            return objectArray;
        }
        else return null;
    }
View Full Code Here

Examples of org.gstreamer.lowlevel.GValueAPI.GValueArray

   * language-codes).
   */
  public List<StreamInfo> getStreamInfo() {
    Pointer ptr = getPointer("stream-info-value-array");
    if (ptr != null) {
      GValueArray garray = new GValueArray(ptr);
      List<StreamInfo> list = new ArrayList<StreamInfo>(garray.getNValues());

      for (GValueAPI.GValue value : garray.values) {
        StreamInfo streamInfo;
        { /*
           * this is a work-around gst_stream_info_get_type() symbols not
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.