added set single member functions to playback

This commit is contained in:
lostjared
2018-03-18 11:36:38 -07:00
parent 3d2eb4176d
commit 41c3f9bc3e
2 changed files with 8 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ Playback::Playback(QObject *parent) : QThread(parent) {
isPaused = false;
bright_ = gamma_ = saturation_ = 0;
single_mode = true;
current_filter = 0;
}
void Playback::Play() {
@@ -111,7 +112,11 @@ void Playback::setColorOptions(int b, int g, int s) {
}
void Playback::setIndexChanged(int pos) {
current_filter = pos;
}
void Playback::setSingleMode(bool val) {
single_mode = val;
}
void Playback::setRGB(int r, int g, int b) {

View File

@@ -34,6 +34,7 @@ private:
unsigned int red, green, blue;
unsigned int bright_, gamma_, saturation_;
bool single_mode;
int current_filter;
public:
Playback(QObject *parent = 0);
~Playback();
@@ -54,6 +55,7 @@ public:
void setStep();
void setDisplayed(bool shown);
void setIndexChanged(int pos);
void setSingleMode(bool val);
signals:
void procImage(const QImage image);
void stopRecording();