Lines Matching refs:overlay
79 gst_clock_overlay_render_time (GstClockOverlay * overlay) in gst_clock_overlay_render_time() argument
108 if (wcsftime (buf, sizeof (buf), (wchar_t *) overlay->wformat, t) == 0) in gst_clock_overlay_render_time()
113 if (strftime (buf, sizeof (buf), overlay->format, t) == 0) in gst_clock_overlay_render_time()
122 gst_clock_overlay_get_text (GstBaseTextOverlay * overlay, in gst_clock_overlay_get_text() argument
126 GstClockOverlay *clock_overlay = GST_CLOCK_OVERLAY (overlay); in gst_clock_overlay_get_text()
128 txt = g_strdup (overlay->default_text); in gst_clock_overlay_get_text()
130 GST_OBJECT_LOCK (overlay); in gst_clock_overlay_get_text()
132 GST_OBJECT_UNLOCK (overlay); in gst_clock_overlay_get_text()
142 overlay->need_render = TRUE; in gst_clock_overlay_get_text()
185 GstClockOverlay *overlay = GST_CLOCK_OVERLAY (object); in gst_clock_overlay_finalize() local
187 g_free (overlay->format); in gst_clock_overlay_finalize()
188 g_free (overlay->text); in gst_clock_overlay_finalize()
189 overlay->format = NULL; in gst_clock_overlay_finalize()
191 g_free (overlay->wformat); in gst_clock_overlay_finalize()
198 gst_clock_overlay_init (GstClockOverlay * overlay) in gst_clock_overlay_init() argument
204 textoverlay = GST_BASE_TEXT_OVERLAY (overlay); in gst_clock_overlay_init()
209 overlay->format = g_strdup (DEFAULT_PROP_TIMEFORMAT); in gst_clock_overlay_init()
212 overlay->wformat = in gst_clock_overlay_init()
236 GstClockOverlay *overlay = GST_CLOCK_OVERLAY (object); in gst_clock_overlay_set_property() local
238 GST_OBJECT_LOCK (overlay); in gst_clock_overlay_set_property()
241 g_free (overlay->format); in gst_clock_overlay_set_property()
242 overlay->format = g_value_dup_string (value); in gst_clock_overlay_set_property()
243 if (!overlay->format) in gst_clock_overlay_set_property()
244 overlay->format = g_strdup (DEFAULT_PROP_TIMEFORMAT); in gst_clock_overlay_set_property()
246 g_free (overlay->wformat); in gst_clock_overlay_set_property()
247 overlay->wformat = in gst_clock_overlay_set_property()
248 g_utf8_to_utf16 (overlay->format, -1, NULL, NULL, NULL); in gst_clock_overlay_set_property()
255 GST_OBJECT_UNLOCK (overlay); in gst_clock_overlay_set_property()
263 GstClockOverlay *overlay = GST_CLOCK_OVERLAY (object); in gst_clock_overlay_get_property() local
265 GST_OBJECT_LOCK (overlay); in gst_clock_overlay_get_property()
268 g_value_set_string (value, overlay->format); in gst_clock_overlay_get_property()
274 GST_OBJECT_UNLOCK (overlay); in gst_clock_overlay_get_property()