VideoDecoder.h
745 字节
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
50
51
#pragma once
#include <string>
#include <vector>
using namespace std;
enum media_type{
mt_audio = 0,
mt_video = 1,
mt_av = 3,
};
enum media_role {
mr_teacher = 0,
mr_student = 1,
};
enum timestamp_type{
tt_start = 0,
tt_end = 1,
};
class media_info {
public:
float type_time;//the time for start or end according to the m_type
float start_time;
float end_time;
string name;
int rotate;
float duration;
int index;
unsigned int uid;
media_type m_type;
media_role m_role;
timestamp_type t_type;
};
class CVideoDecoder
{
public:
CVideoDecoder();
virtual ~CVideoDecoder();
int add(media_info &info);
unsigned int getuid();
protected:
vector<media_info> _info;
};