IEncoder.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /****************************************************************************
  2. * Copyright 2019 Nreal Techonology Limited. All rights reserved.
  3. *
  4. * This file is part of NRSDK.
  5. *
  6. * https://www.nreal.ai/
  7. *
  8. *****************************************************************************/
  9. namespace NRKernal.Record
  10. {
  11. using System;
  12. using UnityEngine;
  13. public interface IEncoderBase
  14. {
  15. }
  16. /// <summary> Interface for encoder. </summary>
  17. public interface IEncoder : IEncoderBase
  18. {
  19. /// <summary> Configurations the given parameter. </summary>
  20. /// <param name="param"> The parameter.</param>
  21. void Config(CameraParameters param);
  22. /// <summary> Commits. </summary>
  23. /// <param name="rt"> The right.</param>
  24. /// <param name="timestamp"> The timestamp.</param>
  25. void Commit(RenderTexture rt, UInt64 timestamp);
  26. /// <summary> Starts this object. </summary>
  27. void Start();
  28. /// <summary> Stops this object. </summary>
  29. void Stop();
  30. /// <summary> Releases this object. </summary>
  31. void Release();
  32. }
  33. }