changed name of playback file

This commit is contained in:
lostjared
2017-02-19 16:22:18 -08:00
parent ed000eca99
commit 146cbcc231
3 changed files with 4 additions and 3 deletions

44
src/playback_thread.h Normal file
View File

@@ -0,0 +1,44 @@
#ifndef __PLAYBACK_WINDOW_H__
#define __PLAYBACK_WINDOW_H__
#include "qtheaders.h"
class Playback : public QThread {
Q_OBJECT
private:
bool stop;
QMutex mutex,mutex_shown,mutex_add;
QWaitCondition condition;
cv::Mat frame;
int frame_rate;
bool recording;
cv::VideoCapture capture;
cv::VideoWriter writer;
cv::Mat rgb_frame;
QImage img;
std::vector<std::pair<int, int>> current;
bool isPaused, isStep;
bool video_shown;
public:
Playback(QObject *parent = 0);
~Playback();
void Play();
void Stop();
void Release();
void setVideo(cv::VideoCapture cap, cv::VideoWriter writer, bool record);
bool isStopped() const;
void run();
void msleep(int ms);
void setVector(std::vector<std::pair<int, int>> s);
void setOptions(bool n, int c);
void setImage(const cv::Mat &image);
void setStep();
void setDisplayed(bool shown);
signals:
void procImage(const QImage image);
void stopRecording();
void frameIncrement();
};
#endif