static void n_GetCodecPrivate_Ljava_nio_ByteBuffer_Lorg_jcodec_common_model_Size_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Org.Jcodec.Movtool.Streaming.Tracks.Prores2VP8Track __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Movtool.Streaming.Tracks.Prores2VP8Track> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Nio.ByteBuffer p0 = global::Java.Lang.Object.GetObject <global::Java.Nio.ByteBuffer> (native_p0, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Model.Size p1 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Size> (native_p1, JniHandleOwnership.DoNotTransfer); __this.GetCodecPrivate(p0, p1); }
public unsafe MediaInfo(global::Org.Jcodec.Common.Model.Size p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() != typeof(MediaInfo)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/jcodec/common/model/Size;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/jcodec/common/model/Size;)V", __args); return; } if (id_ctor_Lorg_jcodec_common_model_Size_ == IntPtr.Zero) { id_ctor_Lorg_jcodec_common_model_Size_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jcodec/common/model/Size;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jcodec_common_model_Size_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jcodec_common_model_Size_, __args); } finally { } }
static int n_SelectScaleFactor_Lorg_jcodec_common_model_Size_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Jcodec.Movtool.Streaming.Tracks.Mpeg2AVCTrack __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Movtool.Streaming.Tracks.Mpeg2AVCTrack> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Model.Size p0 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Size> (native_p0, JniHandleOwnership.DoNotTransfer); int __ret = __this.SelectScaleFactor(p0); return(__ret); }
static IntPtr n_CreateVideoTrack_Lorg_jcodec_common_model_Size_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Org.Jcodec.Containers.Mkv.Muxer.MKVMuxer __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mkv.Muxer.MKVMuxer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Model.Size p0 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Size> (native_p0, JniHandleOwnership.DoNotTransfer); string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.CreateVideoTrack(p0, p1)); return(__ret); }
static IntPtr n_AddVideoTrackWithTimecode_Ljava_lang_String_Lorg_jcodec_common_model_Size_Ljava_lang_String_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, int p3) { global::Org.Jcodec.Containers.Mp4.Muxer.MP4Muxer __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mp4.Muxer.MP4Muxer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Model.Size p1 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Size> (native_p1, JniHandleOwnership.DoNotTransfer); string p2 = JNIEnv.GetString(native_p2, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.AddVideoTrackWithTimecode(p0, p1, p2, p3)); return(__ret); }
protected override unsafe int SelectScaleFactor(global::Org.Jcodec.Common.Model.Size p0) { if (id_selectScaleFactor_Lorg_jcodec_common_model_Size_ == IntPtr.Zero) { id_selectScaleFactor_Lorg_jcodec_common_model_Size_ = JNIEnv.GetMethodID(class_ref, "selectScaleFactor", "(Lorg/jcodec/common/model/Size;)I"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); int __ret = JNIEnv.CallIntMethod(((global::Java.Lang.Object) this).Handle, id_selectScaleFactor_Lorg_jcodec_common_model_Size_, __args); return(__ret); } finally { } }
public unsafe Plane(int[] p0, global::Org.Jcodec.Common.Model.Size p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_p0 = JNIEnv.NewArray(p0); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); if (GetType() != typeof(Plane)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "([ILorg/jcodec/common/model/Size;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "([ILorg/jcodec/common/model/Size;)V", __args); return; } if (id_ctor_arrayILorg_jcodec_common_model_Size_ == IntPtr.Zero) { id_ctor_arrayILorg_jcodec_common_model_Size_ = JNIEnv.GetMethodID(class_ref, "<init>", "([ILorg/jcodec/common/model/Size;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_arrayILorg_jcodec_common_model_Size_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_arrayILorg_jcodec_common_model_Size_, __args); } finally { if (p0 != null) { JNIEnv.CopyArray(native_p0, p0); JNIEnv.DeleteLocalRef(native_p0); } } }
protected virtual unsafe int SelectScaleFactor(global::Org.Jcodec.Common.Model.Size p0) { if (id_selectScaleFactor_Lorg_jcodec_common_model_Size_ == IntPtr.Zero) { id_selectScaleFactor_Lorg_jcodec_common_model_Size_ = JNIEnv.GetMethodID(class_ref, "selectScaleFactor", "(Lorg/jcodec/common/model/Size;)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_selectScaleFactor_Lorg_jcodec_common_model_Size_, __args); } else { __ret = JNIEnv.CallNonvirtualIntMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "selectScaleFactor", "(Lorg/jcodec/common/model/Size;)I"), __args); } return(__ret); } finally { } }
public virtual unsafe global::Org.Jcodec.Containers.Mp4.Muxer.FramesMP4MuxerTrack AddVideoTrackWithTimecode(string p0, global::Org.Jcodec.Common.Model.Size p1, string p2, int p3) { if (id_addVideoTrackWithTimecode_Ljava_lang_String_Lorg_jcodec_common_model_Size_Ljava_lang_String_I == IntPtr.Zero) { id_addVideoTrackWithTimecode_Ljava_lang_String_Lorg_jcodec_common_model_Size_Ljava_lang_String_I = JNIEnv.GetMethodID(class_ref, "addVideoTrackWithTimecode", "(Ljava/lang/String;Lorg/jcodec/common/model/Size;Ljava/lang/String;I)Lorg/jcodec/containers/mp4/muxer/FramesMP4MuxerTrack;"); } IntPtr native_p0 = JNIEnv.NewString(p0); IntPtr native_p2 = JNIEnv.NewString(p2); try { JValue *__args = stackalloc JValue [4]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); __args [2] = new JValue(native_p2); __args [3] = new JValue(p3); global::Org.Jcodec.Containers.Mp4.Muxer.FramesMP4MuxerTrack __ret; if (GetType() == ThresholdType) { __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mp4.Muxer.FramesMP4MuxerTrack> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_addVideoTrackWithTimecode_Ljava_lang_String_Lorg_jcodec_common_model_Size_Ljava_lang_String_I, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mp4.Muxer.FramesMP4MuxerTrack> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "addVideoTrackWithTimecode", "(Ljava/lang/String;Lorg/jcodec/common/model/Size;Ljava/lang/String;I)Lorg/jcodec/containers/mp4/muxer/FramesMP4MuxerTrack;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); JNIEnv.DeleteLocalRef(native_p2); } }
public virtual unsafe global::Org.Jcodec.Containers.Mkv.Muxer.MKVMuxerTrack CreateVideoTrack(global::Org.Jcodec.Common.Model.Size p0, string p1) { if (id_createVideoTrack_Lorg_jcodec_common_model_Size_Ljava_lang_String_ == IntPtr.Zero) { id_createVideoTrack_Lorg_jcodec_common_model_Size_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "createVideoTrack", "(Lorg/jcodec/common/model/Size;Ljava/lang/String;)Lorg/jcodec/containers/mkv/muxer/MKVMuxerTrack;"); } IntPtr native_p1 = JNIEnv.NewString(p1); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); global::Org.Jcodec.Containers.Mkv.Muxer.MKVMuxerTrack __ret; if (GetType() == ThresholdType) { __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mkv.Muxer.MKVMuxerTrack> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_createVideoTrack_Lorg_jcodec_common_model_Size_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mkv.Muxer.MKVMuxerTrack> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "createVideoTrack", "(Lorg/jcodec/common/model/Size;Ljava/lang/String;)Lorg/jcodec/containers/mkv/muxer/MKVMuxerTrack;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p1); } }
static void n_SetDim_Lorg_jcodec_common_model_Size_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Jcodec.Api.FrameGrab.MediaInfo __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Api.FrameGrab.MediaInfo> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Model.Size p0 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Size> (native_p0, JniHandleOwnership.DoNotTransfer); __this.Dim = p0; }
protected override unsafe void GetCodecPrivate(global::Java.Nio.ByteBuffer p0, global::Org.Jcodec.Common.Model.Size p1) { if (id_getCodecPrivate_Ljava_nio_ByteBuffer_Lorg_jcodec_common_model_Size_ == IntPtr.Zero) { id_getCodecPrivate_Ljava_nio_ByteBuffer_Lorg_jcodec_common_model_Size_ = JNIEnv.GetMethodID(class_ref, "getCodecPrivate", "(Ljava/nio/ByteBuffer;Lorg/jcodec/common/model/Size;)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_getCodecPrivate_Ljava_nio_ByteBuffer_Lorg_jcodec_common_model_Size_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getCodecPrivate", "(Ljava/nio/ByteBuffer;Lorg/jcodec/common/model/Size;)V"), __args); } } finally { } }
protected abstract void GetCodecPrivate(global::Java.Nio.ByteBuffer p0, global::Org.Jcodec.Common.Model.Size p1);
static int n_GetHeight(IntPtr jnienv, IntPtr native__this) { global::Org.Jcodec.Common.Model.Size __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Size> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.Height); }
protected abstract int SelectScaleFactor(global::Org.Jcodec.Common.Model.Size p0);