public unsafe RealPacket(global::Org.Jcodec.Movtool.Streaming.Tracks.RealTrack __self, global::Org.Jcodec.Containers.Mp4.MP4Packet 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(__self);
                    __args [1] = new JValue(p1);
                    if (GetType() != typeof(RealPacket))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Lorg/jcodec/containers/mp4/MP4Packet;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Lorg/jcodec/containers/mp4/MP4Packet;)V", __args);
                        return;
                    }

                    if (id_ctor_Lorg_jcodec_movtool_streaming_tracks_RealTrack_Lorg_jcodec_containers_mp4_MP4Packet_ == IntPtr.Zero)
                    {
                        id_ctor_Lorg_jcodec_movtool_streaming_tracks_RealTrack_Lorg_jcodec_containers_mp4_MP4Packet_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jcodec/movtool/streaming/tracks/RealTrack;Lorg/jcodec/containers/mp4/MP4Packet;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jcodec_movtool_streaming_tracks_RealTrack_Lorg_jcodec_containers_mp4_MP4Packet_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jcodec_movtool_streaming_tracks_RealTrack_Lorg_jcodec_containers_mp4_MP4Packet_, __args);
                } finally {
                }
            }
 static void n_Close(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Movtool.Streaming.Tracks.RealTrack __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Movtool.Streaming.Tracks.RealTrack> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Close();
 }
 static int n_GetPreferredTimescale(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Movtool.Streaming.Tracks.RealTrack __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Movtool.Streaming.Tracks.RealTrack> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.PreferredTimescale);
 }