static void n_AddFrameListener_Lorg_webrtc_EglRenderer_FrameListener_FLorg_webrtc_RendererCommon_GlDrawer_(IntPtr jnienv, IntPtr native__this, IntPtr native_listener, float scale, IntPtr native_drawerParam)
 {
     global::Org.Webrtc.SurfaceViewRenderer        __this      = global::Java.Lang.Object.GetObject <global::Org.Webrtc.SurfaceViewRenderer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Webrtc.EglRenderer.IFrameListener listener    = (global::Org.Webrtc.EglRenderer.IFrameListener)global::Java.Lang.Object.GetObject <global::Org.Webrtc.EglRenderer.IFrameListener> (native_listener, JniHandleOwnership.DoNotTransfer);
     global::Org.Webrtc.RendererCommon.IGlDrawer   drawerParam = (global::Org.Webrtc.RendererCommon.IGlDrawer)global::Java.Lang.Object.GetObject <global::Org.Webrtc.RendererCommon.IGlDrawer> (native_drawerParam, JniHandleOwnership.DoNotTransfer);
     __this.AddFrameListener(listener, scale, drawerParam);
 }
 static void n_DrawFrame_Lorg_webrtc_VideoFrame_Lorg_webrtc_RendererCommon_GlDrawer_(IntPtr jnienv, IntPtr native__this, IntPtr native_frame, IntPtr native_drawer)
 {
     global::Org.Webrtc.VideoFrameDrawer         __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.VideoFrameDrawer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Webrtc.VideoFrame               frame  = global::Java.Lang.Object.GetObject <global::Org.Webrtc.VideoFrame> (native_frame, JniHandleOwnership.DoNotTransfer);
     global::Org.Webrtc.RendererCommon.IGlDrawer drawer = (global::Org.Webrtc.RendererCommon.IGlDrawer)global::Java.Lang.Object.GetObject <global::Org.Webrtc.RendererCommon.IGlDrawer> (native_drawer, JniHandleOwnership.DoNotTransfer);
     __this.DrawFrame(frame, drawer);
 }
 static void n_DrawFrame_Lorg_webrtc_VideoFrame_Lorg_webrtc_RendererCommon_GlDrawer_Landroid_graphics_Matrix_IIII(IntPtr jnienv, IntPtr native__this, IntPtr native_frame, IntPtr native_drawer, IntPtr native_additionalRenderMatrix, int viewportX, int viewportY, int viewportWidth, int viewportHeight)
 {
     global::Org.Webrtc.VideoFrameDrawer         __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.VideoFrameDrawer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Webrtc.VideoFrame               frame  = global::Java.Lang.Object.GetObject <global::Org.Webrtc.VideoFrame> (native_frame, JniHandleOwnership.DoNotTransfer);
     global::Org.Webrtc.RendererCommon.IGlDrawer drawer = (global::Org.Webrtc.RendererCommon.IGlDrawer)global::Java.Lang.Object.GetObject <global::Org.Webrtc.RendererCommon.IGlDrawer> (native_drawer, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.Matrix             additionalRenderMatrix = global::Java.Lang.Object.GetObject <global::Android.Graphics.Matrix> (native_additionalRenderMatrix, JniHandleOwnership.DoNotTransfer);
     __this.DrawFrame(frame, drawer, additionalRenderMatrix, viewportX, viewportY, viewportWidth, viewportHeight);
 }
Ejemplo n.º 4
0
 static void n_DrawOes_IarrayFIIIIII(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1, int p2, int p3, int p4, int p5, int p6, int p7)
 {
     global::Org.Webrtc.RendererCommon.IGlDrawer __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.RendererCommon.IGlDrawer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     float[] p1 = (float[])JNIEnv.GetArray(native_p1, JniHandleOwnership.DoNotTransfer, typeof(float));
     __this.DrawOes(p0, p1, p2, p3, p4, p5, p6, p7);
     if (p1 != null)
     {
         JNIEnv.CopyArray(p1, native_p1);
     }
 }
        public virtual unsafe void DrawFrame(global::Org.Webrtc.VideoFrame frame, global::Org.Webrtc.RendererCommon.IGlDrawer drawer)
        {
            const string __id = "drawFrame.(Lorg/webrtc/VideoFrame;Lorg/webrtc/RendererCommon$GlDrawer;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((frame == null) ? IntPtr.Zero : ((global::Java.Lang.Object)frame).Handle);
                __args [1] = new JniArgumentValue((drawer == null) ? IntPtr.Zero : ((global::Java.Lang.Object)drawer).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
Ejemplo n.º 6
0
 static void n_Init_Lorg_webrtc_EglBase_Context_Lorg_webrtc_RendererCommon_RendererEvents_arrayILorg_webrtc_RendererCommon_GlDrawer_(IntPtr jnienv, IntPtr native__this, IntPtr native_sharedContext, IntPtr native_rendererEvents, IntPtr native_configAttributes, IntPtr native_drawer)
 {
     global::Org.Webrtc.SurfaceEglRenderer             __this         = global::Java.Lang.Object.GetObject <global::Org.Webrtc.SurfaceEglRenderer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Webrtc.IEglBaseContext                sharedContext  = (global::Org.Webrtc.IEglBaseContext)global::Java.Lang.Object.GetObject <global::Org.Webrtc.IEglBaseContext> (native_sharedContext, JniHandleOwnership.DoNotTransfer);
     global::Org.Webrtc.RendererCommon.IRendererEvents rendererEvents = (global::Org.Webrtc.RendererCommon.IRendererEvents)global::Java.Lang.Object.GetObject <global::Org.Webrtc.RendererCommon.IRendererEvents> (native_rendererEvents, JniHandleOwnership.DoNotTransfer);
     int[] configAttributes = (int[])JNIEnv.GetArray(native_configAttributes, JniHandleOwnership.DoNotTransfer, typeof(int));
     global::Org.Webrtc.RendererCommon.IGlDrawer drawer = (global::Org.Webrtc.RendererCommon.IGlDrawer)global::Java.Lang.Object.GetObject <global::Org.Webrtc.RendererCommon.IGlDrawer> (native_drawer, JniHandleOwnership.DoNotTransfer);
     __this.Init(sharedContext, rendererEvents, configAttributes, drawer);
     if (configAttributes != null)
     {
         JNIEnv.CopyArray(configAttributes, native_configAttributes);
     }
 }
        public virtual unsafe void DrawFrame(global::Org.Webrtc.VideoFrame frame, global::Org.Webrtc.RendererCommon.IGlDrawer drawer, global::Android.Graphics.Matrix additionalRenderMatrix, int viewportX, int viewportY, int viewportWidth, int viewportHeight)
        {
            const string __id = "drawFrame.(Lorg/webrtc/VideoFrame;Lorg/webrtc/RendererCommon$GlDrawer;Landroid/graphics/Matrix;IIII)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [7];
                __args [0] = new JniArgumentValue((frame == null) ? IntPtr.Zero : ((global::Java.Lang.Object)frame).Handle);
                __args [1] = new JniArgumentValue((drawer == null) ? IntPtr.Zero : ((global::Java.Lang.Object)drawer).Handle);
                __args [2] = new JniArgumentValue((additionalRenderMatrix == null) ? IntPtr.Zero : ((global::Java.Lang.Object)additionalRenderMatrix).Handle);
                __args [3] = new JniArgumentValue(viewportX);
                __args [4] = new JniArgumentValue(viewportY);
                __args [5] = new JniArgumentValue(viewportWidth);
                __args [6] = new JniArgumentValue(viewportHeight);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
        public static unsafe void DrawTexture(global::Org.Webrtc.RendererCommon.IGlDrawer drawer, global::Org.Webrtc.VideoFrame.ITextureBuffer buffer, global::Android.Graphics.Matrix renderMatrix, int frameWidth, int frameHeight, int viewportX, int viewportY, int viewportWidth, int viewportHeight)
        {
            const string __id = "drawTexture.(Lorg/webrtc/RendererCommon$GlDrawer;Lorg/webrtc/VideoFrame$TextureBuffer;Landroid/graphics/Matrix;IIIIII)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [9];
                __args [0] = new JniArgumentValue((drawer == null) ? IntPtr.Zero : ((global::Java.Lang.Object)drawer).Handle);
                __args [1] = new JniArgumentValue((buffer == null) ? IntPtr.Zero : ((global::Java.Lang.Object)buffer).Handle);
                __args [2] = new JniArgumentValue((renderMatrix == null) ? IntPtr.Zero : ((global::Java.Lang.Object)renderMatrix).Handle);
                __args [3] = new JniArgumentValue(frameWidth);
                __args [4] = new JniArgumentValue(frameHeight);
                __args [5] = new JniArgumentValue(viewportX);
                __args [6] = new JniArgumentValue(viewportY);
                __args [7] = new JniArgumentValue(viewportWidth);
                __args [8] = new JniArgumentValue(viewportHeight);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
            }
        }
Ejemplo n.º 9
0
        public virtual unsafe void Init(global::Org.Webrtc.IEglBaseContext sharedContext, global::Org.Webrtc.RendererCommon.IRendererEvents rendererEvents, int[] configAttributes, global::Org.Webrtc.RendererCommon.IGlDrawer drawer)
        {
            const string __id = "init.(Lorg/webrtc/EglBase$Context;Lorg/webrtc/RendererCommon$RendererEvents;[ILorg/webrtc/RendererCommon$GlDrawer;)V";
            IntPtr       native_configAttributes = JNIEnv.NewArray(configAttributes);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [4];
                __args [0] = new JniArgumentValue((sharedContext == null) ? IntPtr.Zero : ((global::Java.Lang.Object)sharedContext).Handle);
                __args [1] = new JniArgumentValue((rendererEvents == null) ? IntPtr.Zero : ((global::Java.Lang.Object)rendererEvents).Handle);
                __args [2] = new JniArgumentValue(native_configAttributes);
                __args [3] = new JniArgumentValue((drawer == null) ? IntPtr.Zero : ((global::Java.Lang.Object)drawer).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
                if (configAttributes != null)
                {
                    JNIEnv.CopyArray(native_configAttributes, configAttributes);
                    JNIEnv.DeleteLocalRef(native_configAttributes);
                }
            }
        }
        public virtual unsafe void AddFrameListener(global::Org.Webrtc.EglRenderer.IFrameListener listener, float scale, global::Org.Webrtc.RendererCommon.IGlDrawer drawerParam)
        {
            const string __id = "addFrameListener.(Lorg/webrtc/EglRenderer$FrameListener;FLorg/webrtc/RendererCommon$GlDrawer;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((listener == null) ? IntPtr.Zero : ((global::Java.Lang.Object)listener).Handle);
                __args [1] = new JniArgumentValue(scale);
                __args [2] = new JniArgumentValue((drawerParam == null) ? IntPtr.Zero : ((global::Java.Lang.Object)drawerParam).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
Ejemplo n.º 11
0
 static void n_Release(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Webrtc.RendererCommon.IGlDrawer __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.RendererCommon.IGlDrawer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Release();
 }