Package org.gstreamer.query

Examples of org.gstreamer.query.FormatsQuery


        Query query = GstQueryAPI.GSTQUERY_API.gst_query_new_formats();
        assertNotNull("gst_query_new_latency() returned null", query);
        assertTrue("Returned query not instance of LatencyQuery", query instanceof FormatsQuery);
    }
    @Test public void formatsQueryCount() {
        FormatsQuery query = new FormatsQuery();
        query.setFormats(Format.TIME, Format.PERCENT);
        assertEquals("Wrong formats count", 2, query.getCount());
    }
View Full Code Here


        FormatsQuery query = new FormatsQuery();
        query.setFormats(Format.TIME, Format.PERCENT);
        assertEquals("Wrong formats count", 2, query.getCount());
    }
    @Test public void formatsQueryFormats() {
        FormatsQuery query = new FormatsQuery();
        query.setFormats(Format.TIME, Format.PERCENT);
        assertEquals("First format incorrect", Format.TIME, query.getFormat(0));
        assertEquals("Second format incorrect", Format.PERCENT, query.getFormat(1));
        List<Format> formats = query.getFormats();
        assertEquals("First format incorrect", Format.TIME, formats.get(0));
        assertEquals("Second format incorrect", Format.PERCENT, formats.get(1));
    }
View Full Code Here

TOP

Related Classes of org.gstreamer.query.FormatsQuery

Copyright © 2018 www.massapicom. 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.