mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Show time used for VdpDecoderRender.
This commit is contained in:
parent
83413c1adf
commit
10ab0274ab
8
video.c
8
video.c
@ -5819,16 +5819,24 @@ void VideoDrawRenderState(VideoHwDecoder * decoder,
|
|||||||
#ifdef USE_VDPAU
|
#ifdef USE_VDPAU
|
||||||
if (VideoVdpauEnabled) {
|
if (VideoVdpauEnabled) {
|
||||||
VdpStatus status;
|
VdpStatus status;
|
||||||
|
uint32_t start;
|
||||||
|
uint32_t end;
|
||||||
|
|
||||||
Debug(4, "video/vdpau: decoder render to %#010x\n", vrs->surface);
|
Debug(4, "video/vdpau: decoder render to %#010x\n", vrs->surface);
|
||||||
|
start = GetMsTicks();
|
||||||
status =
|
status =
|
||||||
VdpauDecoderRender(decoder->Vdpau.VideoDecoder, vrs->surface,
|
VdpauDecoderRender(decoder->Vdpau.VideoDecoder, vrs->surface,
|
||||||
(VdpPictureInfo const *)&vrs->info, vrs->bitstream_buffers_used,
|
(VdpPictureInfo const *)&vrs->info, vrs->bitstream_buffers_used,
|
||||||
vrs->bitstream_buffers);
|
vrs->bitstream_buffers);
|
||||||
|
end = GetMsTicks();
|
||||||
if (status != VDP_STATUS_OK) {
|
if (status != VDP_STATUS_OK) {
|
||||||
Error(_("video/vdpau: decoder rendering failed: %s\n"),
|
Error(_("video/vdpau: decoder rendering failed: %s\n"),
|
||||||
VdpauGetErrorString(status));
|
VdpauGetErrorString(status));
|
||||||
}
|
}
|
||||||
|
if (start - end > 35) {
|
||||||
|
Debug(3, "video/vdpau: decoder render too slow %u ms\n",
|
||||||
|
start - end);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user