A = curbuf[i]; B = curbuf[i+width+1]; C = curbuf[i+width]; D = curbuf[i+1]; A = ((A>B)?A-B:B-A) + (C>D)?C-D:D-C; curbuf[i] = A; B = prevbuf[i]; if(((A>B)?A-B:B-A) > _sensitive) {sens[sens_count]=i, sens_count++;}
V4L2::V4L2(QString fname, int index, QObject *parent) : VidDevice(index, parent){mutex.lock();devState = UNACTIVE;mutex.unlock();