ClpeStreamApi.h
Go to the documentation of this file.
1 #ifndef ClpeStreamApi_header
2 #define ClpeStreamApi_header
3 
4 #include <sys/time.h>
5 #include <fcntl.h>
6 
7 //#define CANLAB_LOGGING_ENABLE // you have to comment out it.
8 
9 #ifndef CANLAB_LOGGING_ENABLE
10 typedef int (*T_CB_APP) (unsigned int inst, unsigned char* buffer, unsigned int size, struct timeval* frame_us);
11 #endif // #ifndef CANLAB_LOGGING_ENABLE
12 
13 /* error define */
14 #define ERROR_NONE 0
15 #define ERROR_CREATE_TASK -1
16 #define ERROR_NO_FRAME -2
17 #define ERROR_NOT_AVALIABLE_CAM_ID -3
18 
19 #ifndef CANLAB_LOGGING_ENABLE
20 int clpe_startStream(T_CB_APP cb_app, char use_cam_0, char use_cam_1, char use_cam_2, char use_cam_3, int display_on);
21 int clpe_stopStream(void);
22 int clpe_getFrameAnyCam(int *p_camera_id, unsigned char **p_buffer, unsigned int *p_size, struct timeval *pt_camera_timeStamp);
23 int clpe_getFrameWithCamId(int camera_id, unsigned char **p_buffer, unsigned int *p_size, struct timeval *pt_camera_timeStamp);
24 #endif // #ifndef CANLAB_LOGGING_ENABLE
25 
26 #endif /* ClpeStreamApi_header */
T_CB_APP
int(* T_CB_APP)(unsigned int inst, unsigned char *buffer, unsigned int size, struct timeval *frame_us)
Definition: ClpeStreamApi.h:10
clpe_getFrameAnyCam
int clpe_getFrameAnyCam(int *p_camera_id, unsigned char **p_buffer, unsigned int *p_size, struct timeval *pt_camera_timeStamp)
Definition: ClpeStream.cpp:619
clpe_stopStream
int clpe_stopStream(void)
Definition: ClpeStream.cpp:599
clpe_startStream
int clpe_startStream(T_CB_APP cb_app, char use_cam_0, char use_cam_1, char use_cam_2, char use_cam_3, int display_on)
Definition: ClpeStream.cpp:574
clpe_getFrameWithCamId
int clpe_getFrameWithCamId(int camera_id, unsigned char **p_buffer, unsigned int *p_size, struct timeval *pt_camera_timeStamp)
Definition: ClpeStream.cpp:645


clpe_sdk
Author(s): Can-lab Corporation
autogenerated on Wed Oct 12 2022 02:17:28