motioncells: make framedrop work at 30 fps too

https://bugzilla.gnome.org/show_bug.cgi?id=730141
This commit is contained in:
Nicola Murino 2014-05-20 07:29:16 +02:00 committed by Thiago Santos
parent b5cefffb9f
commit f48358636b

View file

@ -146,7 +146,8 @@ MotionCells::performDetectionMotionCells (IplImage * p_frame,
: p_framerate <= 10 ? sumframecnt = 2
: p_framerate <= 15 ? sumframecnt = 3
: p_framerate <= 20 ? sumframecnt = 4
: p_framerate <= 25 ? sumframecnt = 5 : sumframecnt = 0 : sumframecnt = 0;
: p_framerate <= 25 ? sumframecnt = 5
: p_framerate <= 30 ? sumframecnt = 6 : sumframecnt = 0 : sumframecnt = 0;
m_framecnt++;
m_changed_datafile = p_changed_datafile;