mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-19 21:29:59 +01:00
changed name of playback file
This commit is contained in:
44
src/playback_thread.h
Normal file
44
src/playback_thread.h
Normal 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
|
||||
Reference in New Issue
Block a user