Пример #1
0
 static void n_DecodeMBlockIPCM_Lorg_jcodec_common_io_BitReader_ILorg_jcodec_common_model_Picture_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, IntPtr native_p2)
 {
     global::Org.Jcodec.Codecs.H264.Decode.SliceDecoder __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.H264.Decode.SliceDecoder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Jcodec.Common.IO.BitReader             p0     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.BitReader> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Org.Jcodec.Common.Model.Picture            p2     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.DecodeMBlockIPCM(p0, p1, p2);
 }
        public virtual unsafe void ReadChromaDCBlock(global::Org.Jcodec.Common.IO.BitReader p0, int[] p1, bool p2, bool p3)
        {
            if (id_readChromaDCBlock_Lorg_jcodec_common_io_BitReader_arrayIZZ == IntPtr.Zero)
            {
                id_readChromaDCBlock_Lorg_jcodec_common_io_BitReader_arrayIZZ = JNIEnv.GetMethodID(class_ref, "readChromaDCBlock", "(Lorg/jcodec/common/io/BitReader;[IZZ)V");
            }
            IntPtr native_p1 = JNIEnv.NewArray(p1);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_readChromaDCBlock_Lorg_jcodec_common_io_BitReader_arrayIZZ, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "readChromaDCBlock", "(Lorg/jcodec/common/io/BitReader;[IZZ)V"), __args);
                }
            } finally {
                if (p1 != null)
                {
                    JNIEnv.CopyArray(native_p1, p1);
                    JNIEnv.DeleteLocalRef(native_p1);
                }
            }
        }
        public static unsafe void ReadDCCoeffs(global::Org.Jcodec.Common.IO.BitReader p0, int[] p1, int[] p2, int p3, int p4)
        {
            if (id_readDCCoeffs_Lorg_jcodec_common_io_BitReader_arrayIarrayIII == IntPtr.Zero)
            {
                id_readDCCoeffs_Lorg_jcodec_common_io_BitReader_arrayIarrayIII = JNIEnv.GetStaticMethodID(class_ref, "readDCCoeffs", "(Lorg/jcodec/common/io/BitReader;[I[III)V");
            }
            IntPtr native_p1 = JNIEnv.NewArray(p1);
            IntPtr native_p2 = JNIEnv.NewArray(p2);

            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(p4);
                JNIEnv.CallStaticVoidMethod(class_ref, id_readDCCoeffs_Lorg_jcodec_common_io_BitReader_arrayIarrayIII, __args);
            } finally {
                if (p1 != null)
                {
                    JNIEnv.CopyArray(native_p1, p1);
                    JNIEnv.DeleteLocalRef(native_p1);
                }
                if (p2 != null)
                {
                    JNIEnv.CopyArray(native_p2, p2);
                    JNIEnv.DeleteLocalRef(native_p2);
                }
            }
        }
        static int n_ReadVLC_Lorg_jcodec_common_io_BitReader_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Org.Jcodec.Common.IO.VLC       __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.VLC> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Jcodec.Common.IO.BitReader p0     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.BitReader> (native_p0, JniHandleOwnership.DoNotTransfer);
            int __ret = __this.ReadVLC(p0);

            return(__ret);
        }
Пример #5
0
        static IntPtr n_NextBlock_Lorg_jcodec_common_io_BitReader_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Org.Jcodec.Codecs.Aac.BlockReader __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Aac.BlockReader> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Jcodec.Common.IO.BitReader    p0     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.BitReader> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.NextBlock(p0));

            return(__ret);
        }
Пример #6
0
        static int n_ParseICSInfo_Lorg_jcodec_common_io_BitReader_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Org.Jcodec.Codecs.Aac.Blocks.BlockICS __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Aac.Blocks.BlockICS> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Jcodec.Common.IO.BitReader        p0     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.BitReader> (native_p0, JniHandleOwnership.DoNotTransfer);
            int __ret = __this.ParseICSInfo(p0);

            return(__ret);
        }
 static void n_ReadChromaDCBlock_Lorg_jcodec_common_io_BitReader_arrayIZZ(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, bool p2, bool p3)
 {
     global::Org.Jcodec.Codecs.H264.IO.CAVLC __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.H264.IO.CAVLC> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Jcodec.Common.IO.BitReader  p0     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.BitReader> (native_p0, JniHandleOwnership.DoNotTransfer);
     int[] p1 = (int[])JNIEnv.GetArray(native_p1, JniHandleOwnership.DoNotTransfer, typeof(int));
     __this.ReadChromaDCBlock(p0, p1, p2, p3);
     if (p1 != null)
     {
         JNIEnv.CopyArray(p1, native_p1);
     }
 }
 public override unsafe void Parse(global::Org.Jcodec.Common.IO.BitReader p0)
 {
     if (id_parse_Lorg_jcodec_common_io_BitReader_ == IntPtr.Zero)
     {
         id_parse_Lorg_jcodec_common_io_BitReader_ = JNIEnv.GetMethodID(class_ref, "parse", "(Lorg/jcodec/common/io/BitReader;)V");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_parse_Lorg_jcodec_common_io_BitReader_, __args);
     } finally {
     }
 }
 public static unsafe bool MoreRBSPData(global::Org.Jcodec.Common.IO.BitReader p0)
 {
     if (id_moreRBSPData_Lorg_jcodec_common_io_BitReader_ == IntPtr.Zero)
     {
         id_moreRBSPData_Lorg_jcodec_common_io_BitReader_ = JNIEnv.GetStaticMethodID(class_ref, "moreRBSPData", "(Lorg/jcodec/common/io/BitReader;)Z");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         bool __ret = JNIEnv.CallStaticBooleanMethod(class_ref, id_moreRBSPData_Lorg_jcodec_common_io_BitReader_, __args);
         return(__ret);
     } finally {
     }
 }
 public static unsafe int ReadUE(global::Org.Jcodec.Common.IO.BitReader p0)
 {
     if (id_readUE_Lorg_jcodec_common_io_BitReader_ == IntPtr.Zero)
     {
         id_readUE_Lorg_jcodec_common_io_BitReader_ = JNIEnv.GetStaticMethodID(class_ref, "readUE", "(Lorg/jcodec/common/io/BitReader;)I");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_readUE_Lorg_jcodec_common_io_BitReader_, __args);
         return(__ret);
     } finally {
     }
 }
 public static unsafe int ReadCodeword(global::Org.Jcodec.Common.IO.BitReader p0, global::Org.Jcodec.Codecs.Prores.Codebook p1)
 {
     if (id_readCodeword_Lorg_jcodec_common_io_BitReader_Lorg_jcodec_codecs_prores_Codebook_ == IntPtr.Zero)
     {
         id_readCodeword_Lorg_jcodec_common_io_BitReader_Lorg_jcodec_codecs_prores_Codebook_ = JNIEnv.GetStaticMethodID(class_ref, "readCodeword", "(Lorg/jcodec/common/io/BitReader;Lorg/jcodec/codecs/prores/Codebook;)I");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_readCodeword_Lorg_jcodec_common_io_BitReader_Lorg_jcodec_codecs_prores_Codebook_, __args);
         return(__ret);
     } finally {
     }
 }
        public virtual unsafe int ReadCoeffs(global::Org.Jcodec.Common.IO.BitReader p0, global::Org.Jcodec.Common.IO.VLC p1, global::Org.Jcodec.Common.IO.VLC[] p2, int[] p3, int p4, int p5, int[] p6)
        {
            if (id_readCoeffs_Lorg_jcodec_common_io_BitReader_Lorg_jcodec_common_io_VLC_arrayLorg_jcodec_common_io_VLC_arrayIIIarrayI == IntPtr.Zero)
            {
                id_readCoeffs_Lorg_jcodec_common_io_BitReader_Lorg_jcodec_common_io_VLC_arrayLorg_jcodec_common_io_VLC_arrayIIIarrayI = JNIEnv.GetMethodID(class_ref, "readCoeffs", "(Lorg/jcodec/common/io/BitReader;Lorg/jcodec/common/io/VLC;[Lorg/jcodec/common/io/VLC;[III[I)I");
            }
            IntPtr native_p2 = JNIEnv.NewArray(p2);
            IntPtr native_p3 = JNIEnv.NewArray(p3);
            IntPtr native_p6 = JNIEnv.NewArray(p6);

            try {
                JValue *__args = stackalloc JValue [7];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(native_p3);
                __args [4] = new JValue(p4);
                __args [5] = new JValue(p5);
                __args [6] = new JValue(native_p6);

                int __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallIntMethod(((global::Java.Lang.Object) this).Handle, id_readCoeffs_Lorg_jcodec_common_io_BitReader_Lorg_jcodec_common_io_VLC_arrayLorg_jcodec_common_io_VLC_arrayIIIarrayI, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualIntMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "readCoeffs", "(Lorg/jcodec/common/io/BitReader;Lorg/jcodec/common/io/VLC;[Lorg/jcodec/common/io/VLC;[III[I)I"), __args);
                }
                return(__ret);
            } finally {
                if (p2 != null)
                {
                    JNIEnv.CopyArray(native_p2, p2);
                    JNIEnv.DeleteLocalRef(native_p2);
                }
                if (p3 != null)
                {
                    JNIEnv.CopyArray(native_p3, p3);
                    JNIEnv.DeleteLocalRef(native_p3);
                }
                if (p6 != null)
                {
                    JNIEnv.CopyArray(native_p6, p6);
                    JNIEnv.DeleteLocalRef(native_p6);
                }
            }
        }
        static IntPtr n_DecodeOnePlane_Lorg_jcodec_common_io_BitReader_IarrayIarrayIIII(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, IntPtr native_p2, IntPtr native_p3, int p4, int p5, int p6)
        {
            global::Org.Jcodec.Codecs.Prores.ProresDecoder __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Prores.ProresDecoder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Jcodec.Common.IO.BitReader         p0     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.BitReader> (native_p0, JniHandleOwnership.DoNotTransfer);
            int[]  p2    = (int[])JNIEnv.GetArray(native_p2, JniHandleOwnership.DoNotTransfer, typeof(int));
            int[]  p3    = (int[])JNIEnv.GetArray(native_p3, JniHandleOwnership.DoNotTransfer, typeof(int));
            IntPtr __ret = JNIEnv.NewArray(__this.DecodeOnePlane(p0, p1, p2, p3, p4, p5, p6));

            if (p2 != null)
            {
                JNIEnv.CopyArray(p2, native_p2);
            }
            if (p3 != null)
            {
                JNIEnv.CopyArray(p3, native_p3);
            }
            return(__ret);
        }
        public static unsafe int ReadME(global::Org.Jcodec.Common.IO.BitReader p0, string p1)
        {
            if (id_readME_Lorg_jcodec_common_io_BitReader_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_readME_Lorg_jcodec_common_io_BitReader_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "readME", "(Lorg/jcodec/common/io/BitReader;Ljava/lang/String;)I");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_readME_Lorg_jcodec_common_io_BitReader_Ljava_lang_String_, __args);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
        protected virtual unsafe int[] DecodeOnePlane(global::Org.Jcodec.Common.IO.BitReader p0, int p1, int[] p2, int[] p3, int p4, int p5, int p6)
        {
            if (id_decodeOnePlane_Lorg_jcodec_common_io_BitReader_IarrayIarrayIIII == IntPtr.Zero)
            {
                id_decodeOnePlane_Lorg_jcodec_common_io_BitReader_IarrayIarrayIIII = JNIEnv.GetMethodID(class_ref, "decodeOnePlane", "(Lorg/jcodec/common/io/BitReader;I[I[IIII)[I");
            }
            IntPtr native_p2 = JNIEnv.NewArray(p2);
            IntPtr native_p3 = JNIEnv.NewArray(p3);

            try {
                JValue *__args = stackalloc JValue [7];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(native_p3);
                __args [4] = new JValue(p4);
                __args [5] = new JValue(p5);
                __args [6] = new JValue(p6);

                int[] __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = (int[])JNIEnv.GetArray(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_decodeOnePlane_Lorg_jcodec_common_io_BitReader_IarrayIarrayIIII, __args), JniHandleOwnership.TransferLocalRef, typeof(int));
                }
                else
                {
                    __ret = (int[])JNIEnv.GetArray(JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "decodeOnePlane", "(Lorg/jcodec/common/io/BitReader;I[I[IIII)[I"), __args), JniHandleOwnership.TransferLocalRef, typeof(int));
                }
                return(__ret);
            } finally {
                if (p2 != null)
                {
                    JNIEnv.CopyArray(native_p2, p2);
                    JNIEnv.DeleteLocalRef(native_p2);
                }
                if (p3 != null)
                {
                    JNIEnv.CopyArray(native_p3, p3);
                    JNIEnv.DeleteLocalRef(native_p3);
                }
            }
        }
Пример #16
0
        protected virtual unsafe int ParseICSInfo(global::Org.Jcodec.Common.IO.BitReader p0)
        {
            if (id_parseICSInfo_Lorg_jcodec_common_io_BitReader_ == IntPtr.Zero)
            {
                id_parseICSInfo_Lorg_jcodec_common_io_BitReader_ = JNIEnv.GetMethodID(class_ref, "parseICSInfo", "(Lorg/jcodec/common/io/BitReader;)I");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                int __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallIntMethod(((global::Java.Lang.Object) this).Handle, id_parseICSInfo_Lorg_jcodec_common_io_BitReader_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualIntMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "parseICSInfo", "(Lorg/jcodec/common/io/BitReader;)I"), __args);
                }
                return(__ret);
            } finally {
            }
        }
Пример #17
0
        public virtual unsafe global::Org.Jcodec.Codecs.Aac.Blocks.Block NextBlock(global::Org.Jcodec.Common.IO.BitReader p0)
        {
            if (id_nextBlock_Lorg_jcodec_common_io_BitReader_ == IntPtr.Zero)
            {
                id_nextBlock_Lorg_jcodec_common_io_BitReader_ = JNIEnv.GetMethodID(class_ref, "nextBlock", "(Lorg/jcodec/common/io/BitReader;)Lorg/jcodec/codecs/aac/blocks/Block;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::Org.Jcodec.Codecs.Aac.Blocks.Block __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Aac.Blocks.Block> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_nextBlock_Lorg_jcodec_common_io_BitReader_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Aac.Blocks.Block> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "nextBlock", "(Lorg/jcodec/common/io/BitReader;)Lorg/jcodec/codecs/aac/blocks/Block;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
Пример #18
0
        public virtual unsafe void DecodeMBlockIPCM(global::Org.Jcodec.Common.IO.BitReader p0, int p1, global::Org.Jcodec.Common.Model.Picture p2)
        {
            if (id_decodeMBlockIPCM_Lorg_jcodec_common_io_BitReader_ILorg_jcodec_common_model_Picture_ == IntPtr.Zero)
            {
                id_decodeMBlockIPCM_Lorg_jcodec_common_io_BitReader_ILorg_jcodec_common_model_Picture_ = JNIEnv.GetMethodID(class_ref, "decodeMBlockIPCM", "(Lorg/jcodec/common/io/BitReader;ILorg/jcodec/common/model/Picture;)V");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_decodeMBlockIPCM_Lorg_jcodec_common_io_BitReader_ILorg_jcodec_common_model_Picture_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "decodeMBlockIPCM", "(Lorg/jcodec/common/io/BitReader;ILorg/jcodec/common/model/Picture;)V"), __args);
                }
            } finally {
            }
        }
        static int n_ReadCoeffs_Lorg_jcodec_common_io_BitReader_Lorg_jcodec_common_io_VLC_arrayLorg_jcodec_common_io_VLC_arrayIIIarrayI(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, IntPtr native_p3, int p4, int p5, IntPtr native_p6)
        {
            global::Org.Jcodec.Codecs.H264.IO.CAVLC __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.H264.IO.CAVLC> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Jcodec.Common.IO.BitReader  p0     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.BitReader> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Org.Jcodec.Common.IO.VLC        p1     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.VLC> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Org.Jcodec.Common.IO.VLC[]      p2     = (global::Org.Jcodec.Common.IO.VLC[])JNIEnv.GetArray(native_p2, JniHandleOwnership.DoNotTransfer, typeof(global::Org.Jcodec.Common.IO.VLC));
            int[] p3    = (int[])JNIEnv.GetArray(native_p3, JniHandleOwnership.DoNotTransfer, typeof(int));
            int[] p6    = (int[])JNIEnv.GetArray(native_p6, JniHandleOwnership.DoNotTransfer, typeof(int));
            int   __ret = __this.ReadCoeffs(p0, p1, p2, p3, p4, p5, p6);

            if (p2 != null)
            {
                JNIEnv.CopyArray(p2, native_p2);
            }
            if (p3 != null)
            {
                JNIEnv.CopyArray(p3, native_p3);
            }
            if (p6 != null)
            {
                JNIEnv.CopyArray(p6, native_p6);
            }
            return(__ret);
        }
 static int n_Remaining(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Common.IO.BitReader __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.BitReader> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Remaining());
 }
Пример #21
0
 public static unsafe global::Org.Jcodec.Codecs.Mpeg12.Bitstream.PictureDisplayExtension Read(global::Org.Jcodec.Common.IO.BitReader p0, global::Org.Jcodec.Codecs.Mpeg12.Bitstream.SequenceExtension p1, global::Org.Jcodec.Codecs.Mpeg12.Bitstream.PictureCodingExtension p2)
 {
     if (id_read_Lorg_jcodec_common_io_BitReader_Lorg_jcodec_codecs_mpeg12_bitstream_SequenceExtension_Lorg_jcodec_codecs_mpeg12_bitstream_PictureCodingExtension_ == IntPtr.Zero)
     {
         id_read_Lorg_jcodec_common_io_BitReader_Lorg_jcodec_codecs_mpeg12_bitstream_SequenceExtension_Lorg_jcodec_codecs_mpeg12_bitstream_PictureCodingExtension_ = JNIEnv.GetStaticMethodID(class_ref, "read", "(Lorg/jcodec/common/io/BitReader;Lorg/jcodec/codecs/mpeg12/bitstream/SequenceExtension;Lorg/jcodec/codecs/mpeg12/bitstream/PictureCodingExtension;)Lorg/jcodec/codecs/mpeg12/bitstream/PictureDisplayExtension;");
     }
     try {
         JValue *__args = stackalloc JValue [3];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         __args [2] = new JValue(p2);
         global::Org.Jcodec.Codecs.Mpeg12.Bitstream.PictureDisplayExtension __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Mpeg12.Bitstream.PictureDisplayExtension> (JNIEnv.CallStaticObjectMethod(class_ref, id_read_Lorg_jcodec_common_io_BitReader_Lorg_jcodec_codecs_mpeg12_bitstream_SequenceExtension_Lorg_jcodec_codecs_mpeg12_bitstream_PictureCodingExtension_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 public static unsafe global::Org.Jcodec.Codecs.Mpeg12.Bitstream.PictureTemporalScalableExtension Read(global::Org.Jcodec.Common.IO.BitReader p0)
 {
     if (id_read_Lorg_jcodec_common_io_BitReader_ == IntPtr.Zero)
     {
         id_read_Lorg_jcodec_common_io_BitReader_ = JNIEnv.GetStaticMethodID(class_ref, "read", "(Lorg/jcodec/common/io/BitReader;)Lorg/jcodec/codecs/mpeg12/bitstream/PictureTemporalScalableExtension;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Org.Jcodec.Codecs.Mpeg12.Bitstream.PictureTemporalScalableExtension __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Mpeg12.Bitstream.PictureTemporalScalableExtension> (JNIEnv.CallStaticObjectMethod(class_ref, id_read_Lorg_jcodec_common_io_BitReader_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 public abstract void Parse(global::Org.Jcodec.Common.IO.BitReader p0);
 static int n_SkipFast_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Org.Jcodec.Common.IO.BitReader __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.BitReader> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.SkipFast(p0));
 }
 static void n_Terminate(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Common.IO.BitReader __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.BitReader> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Terminate();
 }
 static void n_Parse_Lorg_jcodec_common_io_BitReader_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Jcodec.Codecs.Aac.Blocks.BlockDSE __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Aac.Blocks.BlockDSE> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Jcodec.Common.IO.BitReader        p0     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.BitReader> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Parse(p0);
 }
 static IntPtr n_Fork(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Common.IO.BitReader __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.BitReader> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.Fork()));
 }