mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-19 21:29:59 +01:00
updated
This commit is contained in:
@@ -325,7 +325,6 @@ void Playback::drawEffects(cv::Mat &frame) {
|
|||||||
|
|
||||||
void Playback::drawFilter(cv::Mat &frame, FilterValue &f) {
|
void Playback::drawFilter(cv::Mat &frame, FilterValue &f) {
|
||||||
if(f.index == 0) {
|
if(f.index == 0) {
|
||||||
|
|
||||||
if(single_mode == true &&
|
if(single_mode == true &&
|
||||||
draw_strings[f.filter].find("SubFilter") != std::string::npos)
|
draw_strings[f.filter].find("SubFilter") != std::string::npos)
|
||||||
return;
|
return;
|
||||||
@@ -539,25 +538,23 @@ bool Playback::getFrame(QImage &img, const int &index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Playback::enableRepeat(bool re) {
|
void Playback::enableRepeat(bool re) {
|
||||||
mutex.lock();
|
|
||||||
repeat_video = re;
|
repeat_video = re;
|
||||||
mutex.unlock();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Playback::Clear() {
|
void Playback::Clear() {
|
||||||
mutex.lock();
|
|
||||||
blend_set = false;
|
blend_set = false;
|
||||||
colorkey_set = false;
|
colorkey_set = false;
|
||||||
|
mutex.lock();
|
||||||
blend_image.release();
|
blend_image.release();
|
||||||
color_image.release();
|
color_image.release();
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Playback::Stop() {
|
void Playback::Stop() {
|
||||||
mutex.lock();
|
|
||||||
stop = true;
|
stop = true;
|
||||||
alpha = 0;
|
alpha = 0;
|
||||||
|
mutex.lock();
|
||||||
prev_filter = FilterValue(0, 0, -1);
|
prev_filter = FilterValue(0, 0, -1);
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
}
|
}
|
||||||
@@ -579,27 +576,23 @@ bool Playback::isStopped() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Playback::setStep() {
|
void Playback::setStep() {
|
||||||
mutex.lock();
|
|
||||||
isStep = true;
|
isStep = true;
|
||||||
mutex.unlock();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Playback::setImage(const cv::Mat &frame) {
|
void Playback::setImage(const cv::Mat &frame) {
|
||||||
mutex.lock();
|
|
||||||
blend_set = true;
|
blend_set = true;
|
||||||
|
mutex.lock();
|
||||||
blend_image = frame;
|
blend_image = frame;
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Playback::setFadeFilter(bool f) {
|
void Playback::setFadeFilter(bool f) {
|
||||||
mutex.lock();
|
|
||||||
fadefilter = f;
|
fadefilter = f;
|
||||||
mutex.unlock();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Playback::setColorKey(const cv::Mat &image) {
|
void Playback::setColorKey(const cv::Mat &image) {
|
||||||
mutex.lock();
|
|
||||||
colorkey_set = true;
|
colorkey_set = true;
|
||||||
|
mutex.lock();
|
||||||
color_image = image;
|
color_image = image;
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user