Exemple #1
0
        public unsafe GOPHeader(global::Org.Jcodec.Common.Model.TapeTimecode p0, bool p1, bool p2)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                if (GetType() != typeof(GOPHeader))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/jcodec/common/model/TapeTimecode;ZZ)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/jcodec/common/model/TapeTimecode;ZZ)V", __args);
                    return;
                }

                if (id_ctor_Lorg_jcodec_common_model_TapeTimecode_ZZ == IntPtr.Zero)
                {
                    id_ctor_Lorg_jcodec_common_model_TapeTimecode_ZZ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jcodec/common/model/TapeTimecode;ZZ)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jcodec_common_model_TapeTimecode_ZZ, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jcodec_common_model_TapeTimecode_ZZ, __args);
            } finally {
            }
        }
        public unsafe MP4Packet(global::Org.Jcodec.Containers.Mp4.MP4Packet p0, global::Org.Jcodec.Common.Model.TapeTimecode p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (GetType() != typeof(MP4Packet))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/jcodec/containers/mp4/MP4Packet;Lorg/jcodec/common/model/TapeTimecode;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/jcodec/containers/mp4/MP4Packet;Lorg/jcodec/common/model/TapeTimecode;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_jcodec_containers_mp4_MP4Packet_Lorg_jcodec_common_model_TapeTimecode_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_jcodec_containers_mp4_MP4Packet_Lorg_jcodec_common_model_TapeTimecode_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jcodec/containers/mp4/MP4Packet;Lorg/jcodec/common/model/TapeTimecode;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jcodec_containers_mp4_MP4Packet_Lorg_jcodec_common_model_TapeTimecode_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jcodec_containers_mp4_MP4Packet_Lorg_jcodec_common_model_TapeTimecode_, __args);
            } finally {
            }
        }
Exemple #3
0
 static sbyte n_GetFrame(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Common.Model.TapeTimecode __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.TapeTimecode> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Frame);
 }
        public unsafe MP4Packet(global::Java.Nio.ByteBuffer p0, long p1, long p2, long p3, long p4, bool p5, global::Org.Jcodec.Common.Model.TapeTimecode p6, long p7, int p8, long p9, int p10, bool p11)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [12];
                __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);
                __args [5]  = new JValue(p5);
                __args [6]  = new JValue(p6);
                __args [7]  = new JValue(p7);
                __args [8]  = new JValue(p8);
                __args [9]  = new JValue(p9);
                __args [10] = new JValue(p10);
                __args [11] = new JValue(p11);
                if (GetType() != typeof(MP4Packet))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Ljava/nio/ByteBuffer;JJJJZLorg/jcodec/common/model/TapeTimecode;JIJIZ)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/nio/ByteBuffer;JJJJZLorg/jcodec/common/model/TapeTimecode;JIJIZ)V", __args);
                    return;
                }

                if (id_ctor_Ljava_nio_ByteBuffer_JJJJZLorg_jcodec_common_model_TapeTimecode_JIJIZ == IntPtr.Zero)
                {
                    id_ctor_Ljava_nio_ByteBuffer_JJJJZLorg_jcodec_common_model_TapeTimecode_JIJIZ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/nio/ByteBuffer;JJJJZLorg/jcodec/common/model/TapeTimecode;JIJIZ)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_nio_ByteBuffer_JJJJZLorg_jcodec_common_model_TapeTimecode_JIJIZ, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_nio_ByteBuffer_JJJJZLorg_jcodec_common_model_TapeTimecode_JIJIZ, __args);
            } finally {
            }
        }
 static void n_SetTapeTimecode_Lorg_jcodec_common_model_TapeTimecode_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Jcodec.Common.Model.Packet       __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Packet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Jcodec.Common.Model.TapeTimecode p0     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.TapeTimecode> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.TapeTimecode = p0;
 }
Exemple #6
0
        public unsafe Frame(global::Org.Jcodec.Common.Model.Picture p0, global::Org.Jcodec.Common.Model.RationalLarge p1, global::Org.Jcodec.Common.Model.RationalLarge p2, global::Org.Jcodec.Common.Model.Rational p3, int p4, global::Org.Jcodec.Common.Model.TapeTimecode p5, global::System.Collections.Generic.IList <string> p6)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p6 = global::Android.Runtime.JavaList <string> .ToLocalJniHandle(p6);

            try {
                JValue *__args = stackalloc JValue [7];
                __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);
                __args [5] = new JValue(p5);
                __args [6] = new JValue(native_p6);
                if (GetType() != typeof(Frame))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/jcodec/common/model/Picture;Lorg/jcodec/common/model/RationalLarge;Lorg/jcodec/common/model/RationalLarge;Lorg/jcodec/common/model/Rational;ILorg/jcodec/common/model/TapeTimecode;Ljava/util/List;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/jcodec/common/model/Picture;Lorg/jcodec/common/model/RationalLarge;Lorg/jcodec/common/model/RationalLarge;Lorg/jcodec/common/model/Rational;ILorg/jcodec/common/model/TapeTimecode;Ljava/util/List;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_Rational_ILorg_jcodec_common_model_TapeTimecode_Ljava_util_List_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_Rational_ILorg_jcodec_common_model_TapeTimecode_Ljava_util_List_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jcodec/common/model/Picture;Lorg/jcodec/common/model/RationalLarge;Lorg/jcodec/common/model/RationalLarge;Lorg/jcodec/common/model/Rational;ILorg/jcodec/common/model/TapeTimecode;Ljava/util/List;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_Rational_ILorg_jcodec_common_model_TapeTimecode_Ljava_util_List_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_Rational_ILorg_jcodec_common_model_TapeTimecode_Ljava_util_List_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p6);
            }
        }