mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-13 02:10:01 +01:00
added reset of new colorimage filters
This commit is contained in:
@@ -40,10 +40,8 @@ bool DownloadManager::saveToDisk(const QString &filename, QIODevice *data)
|
||||
qPrintable(file.errorString()));
|
||||
return false;
|
||||
}
|
||||
|
||||
file.write(data->readAll());
|
||||
file.close();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -114,6 +114,7 @@ void Playback::reset_filters() {
|
||||
if(ac::reset_alpha == false) {
|
||||
ac::reset_alpha = true;
|
||||
}
|
||||
ac::image_matrix_reset = true;
|
||||
ac::frames_released = true;
|
||||
mutex.unlock();
|
||||
}
|
||||
@@ -171,6 +172,7 @@ void Playback::drawEffects(cv::Mat &frame) {
|
||||
if(ac::set_color_map > 0) ac::ApplyColorMap(frame);
|
||||
ac::frames_released = false;
|
||||
ac::reset_alpha = false;
|
||||
ac::image_matrix_reset = false;
|
||||
if(bright_ > 0) {
|
||||
ac::setBrightness(frame, 1.0, bright_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user