Beispiel #1
0
 /// <summary>
 /// Get information about an image plane from a native image handle by index.
 /// </summary>
 /// <param name="nativeHandle">A unique identifier for this camera image.</param>
 /// <param name="planeIndex">The index of the plane to get.</param>
 /// <param name="planeCinfo">The returned camera plane information if successful.</param>
 /// <returns>
 /// <c>true</c> if the image plane was acquired. Otherwise, <c>false</c>.
 /// </returns>
 public override bool TryGetPlane(
     int nativeHandle,
     int planeIndex,
     out XRCpuImage.Plane.Cinfo planeCinfo)
 {
     return(Native.TryGetPlane(nativeHandle, planeIndex, out planeCinfo));
 }
Beispiel #2
0
 /// <summary>
 /// Get information about an image plane from a native image handle by index.
 /// </summary>
 /// <param name="nativeHandle">A unique identifier for this camera image.</param>
 /// <param name="planeIndex">The index of the plane to get.</param>
 /// <param name="planeCinfo">The returned camera plane information if successful.</param>
 /// <returns>
 /// <c>true</c> if the image plane was acquired. Otherwise, <c>false</c>.
 /// </returns>
 /// <seealso cref="Provider.TryAcquireLatestCpuImage"/>
 public override bool TryGetPlane(int nativeHandle, int planeIndex, out XRCpuImage.Plane.Cinfo planeCinfo)
 => NativeApi.UnityARCore_CpuImage_TryGetPlane(nativeHandle, planeIndex, out planeCinfo);
Beispiel #3
0
 public static extern bool UnityARCore_CpuImage_TryGetPlane(int nativeHandle, int planeIndex,
                                                            out XRCpuImage.Plane.Cinfo planeCinfo);
 public static bool TryGetPlane(
     int nativeHandle, int planeIndex,
     out XRCpuImage.Plane.Cinfo planeCinfo)
 {
     throw new System.NotImplementedException(k_ExceptionMsg);
 }