SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.5 KiB

4 years ago
  1. namespace UnityEngine.XR.ARSubsystems
  2. {
  3. /// <summary>
  4. /// Formats used by the raw <see cref="XRCameraImage"/> data. See <see cref="XRCameraImage.format"/>.
  5. /// </summary>
  6. public enum CameraImageFormat
  7. {
  8. /// <summary>
  9. /// The format is unknown or could not be determined.
  10. /// </summary>
  11. Unknown,
  12. /// <summary>
  13. /// <para>Three-Plane YUV 420 format commonly used by Android. See
  14. /// <a href="https://developer.android.com/ndk/reference/group/media#group___media_1gga9c3dace30485a0f28163a882a5d65a19aea9797f9b5db5d26a2055a43d8491890">
  15. /// AIMAGE_FORMAT_YUV_420_888</a>.</para>
  16. /// <para>This format consists of three image planes. The first is the Y (luminocity) plane, with 8 bits per
  17. /// pixel. The second and third are the U and V (chromaticity) planes, respectively. Each 2x2 block of pixels
  18. /// share the same chromaticity value, so a given (x, y) pixel's chromaticity value is given by
  19. /// <code>
  20. /// u = UPlane[(y / 2) * rowStride + (x / 2) * pixelStride];
  21. /// v = VPlane[(y / 2) * rowStride + (x / 2) * pixelStride];
  22. /// </code></para>
  23. /// </summary>
  24. AndroidYuv420_888,
  25. /// <summary>
  26. /// <para>Bi-Planar Component Y'CbCr 8-bit 4:2:0, full-range (luma=[0,255] chroma=[1,255]) commonly used by
  27. /// iOS. See
  28. /// <a href="https://developer.apple.com/documentation/corevideo/1563591-pixel_format_identifiers/kcvpixelformattype_420ypcbcr8biplanarfullrange">
  29. /// kCVPixelFormatType_420YpCbCr8BiPlanarFullRange</a>.</para>
  30. /// <para>This format consists of two image planes. The first is the Y (luminocity) plane, with 8 bits per
  31. /// pixel. The second plane is the UV (chromaticity) plane. The U and V chromaticity values are interleaved
  32. /// (u0, v0, u1, v1, etc.). Each 2x2 block of pixels share the same chromaticity values, so a given (x, y)
  33. /// pixel's chromaticity value is given by
  34. /// <code>
  35. /// u = UvPlane[(y / 2) * rowStride + (x / 2) * pixelStride];
  36. /// v = UvPlane[(y / 2) * rowStride + (x / 2) * pixelStride + 1];
  37. /// </code>
  38. /// pixelStride is always 2 for this format, so this can be optimized to
  39. /// <code>
  40. /// u = UvPlane[(y >> 1) * rowStride + x &amp; ~1];
  41. /// v = UvPlane[(y >> 1) * rowStride + x | 1];
  42. /// </code></para>
  43. /// </summary>
  44. IosYpCbCr420_8BiPlanarFullRange
  45. }
  46. }