CapturePixelFormat.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  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. /// <summary>
  12. /// The encoded image or video pixel format to use for PhotoCapture and VideoCapture. </summary>
  13. public enum CapturePixelFormat
  14. {
  15. /// <summary>
  16. /// 8 bits per channel (blue, green, red, and alpha).
  17. /// </summary>
  18. BGRA32 = 0,
  19. /// <summary>
  20. /// 8-bit Y plane followed by an interleaved U/V plane with 2x2 subsampling.
  21. /// </summary>
  22. NV12 = 1,
  23. /// <summary>
  24. /// Encode photo in JPEG format.
  25. /// </summary>
  26. JPEG = 2,
  27. /// <summary>
  28. /// Portable Network Graphics Format.
  29. /// </summary>
  30. PNG = 3
  31. }
  32. }