Exemplo n.º 1
0
 /// <summary>
 /// Attempt to get information about an image plane from a native image 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 is successfully acquired. Otherwise, <c>false</c>.
 /// </returns>
 /// <exception cref="System.NotSupportedException">Thrown if the implementation does not support camera image.
 /// </exception>
 /// <seealso cref="IProvider.TryAcquireLatestImage"/>
 internal bool TryGetPlane(
     int nativeHandle,
     int planeIndex,
     out CameraImagePlaneCinfo planeCinfo)
 {
     return(m_Provider.TryGetPlane(nativeHandle, planeIndex, out planeCinfo));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Method to be implemented by the provider to 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>
 /// <exception cref="System.NotSupportedException">Thrown if the implementation does not support camera
 /// image.</exception>
 /// <seealso cref="TryAcquireLatestImage"/>
 public virtual bool TryGetPlane(
     int nativeHandle,
     int planeIndex,
     out CameraImagePlaneCinfo planeCinfo)
 {
     throw new NotSupportedException("camera image conversion is not supported by this implementation");
 }
 /// <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="TryAcquireLatestImage"/>
 public override bool TryGetPlane(
     int nativeHandle,
     int planeIndex,
     out CameraImagePlaneCinfo planeCinfo)
 {
     return(NativeApi.UnityARCore_Camera_TryGetPlane(nativeHandle, planeIndex, out planeCinfo));
 }
 public static bool UnityARCore_Camera_TryGetPlane(int nativeHandle, int planeIndex,
                                                   out CameraImagePlaneCinfo planeCinfo)
 {
     planeCinfo = default(CameraImagePlaneCinfo);
     return(false);
 }
 public static extern bool UnityARCore_Camera_TryGetPlane(int nativeHandle, int planeIndex,
                                                          out CameraImagePlaneCinfo planeCinfo);