- Added support for extracting values from a
Structure
backed by a native GValueArray
public <T> List<T> getValues(Class<T> type, String fieldName); // type needed for validation
public int[] getIntegers(String fieldName);
public int[] getIntegers(String fieldName, int[] array); // allow caching of array
public double[] getDoubles(String fieldName);
public double[] getDoubles(String fieldName, double[] array);
- Added
query()
method to Element
API to support arbitrary queries, check if the query could be performed, access underlying query Structure
. Use eg. -
SeekingQuery q = new SeekingQuery(Format.TIME);
if (pipe.query(q)) {
System.out.println(q.getStart() + " | " + q.getEnd());
//System.out.println(q.getStructure());
} else {
System.out.println("Couldn't perform seeking query");
}
- Various fixes including making sure all registered classes triggered by
Gst.init()
now correctly extend NativeObject
(blocker for above features). Some potential for regression if anything relies on class initialization order of the removed non-NativeObject classes - other mechanism might be required, but all tests OK.