static void n_SetTgtChunkDuration_Lorg_jcodec_common_model_Rational_Lorg_jcodec_common_model_Unit_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Org.Jcodec.Containers.Mp4.Muxer.AbstractMP4MuxerTrack __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mp4.Muxer.AbstractMP4MuxerTrack> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Model.Rational p0 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Rational> (native_p0, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Model.Unit p1 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Unit> (native_p1, JniHandleOwnership.DoNotTransfer); __this.SetTgtChunkDuration(p0, p1); }
public virtual unsafe void SetTgtChunkDuration(global::Org.Jcodec.Common.Model.Rational p0, global::Org.Jcodec.Common.Model.Unit p1) { if (id_setTgtChunkDuration_Lorg_jcodec_common_model_Rational_Lorg_jcodec_common_model_Unit_ == IntPtr.Zero) { id_setTgtChunkDuration_Lorg_jcodec_common_model_Rational_Lorg_jcodec_common_model_Unit_ = JNIEnv.GetMethodID(class_ref, "setTgtChunkDuration", "(Lorg/jcodec/common/model/Rational;Lorg/jcodec/common/model/Unit;)V"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setTgtChunkDuration_Lorg_jcodec_common_model_Rational_Lorg_jcodec_common_model_Unit_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setTgtChunkDuration", "(Lorg/jcodec/common/model/Rational;Lorg/jcodec/common/model/Unit;)V"), __args); } } finally { } }
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); } }