static void n_OnPreviewStarts_Landroid_view_SurfaceHolder_Lcom_moodstocks_android_camera_Size_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Moodstocks.Android.Camera.CameraManager __this = global::Java.Lang.Object.GetObject <global::Com.Moodstocks.Android.Camera.CameraManager> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Views.ISurfaceHolder p0 = (global::Android.Views.ISurfaceHolder)global::Java.Lang.Object.GetObject <global::Android.Views.ISurfaceHolder> (native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Moodstocks.Android.Camera.Size p1 = global::Java.Lang.Object.GetObject <global::Com.Moodstocks.Android.Camera.Size> (native_p1, JniHandleOwnership.DoNotTransfer); __this.OnPreviewStarts(p0, p1); }
public MjpegViewThread(global::Com.Camera.Simplemjpeg.MjpegView __self, global::Android.Views.ISurfaceHolder p1, global::Android.Content.Context p2) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } if (GetType() != typeof(MjpegViewThread)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Landroid/view/SurfaceHolder;Landroid/content/Context;)V", new JValue(__self), new JValue(p1), new JValue(p2)), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Landroid/view/SurfaceHolder;Landroid/content/Context;)V", new JValue(__self), new JValue(p1), new JValue(p2)); return; } if (id_ctor_Lcom_camera_simplemjpeg_MjpegView_Landroid_view_SurfaceHolder_Landroid_content_Context_ == IntPtr.Zero) { id_ctor_Lcom_camera_simplemjpeg_MjpegView_Landroid_view_SurfaceHolder_Landroid_content_Context_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/camera/simplemjpeg/MjpegView;Landroid/view/SurfaceHolder;Landroid/content/Context;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_camera_simplemjpeg_MjpegView_Landroid_view_SurfaceHolder_Landroid_content_Context_, new JValue(__self), new JValue(p1), new JValue(p2)), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lcom_camera_simplemjpeg_MjpegView_Landroid_view_SurfaceHolder_Landroid_content_Context_, new JValue(__self), new JValue(p1), new JValue(p2)); }
static void n_SurfaceChanged_Landroid_view_SurfaceHolder_III(IntPtr jnienv, IntPtr native__this, IntPtr native_holder, int native_f, int w, int h) { global::Com.Camera.Simplemjpeg.MjpegView __this = global::Java.Lang.Object.GetObject <global::Com.Camera.Simplemjpeg.MjpegView> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Views.ISurfaceHolder holder = (global::Android.Views.ISurfaceHolder)global::Java.Lang.Object.GetObject <global::Android.Views.ISurfaceHolder> (native_holder, JniHandleOwnership.DoNotTransfer); global::Android.Graphics.Format f = (global::Android.Graphics.Format)native_f; __this.SurfaceChanged(holder, f, w, h); }
static void n_SurfaceChanged_Landroid_view_SurfaceHolder_III(IntPtr jnienv, IntPtr native__this, IntPtr native_holder, int native_format, int width, int height) { global::Org.Webrtc.SurfaceEglRenderer __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.SurfaceEglRenderer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Views.ISurfaceHolder holder = (global::Android.Views.ISurfaceHolder)global::Java.Lang.Object.GetObject <global::Android.Views.ISurfaceHolder> (native_holder, JniHandleOwnership.DoNotTransfer); global::Android.Graphics.Format format = (global::Android.Graphics.Format)native_format; __this.SurfaceChanged(holder, format, width, height); }
static void n_SurfaceChanged_Landroid_view_SurfaceHolder_III(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int native_p1, int p2, int p3) { global::Com.Camera.Simplemjpeg.MjpegView __this = global::Java.Lang.Object.GetObject <global::Com.Camera.Simplemjpeg.MjpegView> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Views.ISurfaceHolder p0 = (global::Android.Views.ISurfaceHolder)global::Java.Lang.Object.GetObject <global::Android.Views.ISurfaceHolder> (native_p0, JniHandleOwnership.DoNotTransfer); global::Android.Graphics.Format p1 = (global::Android.Graphics.Format)native_p1; __this.SurfaceChanged(p0, p1, p2, p3); }
#pragma warning restore 0649 public void OnPreviewStarts(global::Android.Views.ISurfaceHolder p0, global::Com.Moodstocks.Android.Camera.Size p1) { var __h = Handler; if (__h != null) { __h(sender, new EventArgs(p0, p1)); } }
public virtual unsafe void SurfaceDestroyed(global::Android.Views.ISurfaceHolder holder) { const string __id = "surfaceDestroyed.(Landroid/view/SurfaceHolder;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((holder == null) ? IntPtr.Zero : ((global::Java.Lang.Object)holder).Handle); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { } }
public unsafe void OnPreviewStarts(global::Android.Views.ISurfaceHolder p0, global::Com.Moodstocks.Android.Camera.Size p1) { if (id_onPreviewStarts_Landroid_view_SurfaceHolder_Lcom_moodstocks_android_camera_Size_ == IntPtr.Zero) { id_onPreviewStarts_Landroid_view_SurfaceHolder_Lcom_moodstocks_android_camera_Size_ = JNIEnv.GetMethodID(class_ref, "onPreviewStarts", "(Landroid/view/SurfaceHolder;Lcom/moodstocks/android/camera/Size;)V"); } JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); JNIEnv.CallVoidMethod(Handle, id_onPreviewStarts_Landroid_view_SurfaceHolder_Lcom_moodstocks_android_camera_Size_, __args); }
public virtual unsafe void SurfaceChanged(global::Android.Views.ISurfaceHolder holder, [global::Android.Runtime.GeneratedEnum] global::Android.Graphics.Format format, int width, int height) { const string __id = "surfaceChanged.(Landroid/view/SurfaceHolder;III)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [4]; __args [0] = new JniArgumentValue((holder == null) ? IntPtr.Zero : ((global::Java.Lang.Object)holder).Handle); __args [1] = new JniArgumentValue((int)format); __args [2] = new JniArgumentValue(width); __args [3] = new JniArgumentValue(height); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { } }
public virtual void SurfaceDestroyed(global::Android.Views.ISurfaceHolder p0) { if (id_surfaceDestroyed_Landroid_view_SurfaceHolder_ == IntPtr.Zero) { id_surfaceDestroyed_Landroid_view_SurfaceHolder_ = JNIEnv.GetMethodID(class_ref, "surfaceDestroyed", "(Landroid/view/SurfaceHolder;)V"); } if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_surfaceDestroyed_Landroid_view_SurfaceHolder_, new JValue(p0)); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_surfaceDestroyed_Landroid_view_SurfaceHolder_, new JValue(p0)); } }
public virtual void SurfaceChanged(global::Android.Views.ISurfaceHolder p0, global::Android.Graphics.Format p1, int p2, int p3) { if (id_surfaceChanged_Landroid_view_SurfaceHolder_III == IntPtr.Zero) { id_surfaceChanged_Landroid_view_SurfaceHolder_III = JNIEnv.GetMethodID(class_ref, "surfaceChanged", "(Landroid/view/SurfaceHolder;III)V"); } if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_surfaceChanged_Landroid_view_SurfaceHolder_III, new JValue(p0), new JValue((int)p1), new JValue(p2), new JValue(p3)); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_surfaceChanged_Landroid_view_SurfaceHolder_III, new JValue(p0), new JValue((int)p1), new JValue(p2), new JValue(p3)); } }
protected virtual unsafe void StartPreview(global::Android.Views.ISurfaceHolder p0) { if (id_startPreview_Landroid_view_SurfaceHolder_ == IntPtr.Zero) { id_startPreview_Landroid_view_SurfaceHolder_ = JNIEnv.GetMethodID(class_ref, "startPreview", "(Landroid/view/SurfaceHolder;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_startPreview_Landroid_view_SurfaceHolder_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "startPreview", "(Landroid/view/SurfaceHolder;)V"), __args); } } finally { } }
public virtual unsafe void OnPreviewStarts(global::Android.Views.ISurfaceHolder p0, global::Com.Moodstocks.Android.Camera.Size p1) { if (id_onPreviewStarts_Landroid_view_SurfaceHolder_Lcom_moodstocks_android_camera_Size_ == IntPtr.Zero) { id_onPreviewStarts_Landroid_view_SurfaceHolder_Lcom_moodstocks_android_camera_Size_ = JNIEnv.GetMethodID(class_ref, "onPreviewStarts", "(Landroid/view/SurfaceHolder;Lcom/moodstocks/android/camera/Size;)V"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_onPreviewStarts_Landroid_view_SurfaceHolder_Lcom_moodstocks_android_camera_Size_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onPreviewStarts", "(Landroid/view/SurfaceHolder;Lcom/moodstocks/android/camera/Size;)V"), __args); } } finally { } }
public virtual unsafe void SurfaceChanged(global::Android.Views.ISurfaceHolder p0, [global::Android.Runtime.GeneratedEnum] global::Android.Graphics.Format p1, int p2, int p3) { if (id_surfaceChanged_Landroid_view_SurfaceHolder_III == IntPtr.Zero) { id_surfaceChanged_Landroid_view_SurfaceHolder_III = JNIEnv.GetMethodID(class_ref, "surfaceChanged", "(Landroid/view/SurfaceHolder;III)V"); } try { JValue *__args = stackalloc JValue [4]; __args [0] = new JValue(p0); __args [1] = new JValue((int)p1); __args [2] = new JValue(p2); __args [3] = new JValue(p3); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_surfaceChanged_Landroid_view_SurfaceHolder_III, __args); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "surfaceChanged", "(Landroid/view/SurfaceHolder;III)V"), __args); } } finally { } }
public unsafe MjpegViewThread(global::Com.Camera.Simplemjpeg.MjpegView __self, global::Android.Views.ISurfaceHolder surfaceHolder, global::Android.Content.Context context) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { string __id = "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Landroid/view/SurfaceHolder;Landroid/content/Context;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue((__self == null) ? IntPtr.Zero : ((global::Java.Lang.Object)__self).Handle); __args [1] = new JniArgumentValue((surfaceHolder == null) ? IntPtr.Zero : ((global::Java.Lang.Object)surfaceHolder).Handle); __args [2] = new JniArgumentValue((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object)context).Handle); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { } }
static void n_SurfaceDestroyed_Landroid_view_SurfaceHolder_(IntPtr jnienv, IntPtr native__this, IntPtr native_holder) { global::Org.Webrtc.SurfaceEglRenderer __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.SurfaceEglRenderer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Views.ISurfaceHolder holder = (global::Android.Views.ISurfaceHolder)global::Java.Lang.Object.GetObject <global::Android.Views.ISurfaceHolder> (native_holder, JniHandleOwnership.DoNotTransfer); __this.SurfaceDestroyed(holder); }
static void n_StartPreview_Landroid_view_SurfaceHolder_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Moodstocks.Android.Camera.CameraInstance __this = global::Java.Lang.Object.GetObject <global::Com.Moodstocks.Android.Camera.CameraInstance> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Views.ISurfaceHolder p0 = (global::Android.Views.ISurfaceHolder)global::Java.Lang.Object.GetObject <global::Android.Views.ISurfaceHolder> (native_p0, JniHandleOwnership.DoNotTransfer); __this.StartPreview(p0); }
public virtual void OnSurfaceDestroyed(global::Android.Views.ISurfaceHolder holder) /* MethodBuilder.Create */ { }
public virtual void OnSurfaceRedrawNeeded(global::Android.Views.ISurfaceHolder holder) /* MethodBuilder.Create */ { }
public virtual void OnSurfaceChanged(global::Android.Views.ISurfaceHolder holder, int format, int width, int height) /* MethodBuilder.Create */ { }
public virtual void OnCreate(global::Android.Views.ISurfaceHolder surfaceHolder) /* MethodBuilder.Create */ { }
static void n_SurfaceDestroyed_Landroid_view_SurfaceHolder_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Camera.Simplemjpeg.MjpegView __this = global::Java.Lang.Object.GetObject <global::Com.Camera.Simplemjpeg.MjpegView> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Views.ISurfaceHolder p0 = (global::Android.Views.ISurfaceHolder)global::Java.Lang.Object.GetObject <global::Android.Views.ISurfaceHolder> (native_p0, JniHandleOwnership.DoNotTransfer); __this.SurfaceDestroyed(p0); }
public EventArgs(global::Android.Views.ISurfaceHolder p0, global::Com.Moodstocks.Android.Camera.Size p1) { this.p0 = p0; this.p1 = p1; }