public unsafe Picture(int p0, int p1, int[][] p2, global::Org.Jcodec.Common.Model.ColorSpace p3, global::Org.Jcodec.Common.Model.Rect p4)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p2 = JNIEnv.NewArray(p2);

            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(p4);
                if (GetType() != typeof(Picture))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(II[[ILorg/jcodec/common/model/ColorSpace;Lorg/jcodec/common/model/Rect;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(II[[ILorg/jcodec/common/model/ColorSpace;Lorg/jcodec/common/model/Rect;)V", __args);
                    return;
                }

                if (id_ctor_IIarrayarrayILorg_jcodec_common_model_ColorSpace_Lorg_jcodec_common_model_Rect_ == IntPtr.Zero)
                {
                    id_ctor_IIarrayarrayILorg_jcodec_common_model_ColorSpace_Lorg_jcodec_common_model_Rect_ = JNIEnv.GetMethodID(class_ref, "<init>", "(II[[ILorg/jcodec/common/model/ColorSpace;Lorg/jcodec/common/model/Rect;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_IIarrayarrayILorg_jcodec_common_model_ColorSpace_Lorg_jcodec_common_model_Rect_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_IIarrayarrayILorg_jcodec_common_model_ColorSpace_Lorg_jcodec_common_model_Rect_, __args);
            } finally {
                if (p2 != null)
                {
                    JNIEnv.CopyArray(native_p2, p2);
                    JNIEnv.DeleteLocalRef(native_p2);
                }
            }
        }
 static void n_SetCrop_Lorg_jcodec_common_model_Rect_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Jcodec.Common.Model.Picture __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Jcodec.Common.Model.Rect    p0     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Rect> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Crop = p0;
 }
 public static unsafe global::Org.Jcodec.Common.Model.Picture Create(int p0, int p1, global::Org.Jcodec.Common.Model.ColorSpace p2, global::Org.Jcodec.Common.Model.Rect p3)
 {
     if (id_create_IILorg_jcodec_common_model_ColorSpace_Lorg_jcodec_common_model_Rect_ == IntPtr.Zero)
     {
         id_create_IILorg_jcodec_common_model_ColorSpace_Lorg_jcodec_common_model_Rect_ = JNIEnv.GetStaticMethodID(class_ref, "create", "(IILorg/jcodec/common/model/ColorSpace;Lorg/jcodec/common/model/Rect;)Lorg/jcodec/common/model/Picture;");
     }
     try {
         JValue *__args = stackalloc JValue [4];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         __args [2] = new JValue(p2);
         __args [3] = new JValue(p3);
         global::Org.Jcodec.Common.Model.Picture __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (JNIEnv.CallStaticObjectMethod(class_ref, id_create_IILorg_jcodec_common_model_ColorSpace_Lorg_jcodec_common_model_Rect_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Exemplo n.º 4
0
 static int n_GetHeight(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Common.Model.Rect __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Rect> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Height);
 }