Examples of GClassInitFunc


Examples of org.gstreamer.lowlevel.GObjectAPI.GClassInitFunc

                info.fixate = fixateCallback;
            } else if (m.getName().equals("srcEvent")) {
                info.event = eventCallback;
            }
        }
        info.classInit = new GClassInitFunc() {
            public void callback(Pointer g_class, Pointer class_data) {
                BaseSrcAPI.GstBaseSrcClass base = new BaseSrcAPI.GstBaseSrcClass(g_class);
                // Copy all the callback fields over
                for (Field f : base.getClass().getDeclaredFields()) {
                    try {
View Full Code Here

Examples of org.gstreamer.lowlevel.GObjectAPI.GClassInitFunc

//            } catch (IllegalAccessException ex) {               
            }
           
           
        }
        info.classInit = new GClassInitFunc() {
            public void callback(Pointer g_class, Pointer class_data) {
                BaseSinkAPI.GstBaseSinkClass base = new BaseSinkAPI.GstBaseSinkClass(g_class);
                base.render = info.render;
                base.preroll = info.preroll;
                base.start = info.start;
View Full Code Here

Examples of org.gstreamer.lowlevel.GObjectAPI.GClassInitFunc

    @Test
    public void registerNewGObjectClass() throws Exception {
        final PadTemplate template = new PadTemplate("src", PadDirection.SRC,
                Caps.anyCaps());
        final boolean[] classInitCalled  = { false };
        final GClassInitFunc classInit = new GClassInitFunc() {

            public void callback(Pointer g_class, Pointer class_data) {
                classInitCalled[0] = true;
            }
        };
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.