mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
6bd90dc0cc
The textoverlay element will rerender the text string whenever overlay sets the 'need_render' flag to TRUE. Previously, we lazily set the flag to TRUE every time the time string was requested. Now, we save a copy of the previously given string, and only set 'need_render' to TRUE if the string has changed. In my tests with a 30fps video stream, and a time string including a seconds field, this change reduced the CPU usage of the clockoverlay element from 60% to 5%. Fixes bug #627780. |
||
---|---|---|
.. | ||
gstclockoverlay.c | ||
gstclockoverlay.h | ||
gsttextoverlay.c | ||
gsttextoverlay.h | ||
gsttextrender.c | ||
gsttextrender.h | ||
gsttimeoverlay.c | ||
gsttimeoverlay.h | ||
Makefile.am |