videolevels: add debugging message with processing time
This commit is contained in:
parent
ad240b0ae3
commit
24b7fa4fc3
@ -513,6 +513,8 @@ gst_videolevels_transform (GstBaseTransform * base, GstBuffer * inbuf,
|
|||||||
gpointer output;
|
gpointer output;
|
||||||
gboolean ret;
|
gboolean ret;
|
||||||
GstClockTimeDiff elapsed;
|
GstClockTimeDiff elapsed;
|
||||||
|
GstClockTime start =
|
||||||
|
gst_clock_get_time (gst_element_get_clock (GST_ELEMENT (base)));
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (videolevels, "Performing non-inplace transform");
|
GST_DEBUG_OBJECT (videolevels, "Performing non-inplace transform");
|
||||||
|
|
||||||
@ -538,6 +540,11 @@ gst_videolevels_transform (GstBaseTransform * base, GstBuffer * inbuf,
|
|||||||
|
|
||||||
ret = gst_videolevels_do_levels (videolevels, input, output);
|
ret = gst_videolevels_do_levels (videolevels, input, output);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (videolevels, "Processing took %" G_GINT64_FORMAT "ms",
|
||||||
|
GST_TIME_AS_MSECONDS (GST_CLOCK_DIFF (start,
|
||||||
|
gst_clock_get_time (gst_element_get_clock (GST_ELEMENT
|
||||||
|
(videolevels))))));
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user