mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
ffdec: add some PERFORMANCE logging
This commit is contained in:
parent
12c0db9091
commit
1ba905c031
1 changed files with 6 additions and 2 deletions
|
@ -39,6 +39,8 @@
|
||||||
#include "gstffmpegcodecmap.h"
|
#include "gstffmpegcodecmap.h"
|
||||||
#include "gstffmpegutils.h"
|
#include "gstffmpegutils.h"
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_EXTERN (GST_CAT_PERFORMANCE);
|
||||||
|
|
||||||
typedef struct _GstFFMpegDec GstFFMpegDec;
|
typedef struct _GstFFMpegDec GstFFMpegDec;
|
||||||
|
|
||||||
#define MAX_TS_MASK 0xff
|
#define MAX_TS_MASK 0xff
|
||||||
|
@ -1741,8 +1743,8 @@ get_output_buffer (GstFFMpegDec * ffmpegdec, GstBuffer ** outbuf)
|
||||||
src = (AVPicture *) ffmpegdec->picture;
|
src = (AVPicture *) ffmpegdec->picture;
|
||||||
dest = (AVPicture *) & pic;
|
dest = (AVPicture *) & pic;
|
||||||
|
|
||||||
GST_LOG_OBJECT (ffmpegdec, "copy picture to output buffer %dx%d", width,
|
GST_CAT_LOG_OBJECT (GST_CAT_PERFORMANCE, ffmpegdec,
|
||||||
height);
|
"copy picture to output buffer %dx%d", width, height);
|
||||||
av_picture_copy (dest, src, ffmpegdec->context->pix_fmt, width, height);
|
av_picture_copy (dest, src, ffmpegdec->context->pix_fmt, width, height);
|
||||||
|
|
||||||
gst_video_frame_unmap (&frame);
|
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",
|
GST_LOG_OBJECT (ffmpegdec, "resized padding buffer to %d",
|
||||||
ffmpegdec->padded_size);
|
ffmpegdec->padded_size);
|
||||||
}
|
}
|
||||||
|
GST_CAT_LOG_OBJECT (GST_CAT_PERFORMANCE, ffmpegdec,
|
||||||
|
"Copy input to add padding");
|
||||||
memcpy (ffmpegdec->padded, bdata, bsize);
|
memcpy (ffmpegdec->padded, bdata, bsize);
|
||||||
memset (ffmpegdec->padded + bsize, 0, FF_INPUT_BUFFER_PADDING_SIZE);
|
memset (ffmpegdec->padded + bsize, 0, FF_INPUT_BUFFER_PADDING_SIZE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue