mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
gl: sprinkle some debug markers to ease debugging
This commit is contained in:
parent
c486b1b3b0
commit
bf98930546
4 changed files with 17 additions and 0 deletions
|
@ -1781,6 +1781,9 @@ gst_glimage_sink_on_resize (GstGLImageSink * gl_sink, gint width, gint height)
|
|||
gst_event_new_reconfigure ());
|
||||
}
|
||||
|
||||
gst_gl_insert_debug_marker (gl_sink->context, "%s window resize to %ix%i",
|
||||
GST_OBJECT_NAME (gl_sink), width, height);
|
||||
|
||||
/* default reshape */
|
||||
if (!do_reshape) {
|
||||
if (gl_sink->keep_aspect_ratio) {
|
||||
|
@ -1850,6 +1853,8 @@ gst_glimage_sink_on_draw (GstGLImageSink * gl_sink)
|
|||
window->is_drawing = TRUE;
|
||||
|
||||
/* opengl scene */
|
||||
gst_gl_insert_debug_marker (gl_sink->context, "%s element drawing texture %u",
|
||||
GST_OBJECT_NAME (gl_sink), gl_sink->redisplay_texture);
|
||||
GST_TRACE ("redrawing texture:%u", gl_sink->redisplay_texture);
|
||||
|
||||
sync_meta = gst_buffer_get_gl_sync_meta (gl_sink->stored_sync);
|
||||
|
|
|
@ -294,6 +294,9 @@ gst_gl_base_filter_gl_start (GstGLContext * context, gpointer data)
|
|||
GstGLBaseFilter *filter = GST_GL_BASE_FILTER (data);
|
||||
GstGLBaseFilterClass *filter_class = GST_GL_BASE_FILTER_GET_CLASS (filter);
|
||||
|
||||
gst_gl_insert_debug_marker (filter->context,
|
||||
"starting element %s", GST_OBJECT_NAME (filter));
|
||||
|
||||
if (filter_class->gl_start) {
|
||||
filter->priv->gl_result = filter_class->gl_start (filter);
|
||||
} else {
|
||||
|
@ -309,6 +312,9 @@ gst_gl_base_filter_gl_stop (GstGLContext * context, gpointer data)
|
|||
GstGLBaseFilter *filter = GST_GL_BASE_FILTER (data);
|
||||
GstGLBaseFilterClass *filter_class = GST_GL_BASE_FILTER_GET_CLASS (filter);
|
||||
|
||||
gst_gl_insert_debug_marker (filter->context,
|
||||
"stopping element %s", GST_OBJECT_NAME (filter));
|
||||
|
||||
if (filter->priv->gl_started) {
|
||||
if (filter_class->gl_stop)
|
||||
filter_class->gl_stop (filter);
|
||||
|
|
|
@ -1732,6 +1732,10 @@ _do_convert (GstGLContext * context, GstGLColorConvert * convert)
|
|||
else
|
||||
views = 1;
|
||||
|
||||
gst_gl_insert_debug_marker (context, "%s converting from %s to %s",
|
||||
GST_OBJECT_NAME (convert),
|
||||
gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (in_info)),
|
||||
gst_video_format_to_string (GST_VIDEO_INFO_FORMAT (&convert->out_info)));
|
||||
/* Handle all views on input and output one at a time */
|
||||
for (v = 0; res && v < views; v++)
|
||||
res = _do_convert_one_view (context, convert, v);
|
||||
|
|
|
@ -914,6 +914,8 @@ gst_gl_filter_transform (GstBaseTransform * bt, GstBuffer * inbuf,
|
|||
if (in_sync_meta)
|
||||
gst_gl_sync_meta_wait (in_sync_meta, context);
|
||||
|
||||
gst_gl_insert_debug_marker (context,
|
||||
"processing in element %s", GST_OBJECT_NAME (filter));
|
||||
if (filter_class->filter)
|
||||
ret = filter_class->filter (filter, inbuf, outbuf);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue