Package org.gstreamer.query

Examples of org.gstreamer.query.SegmentQuery$API


   * Example test method
   */

  @Test
  public void simple() {
    _stem_ impl = new _stem_Impl();
   
    impl.say("Hello World");
  }
View Full Code Here


        ApplicationQuery query = new ApplicationQuery(type, s);
        s = query.getStructure();
        query.dispose();
    }
    @Test public void segmentQuery() {
        SegmentQuery query = new SegmentQuery(Format.TIME);
        ClockTime end = ClockTime.fromMillis(1000);
        query.setSegment(1.0, Format.TIME, 0, end.toNanos());
        assertEquals("Format not set correctly", Format.TIME, query.getFormat());
        assertEquals("Start time not set correctly", 0, query.getStart());
        assertEquals("End time not set correctly", end.toNanos(), query.getEnd());
    }
View Full Code Here

    @Test public void customQueryType() {
        QueryType qt = GstQueryAPI.GSTQUERY_API.gst_query_type_register("test", "A test query type");
        assertEquals("nick mismatch", qt, QueryType.fromNick("test"));
    }
    @Test public void makeWriteable() {
        Query query = new SegmentQuery(Format.TIME);
        assertTrue("New query is not writable", query.isWritable());
        // Bumping the ref count makes this instance non writable
        GstNative.load(GstMiniObjectAPI.class).gst_mini_object_ref(query);
        assertFalse("Query with multiple references should not be writable", query.isWritable());
        // Now get a new reference that is writable
        query = query.makeWritable();
        assertTrue("Query not writable after makeWritable", query.isWritable());
    }
View Full Code Here

TOP

Related Classes of org.gstreamer.query.SegmentQuery$API

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.