summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-14 11:53:42 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-14 11:53:42 +0100
commit1ba905c0318115f75ad3c2c38ee38fe0be42158f (patch)
treeade5d9caa7e90dd31fc2c5755cc13e227a231ad8
parent12c0db9091a9cf727160850309b82eee4d61f540 (diff)
ffdec: add some PERFORMANCE logging
-rw-r--r--ext/ffmpeg/gstffmpegdec.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c
index 4f65e9c..75a8386 100644
--- a/ext/ffmpeg/gstffmpegdec.c
+++ b/ext/ffmpeg/gstffmpegdec.c
@@ -39,6 +39,8 @@
#include "gstffmpegcodecmap.h"
#include "gstffmpegutils.h"
+GST_DEBUG_CATEGORY_EXTERN (GST_CAT_PERFORMANCE);
+
typedef struct _GstFFMpegDec GstFFMpegDec;
#define MAX_TS_MASK 0xff
@@ -1741,8 +1743,8 @@ get_output_buffer (GstFFMpegDec * ffmpegdec, GstBuffer ** outbuf)
src = (AVPicture *) ffmpegdec->picture;
dest = (AVPicture *) & pic;
- GST_LOG_OBJECT (ffmpegdec, "copy picture to output buffer %dx%d", width,
- height);
+ GST_CAT_LOG_OBJECT (GST_CAT_PERFORMANCE, ffmpegdec,
+ "copy picture to output buffer %dx%d", width, height);
av_picture_copy (dest, src, ffmpegdec->context->pix_fmt, width, height);
gst_video_frame_unmap (&frame);
@@ -2853,6 +2855,8 @@ gst_ffmpegdec_chain (GstPad * pad, GstObject * parent, GstBuffer * inbuf)
GST_LOG_OBJECT (ffmpegdec, "resized padding buffer to %d",
ffmpegdec->padded_size);
}
+ GST_CAT_LOG_OBJECT (GST_CAT_PERFORMANCE, ffmpegdec,
+ "Copy input to add padding");
memcpy (ffmpegdec->padded, bdata, bsize);
memset (ffmpegdec->padded + bsize, 0, FF_INPUT_BUFFER_PADDING_SIZE);