Package org.gstreamer.event

Examples of org.gstreamer.event.BufferSizeEvent


    }
    @Test public void BufferSize_getMinimumSize() {
        final long MIN = 0x1234;
        final long MAX = 0xdeadbeef;
        final boolean ASYNC = false;
        BufferSizeEvent ev = (BufferSizeEvent) gst.gst_event_new_buffer_size(Format.BYTES, MIN, MAX, ASYNC);
        assertEquals("Wrong minimum size stored", MIN, ev.getMinimumSize());
    }
View Full Code Here


    }
    @Test public void BufferSize_getMaximumSize() {
        final long MIN = 0x1234;
        final long MAX = 0xdeadbeef;
        final boolean ASYNC = false;
        BufferSizeEvent ev = (BufferSizeEvent) gst.gst_event_new_buffer_size(Format.BYTES, MIN, MAX, ASYNC);
        assertEquals("Wrong minimum size stored", MAX, ev.getMaximumSize());
    }
View Full Code Here

    }
    @Test public void BufferSize_isAsync() {
        final long MIN = 0x1234;
        final long MAX = 0xdeadbeef;
        final boolean ASYNC = false;
        BufferSizeEvent ev = (BufferSizeEvent) gst.gst_event_new_buffer_size(Format.BYTES, MIN, MAX, ASYNC);
        assertEquals("Wrong minimum size stored", ASYNC, ev.isAsync());
        BufferSizeEvent ev2 = (BufferSizeEvent) gst.gst_event_new_buffer_size(Format.BYTES, MIN, MAX, !ASYNC);
        assertEquals("Wrong minimum size stored", !ASYNC, ev2.isAsync());
    }
View Full Code Here

TOP

Related Classes of org.gstreamer.event.BufferSizeEvent

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.