updated project

This commit is contained in:
Jared Bruni
2019-09-14 06:27:42 -07:00
parent c9afd2aeb7
commit 09a4b3c621
9 changed files with 99 additions and 5 deletions

View File

@@ -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];