static void n_OnDecodedFrame_Lorg_webrtc_VideoFrame_Ljava_lang_Integer_Ljava_lang_Integer_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2) { global::Org.Webrtc.IVideoDecoderCallback __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.IVideoDecoderCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Webrtc.VideoFrame p0 = global::Java.Lang.Object.GetObject <global::Org.Webrtc.VideoFrame> (native_p0, JniHandleOwnership.DoNotTransfer); global::Java.Lang.Integer p1 = global::Java.Lang.Object.GetObject <global::Java.Lang.Integer> (native_p1, JniHandleOwnership.DoNotTransfer); global::Java.Lang.Integer p2 = global::Java.Lang.Object.GetObject <global::Java.Lang.Integer> (native_p2, JniHandleOwnership.DoNotTransfer); __this.OnDecodedFrame(p0, p1, p2); }
static IntPtr n_InitDecode_Lorg_webrtc_VideoDecoder_Settings_Lorg_webrtc_VideoDecoder_Callback_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Org.Webrtc.IVideoDecoder __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.IVideoDecoder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Webrtc.VideoDecoderSettings p0 = global::Java.Lang.Object.GetObject <global::Org.Webrtc.VideoDecoderSettings> (native_p0, JniHandleOwnership.DoNotTransfer); global::Org.Webrtc.IVideoDecoderCallback p1 = (global::Org.Webrtc.IVideoDecoderCallback)global::Java.Lang.Object.GetObject <global::Org.Webrtc.IVideoDecoderCallback> (native_p1, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.InitDecode(p0, p1)); return(__ret); }
public unsafe global::Org.Webrtc.VideoCodecStatus InitDecode(global::Org.Webrtc.VideoDecoderSettings p0, global::Org.Webrtc.IVideoDecoderCallback p1) { if (id_initDecode_Lorg_webrtc_VideoDecoder_Settings_Lorg_webrtc_VideoDecoder_Callback_ == IntPtr.Zero) { id_initDecode_Lorg_webrtc_VideoDecoder_Settings_Lorg_webrtc_VideoDecoder_Callback_ = JNIEnv.GetMethodID(class_ref, "initDecode", "(Lorg/webrtc/VideoDecoder$Settings;Lorg/webrtc/VideoDecoder$Callback;)Lorg/webrtc/VideoCodecStatus;"); } JValue *__args = stackalloc JValue [2]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle); global::Org.Webrtc.VideoCodecStatus __ret = global::Java.Lang.Object.GetObject <global::Org.Webrtc.VideoCodecStatus> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_initDecode_Lorg_webrtc_VideoDecoder_Settings_Lorg_webrtc_VideoDecoder_Callback_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); }
public unsafe global::Org.Webrtc.VideoCodecStatus InitDecode(global::Org.Webrtc.VideoDecoderSettings settings, global::Org.Webrtc.IVideoDecoderCallback decodeCallback) { const string __id = "initDecode.(Lorg/webrtc/VideoDecoder$Settings;Lorg/webrtc/VideoDecoder$Callback;)Lorg/webrtc/VideoCodecStatus;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((settings == null) ? IntPtr.Zero : ((global::Java.Lang.Object)settings).Handle); __args [1] = new JniArgumentValue((decodeCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)decodeCallback).Handle); var __rm = _members.InstanceMethods.InvokeNonvirtualObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Org.Webrtc.VideoCodecStatus> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { } }