mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-15 11:20: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()));
|
qPrintable(file.errorString()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
file.write(data->readAll());
|
file.write(data->readAll());
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ void Playback::reset_filters() {
|
|||||||
if(ac::reset_alpha == false) {
|
if(ac::reset_alpha == false) {
|
||||||
ac::reset_alpha = true;
|
ac::reset_alpha = true;
|
||||||
}
|
}
|
||||||
|
ac::image_matrix_reset = true;
|
||||||
ac::frames_released = true;
|
ac::frames_released = true;
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
}
|
}
|
||||||
@@ -171,6 +172,7 @@ void Playback::drawEffects(cv::Mat &frame) {
|
|||||||
if(ac::set_color_map > 0) ac::ApplyColorMap(frame);
|
if(ac::set_color_map > 0) ac::ApplyColorMap(frame);
|
||||||
ac::frames_released = false;
|
ac::frames_released = false;
|
||||||
ac::reset_alpha = false;
|
ac::reset_alpha = false;
|
||||||
|
ac::image_matrix_reset = false;
|
||||||
if(bright_ > 0) {
|
if(bright_ > 0) {
|
||||||
ac::setBrightness(frame, 1.0, bright_);
|
ac::setBrightness(frame, 1.0, bright_);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user