1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /****************************************************************************
- * 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; }
- /// <summary> Gets or sets the width. </summary>
- /// <value> The width. </value>
- public int Width
- {
- get;
- protected set;
- }
- /// <summary> Gets or sets the height. </summary>
- /// <value> The height. </value>
- public int Height
- {
- get;
- protected set;
- }
- /// <summary> Gets the blend mode. </summary>
- /// <value> The blend mode. </value>
- public BlendMode BlendMode
- {
- get;
- protected set;
- }
- /// <summary> Gets or sets the number of frames. </summary>
- /// <value> The number of frames. </value>
- 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() { }
- }
- }
|