forked from miguelangel-nubla/videoP2Proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathavframe.h
More file actions
30 lines (27 loc) · 690 Bytes
/
Copy pathavframe.h
File metadata and controls
30 lines (27 loc) · 690 Bytes
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
#ifndef AVFRAME_H_
#define AVFRAME_H_
typedef struct {
int backwardIndex;
int backwardIndex2;
char cam_index;
short codec_id;
int definition;
char flags;
int frmSize;
char isLiveflages;
long millisecond;
char onlineNum;
long time;
long timestamp;
int videoHeight;
int videoWidth;
char* frmData;
} AVFrame;
int isLive(const AVFrame *avFrame);
int isIFrame(const AVFrame *avFrame);
void getLog(const AVFrame *avFrame);
AVFrame readAvFrame(char *frameInfo,char *videoBuffer,int *frmSize);
unsigned long byteArrayToLong_Little(char *frameInfo,int pos);
unsigned int byteArrayToInt_Little(char *frameInfo,int pos);
short byteArrayToShort_Little(char *frameInfo,int pos);
#endif