/// <summary> /// Dispose must be called to shutdown the PhotoCapture instance. /// </summary> public void Dispose() { if (m_CaptureContext != null) { m_CaptureContext.Release(); m_CaptureContext = null; } }
public static FrameCaptureContext Create() { #if UNITY_EDITOR AbstractFrameProvider provider = new EditorFrameProvider(); #else AbstractFrameProvider provider = new RGBCameraFrameProvider(); #endif FrameCaptureContext context = new FrameCaptureContext(provider); m_ContextList.Add(context); return(context); }
/// <summary> Initializes this object. </summary> /// <param name="context"> The context.</param> /// <param name="blendCamera"> The blend camera.</param> public virtual void Init(FrameCaptureContext context, FrameBlender blendCamera) { this.m_FrameCaptureContext = context; this.m_Blender = blendCamera; }