mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-16 11:50:02 +01:00
updated project
This commit is contained in:
@@ -126,6 +126,9 @@ void Playback::setCycle(int type, int frame_skip, std::vector<std::string> &v) {
|
||||
frame_num = frame_skip;
|
||||
blend_image = cv::imread(v[0]);
|
||||
blend_set = true;
|
||||
static std::random_device r;
|
||||
static auto rng = std::default_random_engine(r());
|
||||
std::shuffle(cycle_values.begin(), cycle_values.end(), rng);
|
||||
}
|
||||
mutex.unlock();
|
||||
}
|
||||
@@ -163,6 +166,13 @@ void Playback::setColorOptions(int b, int g, int s) {
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
void Playback::setPref(int thread_count, int intense) {
|
||||
mutex.lock();
|
||||
ac::setThreadCount(thread_count);
|
||||
ac::setPixelCollection(intense);
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
void Playback::setIndexChanged(std::string value) {
|
||||
prev_filter = current_filter;
|
||||
current_filter = filter_map[value];
|
||||
|
||||
Reference in New Issue
Block a user