Video Capture
Last updated: 1 year ago • 12 versions | Visibility: Public
Description
The video capture allows developers to access camera streams of the Lynx-R1 : RGB, Tracking and Handtracking.
For the different format received:
- RGB
- YUV - NV12
- Resolution: 1536 x 1404 per eye
- Buffer size: 1536 x 1404 x 1.5 per eye
- Tracking
- Grayscale - 8 bits per pixel
- Resolution: 1280 x 400 (640 x 400 per eye, but buffers are merged)
- Buffer size: 1280 x 400 per eye
- Handtracking
- Grayscale - 8 bits per pixel
- Resolution: 400 x 400
- Buffer size: 400 x 400 per eye
Get started
1. Start the camera you want to stream with the max expected FPS.
LynxCaptureAPI.StartCapture(LynxCaptureAPI.ESensorType.RGB, fps);
2. Attach your callback each time a frame is received
LynxCaptureAPI.onRGBFrames += OnCallback;
public void OnCallback(LynxFrameInfo frameInfo)
{
// Process the frame here
}
LynxFrameInfo
- version : Uint32
- width: Uint32
- height: Uint32
- bufferSize: Uint32
- leftEyeBuffer: IntPtr
- rightEyeBuffer: IntPtr
Limitations
This package has the current limitations:
- Heavy package as this version contains lot of dependencies for video capture management.
- Development Build mode is not available.
- Tracking sensor buffers are currently not splitted. Each buffer contains the stereo capture of both cameras.