mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-05 14:30:03 +01:00
copy of filter_map
This commit is contained in:
@@ -26,6 +26,7 @@ Playback::Playback(QObject *parent) : QThread(parent) {
|
||||
_custom_cycle_index = 0;
|
||||
fps_delay = 60;
|
||||
draw_strings = ac::draw_strings;
|
||||
filter_map_ex = filter_map;
|
||||
}
|
||||
|
||||
void Playback::setCustomCycle(bool b) {
|
||||
@@ -262,7 +263,7 @@ void Playback::setPref(int thread_count, int intense) {
|
||||
void Playback::setIndexChanged(std::string value) {
|
||||
mutex.lock();
|
||||
prev_filter = current_filter;
|
||||
current_filter = filter_map[value];
|
||||
current_filter = filter_map_ex[value];
|
||||
// here:
|
||||
//ac::release_all_objects();
|
||||
mutex.unlock();
|
||||
|
||||
@@ -52,6 +52,7 @@ private:
|
||||
std::atomic<int> _custom_cycle_index;
|
||||
std::atomic<int> fps_delay;
|
||||
std::vector<std::string> draw_strings;
|
||||
std::unordered_map<std::string, FilterValue> filter_map_ex;
|
||||
public:
|
||||
Playback(QObject *parent = 0);
|
||||
~Playback();
|
||||
|
||||
Reference in New Issue
Block a user