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