From 2ad7e8f217ccedd74f3a0755d148661284076fcc Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 20 Mar 2012 13:31:24 +0100 Subject: [PATCH] theoradec: add performance debug --- ext/theora/gsttheoradec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index 89810c0..8a4279f 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -49,6 +49,7 @@ #define GST_CAT_DEFAULT theoradec_debug GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT); +GST_DEBUG_CATEGORY_EXTERN (GST_CAT_PERFORMANCE); #define THEORA_DEF_TELEMETRY_MV 0 #define THEORA_DEF_TELEMETRY_MBMODE 0 @@ -1166,6 +1167,10 @@ theora_handle_image (GstTheoraDec * dec, th_ycbcr_buffer buf, GstBuffer ** out) } } + /* if only libtheora would allow us to give it a destination frame */ + GST_CAT_TRACE_OBJECT (GST_CAT_PERFORMANCE, dec, + "doing unavoidable video frame copy"); + for (comp = 0; comp < 3; comp++) { width = GST_VIDEO_FORMAT_INFO_SCALE_WIDTH (frame.info.finfo, comp, pic_width); -- 2.7.4