Tilt Five Unity SDK 1.4.2
TiltFive.CameraImage Class Reference

The Camera Frame API and runtime. More...

Inheritance diagram for TiltFive.CameraImage:
TiltFive.Singleton< T >

Static Public Member Functions

static bool TryGetFilledCameraImageBuffer (PlayerIndex playerIndex, ref T5_CamImage camImage)
 Attempt to request a new filled buffer from the camera image stream. If an empty buffer has been submitted, the oldest available image will be placed in to camImage. If no image is available, camImage will not be modified. If a new image is available, camImage will wrap the previously provided buffer, now containing the frame data.
static bool TrySubmitEmptyCameraImageBuffer (PlayerIndex playerIndex, IntPtr imageBuffer, UInt32 bufferSize)
 Submit a camera image buffer to be used by the camera image stream. As images become available the buffers will be filled and returned on subsequent calls to TryGetFilledCameraImageBuffer(). It's recommended to begin with at least 3 buffers when submitting buffers to the stream, and after an image is finished being processed, resubmitting that buffer back to the camera image stream.
static bool TryCancelCameraImageBuffer (PlayerIndex playerIndex, byte[] imageBuffer)
 Specify an image buffer to be released from the Tilt Five Service. If true is returned, the provided buffer is no longer in use by the service, and is available to be freed. Canceled buffers should not be utilized outside of freeing or resubmitting to the service, their data is not guaranteed to be in a specific state.
static bool TryConfigureCameraImageStream (PlayerIndex playerIndex, T5_CameraStreamConfig config)
 Attempt to configure the Camera Stream.
static bool TryGetDewarpedPixelCoordinate (PlayerIndex playerIndex, ref T5_PixelDewarp pixelDewarp)
 Attempt to calculate a dewarped pixel location.

Additional Inherited Members

Protected Member Functions inherited from TiltFive.Singleton< T >
 Singleton ()
Properties inherited from TiltFive.Singleton< T >
static T Instance [get]

Detailed Description

The Camera Frame API and runtime.

Member Function Documentation

◆ TryCancelCameraImageBuffer()

bool TiltFive.CameraImage.TryCancelCameraImageBuffer ( PlayerIndex playerIndex,
byte[] imageBuffer )
inlinestatic

Specify an image buffer to be released from the Tilt Five Service. If true is returned, the provided buffer is no longer in use by the service, and is available to be freed. Canceled buffers should not be utilized outside of freeing or resubmitting to the service, their data is not guaranteed to be in a specific state.

Returns
true if buffer has been canceled, false otherwise.

◆ TryConfigureCameraImageStream()

bool TiltFive.CameraImage.TryConfigureCameraImageStream ( PlayerIndex playerIndex,
T5_CameraStreamConfig config )
inlinestatic

Attempt to configure the Camera Stream.

Returns
true if stream has been conffigured, false otherwise.

◆ TryGetDewarpedPixelCoordinate()

bool TiltFive.CameraImage.TryGetDewarpedPixelCoordinate ( PlayerIndex playerIndex,
ref T5_PixelDewarp pixelDewarp )
inlinestatic

Attempt to calculate a dewarped pixel location.

Returns
true if a deewarped pixel location was able to be calculated, false otherwise.

◆ TryGetFilledCameraImageBuffer()

bool TiltFive.CameraImage.TryGetFilledCameraImageBuffer ( PlayerIndex playerIndex,
ref T5_CamImage camImage )
inlinestatic

Attempt to request a new filled buffer from the camera image stream. If an empty buffer has been submitted, the oldest available image will be placed in to camImage. If no image is available, camImage will not be modified. If a new image is available, camImage will wrap the previously provided buffer, now containing the frame data.

Returns
true if a filled buffer was available and camImage has been set, false otherwise.

◆ TrySubmitEmptyCameraImageBuffer()

bool TiltFive.CameraImage.TrySubmitEmptyCameraImageBuffer ( PlayerIndex playerIndex,
IntPtr imageBuffer,
UInt32 bufferSize )
inlinestatic

Submit a camera image buffer to be used by the camera image stream. As images become available the buffers will be filled and returned on subsequent calls to TryGetFilledCameraImageBuffer(). It's recommended to begin with at least 3 buffers when submitting buffers to the stream, and after an image is finished being processed, resubmitting that buffer back to the camera image stream.

Returns
true if buffer was accepted, false otherwise.

The documentation for this class was generated from the following file: