mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-18 21:00:13 +01:00
added set single member functions to playback
This commit is contained in:
@@ -13,6 +13,7 @@ Playback::Playback(QObject *parent) : QThread(parent) {
|
|||||||
isPaused = false;
|
isPaused = false;
|
||||||
bright_ = gamma_ = saturation_ = 0;
|
bright_ = gamma_ = saturation_ = 0;
|
||||||
single_mode = true;
|
single_mode = true;
|
||||||
|
current_filter = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Playback::Play() {
|
void Playback::Play() {
|
||||||
@@ -111,7 +112,11 @@ void Playback::setColorOptions(int b, int g, int s) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Playback::setIndexChanged(int pos) {
|
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) {
|
void Playback::setRGB(int r, int g, int b) {
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ private:
|
|||||||
unsigned int red, green, blue;
|
unsigned int red, green, blue;
|
||||||
unsigned int bright_, gamma_, saturation_;
|
unsigned int bright_, gamma_, saturation_;
|
||||||
bool single_mode;
|
bool single_mode;
|
||||||
|
int current_filter;
|
||||||
public:
|
public:
|
||||||
Playback(QObject *parent = 0);
|
Playback(QObject *parent = 0);
|
||||||
~Playback();
|
~Playback();
|
||||||
@@ -54,6 +55,7 @@ public:
|
|||||||
void setStep();
|
void setStep();
|
||||||
void setDisplayed(bool shown);
|
void setDisplayed(bool shown);
|
||||||
void setIndexChanged(int pos);
|
void setIndexChanged(int pos);
|
||||||
|
void setSingleMode(bool val);
|
||||||
signals:
|
signals:
|
||||||
void procImage(const QImage image);
|
void procImage(const QImage image);
|
||||||
void stopRecording();
|
void stopRecording();
|
||||||
|
|||||||
Reference in New Issue
Block a user