diff options
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/softhddev.c b/softhddev.c index 57858ed..849835e 100644 --- a/softhddev.c +++ b/softhddev.c @@ -2689,3 +2689,22 @@ void Resume(void) pthread_mutex_unlock(&SuspendLockMutex); } + +/* +** Get decoder statistics. +** +** @param[out] missed missed frames +** @param[out] duped duped frames +** @param[out] dropped dropped frames +** @param[out] count number of decoded frames +*/ +void GetStats(int *missed, int *duped, int *dropped, int *counter) +{ + *missed = 0; + *duped = 0; + *dropped = 0; + *counter = 0; + if (MyHwDecoder) { + VideoGetStats(MyHwDecoder, missed, duped, dropped, counter); + } +} |