diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2010-01-20 01:02:37 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2010-01-20 01:02:37 +0000 |
commit | 7ece324274c1012b34fb41dbee67eb5f51924f03 (patch) | |
tree | 63ebd56f92760098fc4f76eb018617db5fb0b5d8 /pjmedia/include | |
parent | d8789cab8ce1fa54b1f02f4ab448fc83f9af2a44 (diff) |
Ticket #969:
- implemented progressive discard algorithm, discard rate is calculated from ratio of effective size to effective burst level.
- updated jbuf to clarify prefetch and burst level distinction, previously they are stored in same var, i.e: prefetch, while the semantic is actually different.
- updated STABLE_HISTORY_LIMIT in jbuf, it is now 20 (was 100), to adjust burst level faster.
- added test case of periodic-spike-burst-case in jbtest.dat for testing the new algorithm.
- updated stream to limit the rate of jbuf empty/lost log messages, it will only log first empty/lost event, then log again once jbuf returning normal frame (also counter of previous empty/lost frames).
- minor updates on jbuf.c: variable names, logs, added burst to jbuf state.
- minor updates on jbuf_test.c: handle comment in test session header, seq jump is now 20 (was 5000).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3065 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r-- | pjmedia/include/pjmedia/jbuf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia/jbuf.h b/pjmedia/include/pjmedia/jbuf.h index cd5e9f13..4f5a12bc 100644 --- a/pjmedia/include/pjmedia/jbuf.h +++ b/pjmedia/include/pjmedia/jbuf.h @@ -76,6 +76,7 @@ struct pjmedia_jb_state unsigned max_prefetch; /**< Maximum allowed prefetch, in frms. */ /* Status */ + unsigned burst; /**< Current burst level, in frames */ unsigned prefetch; /**< Current prefetch value, in frames */ unsigned size; /**< Current buffer size, in frames. */ |