/**************************************************************************** * Copyright 2019 Nreal Techonology Limited. All rights reserved. * * This file is part of NRSDK. * * https://www.nreal.ai/ * *****************************************************************************/ namespace NRKernal.Record { using UnityEngine; /// An abstract frame provider. public abstract class AbstractFrameProvider { /// Updates the image frame described by frame. /// The frame. public delegate void UpdateImageFrame(UniversalTextureFrame frame); /// The on update. public UpdateImageFrame OnUpdate; /// True if is frame ready, false if not. protected bool m_IsFrameReady = false; /// Gets frame information. /// The frame information. public virtual Resolution GetFrameInfo() { return new Resolution(); } /// Query if this object is frame ready. /// True if frame ready, false if not. public virtual bool IsFrameReady() { return m_IsFrameReady; } /// Plays this object. public virtual void Play() { } /// Stops this object. public virtual void Stop() { } /// Releases this object. public virtual void Release() { } } }