GNOME Bugzilla – Bug 775701
Improve opencv motion detection element
Last modified: 2018-11-03 14:01:12 UTC
This series of patches attempts to improve the performance of the plugin and also a few more cosmetic improvements along the way. There are still opportunities for improving the plugin further but hopefully this is a step in the right direction.
Created attachment 341464 [details] [review] 0001-ext-opencv-MotionCells.h-Simplify-getIsNonZero.patch
Created attachment 341465 [details] [review] 0002-ext-opencv-MotionCells.cpp-Use-int-for-counts-in-cal.patch
Created attachment 341466 [details] [review] 0003-ext-opencv-MotionCells.cpp-Use-stack-rather-than-hea.patch
Created attachment 341467 [details] [review] 0004-ext-opencv-MotionCells.cpp-Avoid-a-clone-of-the-curr.patch
Created attachment 341468 [details] [review] 0005-ext-opencv-MotionCells.cpp-Avoid-a-clone-of-the-diff.patch
Created attachment 341469 [details] [review] 0006-ext-opencv-MotionCells.cpp-Simplify-motion-percent-c.patch
Created attachment 341470 [details] [review] 0007-ext-opencv-MotionCells.cpp-Avoid-downscaling-previou.patch
Created attachment 341471 [details] [review] 0008-ext-opencv-MotionCells.cpp-Remove-unused-includes.patch
Created attachment 341472 [details] [review] 0009-ext-opencv-MotionCells.cpp-Remove-m_-prefix-from-loc.patch
Created attachment 341473 [details] [review] 0010-ext-opencv-MotionCells.h-Remove-dead-code.patch
In my tests the CPU time is roughly halved after applying this series.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/489.