static IntPtr n_Decode_Lorg_webrtc_EncodedImage_Lorg_webrtc_VideoDecoder_DecodeInfo_(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.EncodedImage           p0     = global::Java.Lang.Object.GetObject <global::Org.Webrtc.EncodedImage> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Org.Webrtc.VideoDecoderDecodeInfo p1     = global::Java.Lang.Object.GetObject <global::Org.Webrtc.VideoDecoderDecodeInfo> (native_p1, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Decode(p0, p1));

            return(__ret);
        }
        public unsafe global::Org.Webrtc.VideoCodecStatus Decode(global::Org.Webrtc.EncodedImage p0, global::Org.Webrtc.VideoDecoderDecodeInfo p1)
        {
            if (id_decode_Lorg_webrtc_EncodedImage_Lorg_webrtc_VideoDecoder_DecodeInfo_ == IntPtr.Zero)
            {
                id_decode_Lorg_webrtc_EncodedImage_Lorg_webrtc_VideoDecoder_DecodeInfo_ = JNIEnv.GetMethodID(class_ref, "decode", "(Lorg/webrtc/EncodedImage;Lorg/webrtc/VideoDecoder$DecodeInfo;)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_decode_Lorg_webrtc_EncodedImage_Lorg_webrtc_VideoDecoder_DecodeInfo_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
Exemplo n.º 3
0
        public unsafe global::Org.Webrtc.VideoCodecStatus Decode(global::Org.Webrtc.EncodedImage frame, global::Org.Webrtc.VideoDecoderDecodeInfo info)
        {
            const string __id = "decode.(Lorg/webrtc/EncodedImage;Lorg/webrtc/VideoDecoder$DecodeInfo;)Lorg/webrtc/VideoCodecStatus;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((frame == null) ? IntPtr.Zero : ((global::Java.Lang.Object)frame).Handle);
                __args [1] = new JniArgumentValue((info == null) ? IntPtr.Zero : ((global::Java.Lang.Object)info).Handle);
                var __rm = _members.InstanceMethods.InvokeNonvirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Org.Webrtc.VideoCodecStatus> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
Exemplo n.º 4
0
 static void n_Retain(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Webrtc.EncodedImage __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.EncodedImage> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Retain();
 }