mixer.h 1007 Bytes
#ifndef MIXER_H
#define MIXER_H

#include <string>
#include <iostream>
#include <sstream>
#include <fstream>
#include "logging.h"

//Secondary Video Position
#define TOP_LEFT 1
#define TOP_RIGHT 2
#define BOTTOM_RIGHT 3
#define BOTTOM_LEFT 4

//Secondary Video Size
#define SMALL 1
#define MEDIUM 2
#define LARGE 3

#define NUMTHREADS "8"

using namespace std;
using namespace util;

class Mixer {

public:
	Mixer(string mVideo, string sVideo, int ssVideo, int psVideo, int tsVideo,
 		string id, string pathTemp, string pathContents);
	~Mixer();

	void initialize();

private:
	string pathMixedVideo;
	string pathTempFiles;

	string mainVideo;
	string secondaryVideo;
	string temporaryTextFile;
	string transparency;
	string userID;
	
	string heigthStr;
	string widthStr;
	string positionStr;

	double widthSVideo;
	double heigthSVideo;

	int positionSVideo;
	int sizeSVideo;
	int transpSVideo;

	void mixVideos();
	void setSVSize();
	void setSVPosition();
	void setPathOfFiles();	
};

#endif /* MIXER_H */