static void n_Setup_Landroid_graphics_Matrix_Landroid_graphics_Rect_Landroid_graphics_RectF_ZZ(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, bool p3, bool p4)
 {
     global::Com.Android.Camera.HighlightView __this = global::Java.Lang.Object.GetObject <global::Com.Android.Camera.HighlightView> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.Matrix          p0     = global::Java.Lang.Object.GetObject <global::Android.Graphics.Matrix> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.Rect            p1     = global::Java.Lang.Object.GetObject <global::Android.Graphics.Rect> (native_p1, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.RectF           p2     = global::Java.Lang.Object.GetObject <global::Android.Graphics.RectF> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.Setup(p0, p1, p2, p3, p4);
 }
 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);
 }
Example #3
0
        static IntPtr n_ApplyTransformMatrix_Landroid_graphics_Matrix_II(IntPtr jnienv, IntPtr native__this, IntPtr native_transformMatrix, int newWidth, int newHeight)
        {
            global::Org.Webrtc.TextureBufferImpl __this          = global::Java.Lang.Object.GetObject <global::Org.Webrtc.TextureBufferImpl> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Graphics.Matrix      transformMatrix = global::Java.Lang.Object.GetObject <global::Android.Graphics.Matrix> (native_transformMatrix, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.ApplyTransformMatrix(transformMatrix, newWidth, newHeight));

            return(__ret);
        }
        static IntPtr n_Render_Landroid_graphics_Rect_Landroid_graphics_Matrix_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Org.Vudroid.Pdfdroid.Codec.PdfPage __this = global::Java.Lang.Object.GetObject <global::Org.Vudroid.Pdfdroid.Codec.PdfPage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Graphics.Rect   p0 = global::Java.Lang.Object.GetObject <global::Android.Graphics.Rect> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Android.Graphics.Matrix p1 = global::Java.Lang.Object.GetObject <global::Android.Graphics.Matrix> (native_p1, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Render(p0, p1));

            return(__ret);
        }
#pragma warning restore 0649

            public void OnMactrixChage(global::Android.Graphics.Matrix p0)
            {
                var __h = Handler;

                if (__h != null)
                {
                    __h(sender, new MatrixChangedEventArgs(p0));
                }
            }
 public static global::Android.Graphics.Bitmap Transform(global::Android.Graphics.Matrix p0, global::Android.Graphics.Bitmap p1, int p2, int p3, bool p4, bool p5)
 {
     if (id_transform_Landroid_graphics_Matrix_Landroid_graphics_Bitmap_IIZZ == IntPtr.Zero)
     {
         id_transform_Landroid_graphics_Matrix_Landroid_graphics_Bitmap_IIZZ = JNIEnv.GetStaticMethodID(class_ref, "transform", "(Landroid/graphics/Matrix;Landroid/graphics/Bitmap;IIZZ)Landroid/graphics/Bitmap;");
     }
     global::Android.Graphics.Bitmap __ret = global::Java.Lang.Object.GetObject <global::Android.Graphics.Bitmap> (JNIEnv.CallStaticObjectMethod(class_ref, id_transform_Landroid_graphics_Matrix_Landroid_graphics_Bitmap_IIZZ, new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4), new JValue(p5)), JniHandleOwnership.TransferLocalRef);
     return(__ret);
 }
Example #7
0
        public static global::Android.Graphics.Bitmap Rotate(global::Android.Graphics.Bitmap bitmap, int degree)
        {
            int w = bitmap.Width;
            int h = bitmap.Height;

            global::Android.Graphics.Matrix mtx = new global::Android.Graphics.Matrix();
            mtx.PostRotate(degree);

            return(global::Android.Graphics.Bitmap.CreateBitmap(bitmap, 0, 0, w, h, mtx, true));
        }
Example #8
0
        public unsafe void GetTransform(global::Android.Graphics.Matrix p0)
        {
            if (id_getTransform_Landroid_graphics_Matrix_ == IntPtr.Zero)
            {
                id_getTransform_Landroid_graphics_Matrix_ = JNIEnv.GetMethodID(class_ref, "getTransform", "(Landroid/graphics/Matrix;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_getTransform_Landroid_graphics_Matrix_, __args);
        }
        public virtual unsafe void GetTransform(global::Android.Graphics.Matrix transform)
        {
            const string __id = "getTransform.(Landroid/graphics/Matrix;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((transform == null) ? IntPtr.Zero : ((global::Java.Lang.Object)transform).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
Example #10
0
        public static unsafe float[] ConvertMatrixFromAndroidGraphicsMatrix(global::Android.Graphics.Matrix matrix)
        {
            const string __id = "convertMatrixFromAndroidGraphicsMatrix.(Landroid/graphics/Matrix;)[F";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((matrix == null) ? IntPtr.Zero : ((global::Java.Lang.Object)matrix).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return((float[])JNIEnv.GetArray(__rm.Handle, JniHandleOwnership.TransferLocalRef, typeof(float)));
            } finally {
            }
        }
        public virtual void Setup(global::Android.Graphics.Matrix p0, global::Android.Graphics.Rect p1, global::Android.Graphics.RectF p2, bool p3, bool p4)
        {
            if (id_setup_Landroid_graphics_Matrix_Landroid_graphics_Rect_Landroid_graphics_RectF_ZZ == IntPtr.Zero)
            {
                id_setup_Landroid_graphics_Matrix_Landroid_graphics_Rect_Landroid_graphics_RectF_ZZ = JNIEnv.GetMethodID(class_ref, "setup", "(Landroid/graphics/Matrix;Landroid/graphics/Rect;Landroid/graphics/RectF;ZZ)V");
            }

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_setup_Landroid_graphics_Matrix_Landroid_graphics_Rect_Landroid_graphics_RectF_ZZ, new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setup", "(Landroid/graphics/Matrix;Landroid/graphics/Rect;Landroid/graphics/RectF;ZZ)V"), new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4));
            }
        }
        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 {
            }
        }
Example #13
0
 static void n_GetTransform_Landroid_graphics_Matrix_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Facebook.Drawee.Drawable.ITransformCallback __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Drawable.ITransformCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.Matrix p0 = global::Java.Lang.Object.GetObject <global::Android.Graphics.Matrix> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.GetTransform(p0);
 }
 static void n_GetTransform_Landroid_graphics_Matrix_(IntPtr jnienv, IntPtr native__this, IntPtr native_transform)
 {
     global::Com.Facebook.Drawee.Drawable.ArrayDrawable __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Drawable.ArrayDrawable> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.Matrix transform = global::Java.Lang.Object.GetObject <global::Android.Graphics.Matrix> (native_transform, JniHandleOwnership.DoNotTransfer);
     __this.GetTransform(transform);
 }
 public static unsafe global::Android.Graphics.Bitmap WarpBitmap(global::Android.Graphics.Bitmap p0, global::Android.Graphics.Matrix p1, int p2, int p3, float p4)
 {
     if (id_warpBitmap_Landroid_graphics_Bitmap_Landroid_graphics_Matrix_IIF == IntPtr.Zero)
     {
         id_warpBitmap_Landroid_graphics_Bitmap_Landroid_graphics_Matrix_IIF = JNIEnv.GetStaticMethodID(class_ref, "warpBitmap", "(Landroid/graphics/Bitmap;Landroid/graphics/Matrix;IIF)Landroid/graphics/Bitmap;");
     }
     try {
         JValue *__args = stackalloc JValue [5];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         __args [2] = new JValue(p2);
         __args [3] = new JValue(p3);
         __args [4] = new JValue(p4);
         global::Android.Graphics.Bitmap __ret = global::Java.Lang.Object.GetObject <global::Android.Graphics.Bitmap> (JNIEnv.CallStaticObjectMethod(class_ref, id_warpBitmap_Landroid_graphics_Bitmap_Landroid_graphics_Matrix_IIF, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 static void n_OnMactrixChage_Landroid_graphics_Matrix_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Mob.Tools.Gui.ScaledImageView.IOnMatrixChangedListener __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Gui.ScaledImageView.IOnMatrixChangedListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.Matrix p0 = global::Java.Lang.Object.GetObject <global::Android.Graphics.Matrix> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnMactrixChage(p0);
 }
        public unsafe MatrixDrawable(global::Android.Graphics.Drawables.Drawable drawable, global::Android.Graphics.Matrix matrix)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Landroid/graphics/drawable/Drawable;Landroid/graphics/Matrix;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((drawable == null) ? IntPtr.Zero : ((global::Java.Lang.Object)drawable).Handle);
                __args [1] = new JniArgumentValue((matrix == null) ? IntPtr.Zero : ((global::Java.Lang.Object)matrix).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
 public MatrixChangedEventArgs(global::Android.Graphics.Matrix p0)
 {
     this.p0 = p0;
 }
        public virtual global::Android.Graphics.Bitmap Render(global::Android.Graphics.Rect p0, global::Android.Graphics.Matrix p1)
        {
            if (id_render_Landroid_graphics_Rect_Landroid_graphics_Matrix_ == IntPtr.Zero)
            {
                id_render_Landroid_graphics_Rect_Landroid_graphics_Matrix_ = JNIEnv.GetMethodID(class_ref, "render", "(Landroid/graphics/Rect;Landroid/graphics/Matrix;)Landroid/graphics/Bitmap;");
            }

            global::Android.Graphics.Bitmap __ret;
            if (GetType() == ThresholdType)
            {
                __ret = global::Java.Lang.Object.GetObject <global::Android.Graphics.Bitmap> (JNIEnv.CallObjectMethod(Handle, id_render_Landroid_graphics_Rect_Landroid_graphics_Matrix_, new JValue(p0), new JValue(p1)), JniHandleOwnership.TransferLocalRef);
            }
            else
            {
                __ret = global::Java.Lang.Object.GetObject <global::Android.Graphics.Bitmap> (JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "render", "(Landroid/graphics/Rect;Landroid/graphics/Matrix;)Landroid/graphics/Bitmap;"), new JValue(p0), new JValue(p1)), JniHandleOwnership.TransferLocalRef);
            }
            return(__ret);
        }
 static void n_SetMatrix_Landroid_graphics_Matrix_(IntPtr jnienv, IntPtr native__this, IntPtr native_matrix)
 {
     global::Com.Facebook.Drawee.Drawable.MatrixDrawable __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Drawable.MatrixDrawable> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.Matrix matrix = global::Java.Lang.Object.GetObject <global::Android.Graphics.Matrix> (native_matrix, JniHandleOwnership.DoNotTransfer);
     __this.Matrix = matrix;
 }
        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 {
            }
        }
Example #22
0
        public unsafe TextureBufferImpl(int width, int height, global::Org.Webrtc.VideoFrame.TextureBufferType type, int id, global::Android.Graphics.Matrix transformMatrix, global::Android.OS.Handler toI420Handler, global::Org.Webrtc.YuvConverter yuvConverter, global::Java.Lang.IRunnable releaseCallback)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(IILorg/webrtc/VideoFrame$TextureBuffer$Type;ILandroid/graphics/Matrix;Landroid/os/Handler;Lorg/webrtc/YuvConverter;Ljava/lang/Runnable;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [8];
                __args [0] = new JniArgumentValue(width);
                __args [1] = new JniArgumentValue(height);
                __args [2] = new JniArgumentValue((type == null) ? IntPtr.Zero : ((global::Java.Lang.Object)type).Handle);
                __args [3] = new JniArgumentValue(id);
                __args [4] = new JniArgumentValue((transformMatrix == null) ? IntPtr.Zero : ((global::Java.Lang.Object)transformMatrix).Handle);
                __args [5] = new JniArgumentValue((toI420Handler == null) ? IntPtr.Zero : ((global::Java.Lang.Object)toI420Handler).Handle);
                __args [6] = new JniArgumentValue((yuvConverter == null) ? IntPtr.Zero : ((global::Java.Lang.Object)yuvConverter).Handle);
                __args [7] = new JniArgumentValue((releaseCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)releaseCallback).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
Example #23
0
        public virtual unsafe global::Org.Webrtc.TextureBufferImpl ApplyTransformMatrix(global::Android.Graphics.Matrix transformMatrix, int newWidth, int newHeight)
        {
            const string __id = "applyTransformMatrix.(Landroid/graphics/Matrix;II)Lorg/webrtc/TextureBufferImpl;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((transformMatrix == null) ? IntPtr.Zero : ((global::Java.Lang.Object)transformMatrix).Handle);
                __args [1] = new JniArgumentValue(newWidth);
                __args [2] = new JniArgumentValue(newHeight);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Org.Webrtc.TextureBufferImpl> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }