-
Notifications
You must be signed in to change notification settings - Fork 3
/
utils.h
49 lines (34 loc) · 885 Bytes
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
Utils for basic and general operation
*/
#ifndef __UTILS__
#define __UTILS__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <fcntl.h>
#include <stdint.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <signal.h>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "aw/vencoder.h"
#include "librtmp_send264.h"
using namespace std;
using namespace cv;
extern RTMPMetadata metaData;
/**
* creating directories if none existing
*/
int mkdirs(char *muldir);
void decode_sps_pps(VencHeaderData sps_pps_data);
void read_csv(const string& filename, vector<Mat>& images, vector<int>& labels, char separator);
#endif