liblewei.h
Go to the documentation of this file.
1 //
2 // Created by vedanshi on 18/4/19.
3 //
4 
5 #ifndef LEWEISTREAM_LIBLEWEI_H
6 #define LEWEISTREAM_LIBLEWEI_H
7 
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 #define LEWEI_ERROR_BASE 8000
14 #define LEWEI_ERROR_NOT_INITIALIZED (LEWEI_ERROR_BASE+1)
15 #define LEWEI_ERROR_MALLOC_FAIL (LEWEI_ERROR_BASE+2)
16 #define LEWEI_ERROR_NO_CALLBACK (LEWEI_ERROR_BASE+3)
17 #define LEWEI_ERROR_SOCKET (LEWEI_ERROR_BASE+4)
18 #define LEWEI_ERROR_CREATE_FILE (LEWEI_ERROR_BASE+5)
19 
20 typedef struct _LEWEI_VIDEO_FRAME_T
21 {
22  int64_t timestamp; //video֡ʱ����
23  uint32_t iFrame; //�Ƿ��ؼ�֡
24  uint32_t size; //֡����
25  uint8_t *buf; //֡����buffer
27 
28 typedef void P_LEWEI_CALLBACK(void *param, lewei_video_frame *pframe);
29 
30 void video_free_frame_ram(void *pFrame);
31 long lewei_start_stream(void *mydata, P_LEWEI_CALLBACK pcallback);
32 void lewei_stop_stream();
33 
36 
37 
38 #ifdef __cplusplus
39 }
40 #endif
41 
42 #endif //LEWEISTREAM_LIBLEWEI_H
43 
void lewei_finalize_stream()
int lewei_initialize_stream()
long lewei_start_stream(void *mydata, P_LEWEI_CALLBACK pcallback)
void video_free_frame_ram(void *pFrame)
void lewei_stop_stream()
void P_LEWEI_CALLBACK(void *param, lewei_video_frame *pframe)
Definition: liblewei.h:28
struct _LEWEI_VIDEO_FRAME_T lewei_video_frame


edrone_client
Author(s): Simranjeet Singh
autogenerated on Sun Dec 1 2019 03:30:51