Skip to content

Instantly share code, notes, and snippets.

@olokobayusuf
Created February 15, 2020 22:30
Show Gist options
  • Save olokobayusuf/19d422b0d9edb0a6eda2a6db1143fa5c to your computer and use it in GitHub Desktop.
Save olokobayusuf/19d422b0d9edb0a6eda2a6db1143fa5c to your computer and use it in GitHub Desktop.
The fundamental camera device interface in NatDevice, which all camera devices implement.
/// <summary>
/// Camera device which provides pixel buffers.
/// </summary>
public interface ICameraDevice : IMediaDevice {
/// <summary>
/// Is the camera front facing?
/// </summary>
bool frontFacing { get; }
/// <summary>
/// Get or set the current preview resolution of the camera.
/// </summary>
(int width, int height) previewResolution { get; set; }
/// <summary>
/// Get or set the current framerate of the camera.
/// </summary>
int frameRate { get; set; }
/// <summary>
/// Start running.
/// </summary>
Task<Texture2D> StartRunning ();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment