LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
cameras_c.h
Go to the documentation of this file.
1
5#ifndef CAMERAS_C_H
6#define CAMERAS_C_H
7
8#include "sr/core_c.h"
9
12
13typedef void* SR_camera;
14typedef void* SR_videoListener;
15
16#ifdef WIN32
17#ifdef __cplusplus
18# ifdef COMPILING_DLL_SimulatedRealityCameras
19# define SRAPI extern "C" __declspec(dllexport)
20# else
21# define SRAPI extern "C" __declspec(dllimport)
22# endif
23#else
24# ifdef COMPILING_DLL_SimulatedRealityCameras
25# error Trying to compile SimulatedRealityCameras.dll using a non-C++ compiler! Use a C++ compiler instead!
26# else
27# define SRAPI __declspec(dllimport)
28# endif
29#endif
30#else
31# define SRAPI
32#endif
33
46
56
67
76
77#undef SRAPI
78
79#endif // CAMERAS_C_H
void * SRContext
Definition: admin_c.h:10
void * SR_camera
Definition: cameras_c.h:13
void * SR_videoListener
Definition: cameras_c.h:14
#define SRAPI
Definition: cameras_c.h:31
SRAPI void deleteVideoListener(SR_videoListener videoListener)
Cleans up underlying object instances used to facilitate video update callbacks.
SRAPI SR_videoListener createVideoListener(SR_camera camera, void(*acceptVideoCallback)(SR_videoFrame))
Create a new callback function to listen to a specific camera.
SRAPI SR_camera createCameraByDescriptor(SRContext context, SR_cameraDescriptor descriptor)
Creates a Camera instance to provide feedback about the Eyetracker.
SRAPI SR_camera createCamera(SRContext context)
Creates a functional Camera instance.
C-compatible descriptor of SR camera component.
Definition: cameradescriptor.h:10
C-compatible struct containing an image recorded by a Camera.
Definition: videoframe.h:17