more Frame Statistik

This commit is contained in:
jojo61
2018-10-07 13:31:52 +02:00
parent 6f892bb8d1
commit 98af2bb7bf
5 changed files with 108 additions and 139 deletions

View File

@@ -3403,15 +3403,15 @@ void Resume(void)
** @param[out] dropped dropped frames
** @param[out] count number of decoded frames
*/
void GetStats(int *missed, int *duped, int *dropped, int *counter)
void GetStats(int *missed, int *duped, int *dropped, int *counter, float *frametime)
{
*missed = 0;
*duped = 0;
*dropped = 0;
*counter = 0;
*frametime = 0.0f;
if (MyVideoStream->HwDecoder) {
VideoGetStats(MyVideoStream->HwDecoder, missed, duped, dropped,
counter);
VideoGetStats(MyVideoStream->HwDecoder, missed, duped, dropped, counter, frametime);
}
}