[SDK] Glithes when playback video
Hi. I'm trying to create a plugin, but there is a small problem that manifests itself as follows. Sometimes glitches of this kind appear. It happens every few seconds or right away, and is generally indefinite in nature.

I noticed that they appear very often, if you yourself quickly clear the memory buffer Ctrl + Alt + /. If I pass image from params[0] directly to iterate function and assign there, there's no such thing, but if I add my own function to render function which just copies pixels from params[0] to opencv matrix (cv::Mat) using next loop, then such problems appear. These glitches appear regardless of the multithreading flag or the openmp directives.
Code:


