VideoDecoder.h 745 字节
#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;
};