Created
February 15, 2020 22:30
-
-
Save olokobayusuf/19d422b0d9edb0a6eda2a6db1143fa5c to your computer and use it in GitHub Desktop.
The fundamental camera device interface in NatDevice, which all camera devices implement.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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