Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
cameras_c.h
Go to the documentation of this file.
1
10#ifndef CAMERAS_C_H
11#define CAMERAS_C_H
12
13#include "sr/core_c.h"
14
17
18typedef void* SR_camera;
19typedef void* SR_videoListener;
20
21#ifdef WIN32
22#ifdef __cplusplus
23# ifdef COMPILING_DLL_SimulatedRealityCameras
24# define SRAPI extern "C" __declspec(dllexport)
25# else
26# define SRAPI extern "C" __declspec(dllimport)
27# endif
28#else
29# ifdef COMPILING_DLL_SimulatedRealityCameras
30# error Trying to compile SimulatedRealityCameras.dll using a non-C++ compiler! Use a C++ compiler instead!
31# else
32# define SRAPI __declspec(dllimport)
33# endif
34#endif
35#else
36# define SRAPI
37#endif
38
51
61
72
81
82#undef SRAPI
83
84#endif // CAMERAS_C_H
void * SRContext
Definition: admin_c.h:15
void * SR_camera
Definition: cameras_c.h:18
void * SR_videoListener
Definition: cameras_c.h:19
#define SRAPI
Definition: cameras_c.h:36
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:15
C-compatible struct containing an image recorded by a Camera.
Definition: videoframe.h:22