/****************************************************************************
* Copyright 2019 Nreal Techonology Limited. All rights reserved.
*
* This file is part of NRSDK.
*
* https://www.nreal.ai/
*
*****************************************************************************/
namespace NRKernal.Record
{
using UnityEngine;
public abstract class BlenderBase : IFrameConsumer
{
public virtual RenderTexture BlendTexture { get; protected set; }
/// Gets or sets the width.
/// The width.
public int Width
{
get;
protected set;
}
/// Gets or sets the height.
/// The height.
public int Height
{
get;
protected set;
}
/// Gets the blend mode.
/// The blend mode.
public BlendMode BlendMode
{
get;
protected set;
}
/// Gets or sets the number of frames.
/// The number of frames.
public int FrameCount
{
get;
protected set;
}
public virtual void Init(Camera camera, IEncoder encoder, CameraParameters param) { }
public virtual void OnFrame(UniversalTextureFrame frame) { }
public virtual void Dispose() { }
}
}