Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 597 Bytes
using System;
using Android.Hardware;
using ApxLabs.FastAndroidCamera;
namespace CameraTF.CameraAccess
{
public class CameraEventsListener : Java.Lang.Object, INonMarshalingPreviewCallback
{
public event EventHandler<FastJavaByteArray> OnPreviewFrameReady;
public void OnPreviewFrame(IntPtr data, Camera camera)
{
using (var fastArray = new FastJavaByteArray(data))
{
OnPreviewFrameReady?.Invoke(this, fastArray);
camera.AddCallbackBuffer(fastArray);
}
}
}
}
You can’t perform that action at this time.