diff options
author | Johns <johns98@gmx.net> | 2011-12-25 11:50:17 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2011-12-25 11:50:17 +0100 |
commit | 10ab0274abdf842dc7f34e970c4a95db78290219 (patch) | |
tree | 894b08bee0822f60025c5b641da3fe932829fe61 /video.c | |
parent | 83413c1adfdd895ffe65087c8270576b3ba4900e (diff) | |
download | vdr-plugin-softhddevice-10ab0274abdf842dc7f34e970c4a95db78290219.tar.gz vdr-plugin-softhddevice-10ab0274abdf842dc7f34e970c4a95db78290219.tar.bz2 |
Show time used for VdpDecoderRender.
Diffstat (limited to 'video.c')
-rw-r--r-- | video.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -5819,16 +5819,24 @@ void VideoDrawRenderState(VideoHwDecoder * decoder, #ifdef USE_VDPAU if (VideoVdpauEnabled) { VdpStatus status; + uint32_t start; + uint32_t end; Debug(4, "video/vdpau: decoder render to %#010x\n", vrs->surface); + start = GetMsTicks(); status = VdpauDecoderRender(decoder->Vdpau.VideoDecoder, vrs->surface, (VdpPictureInfo const *)&vrs->info, vrs->bitstream_buffers_used, vrs->bitstream_buffers); + end = GetMsTicks(); if (status != VDP_STATUS_OK) { Error(_("video/vdpau: decoder rendering failed: %s\n"), VdpauGetErrorString(status)); } + if (start - end > 35) { + Debug(3, "video/vdpau: decoder render too slow %u ms\n", + start - end); + } return; } #endif |