/*==================================================================================== EVS Codec 3GPP TS26.442 Jun 30, 2015. Version CR 26.442-0010 ====================================================================================*/ /** \file jbm_jb4_jmf.h jitter measure fifo - a fifo used for windowed measure of network status */ #ifndef JBM_JB4_JMF_H #define JBM_JB4_JMF_H JBM_JB4_JMF_H #include "typedef.h" /** handle for jitter measure fifo - a fifo used for windowed measure of network status */ typedef struct JB4_JMF *JB4_JMF_HANDLE; /**@name functions to manage the fifo */ /**@{ */ Word16 JB4_JMF_Create( JB4_JMF_HANDLE *ph ); void JB4_JMF_Destroy( JB4_JMF_HANDLE *ph ); /** function to set the window size of the fifo and the fraction which will be considered */ /** @param timeScale scale of system time and RTP time stamps (designed and tested up to 500 pkts) * @param windowSize the window size of the fifo in number of packets (designed and tested up to 10000ms (500*20ms)) * @param windowDuration the window size of the fifo as time in sysTimeScale * @param consideredFraction the considered fraction in 1/1000 units, e.g. 900 ignores 10% of the highest samples * @return 0 on success */ Word16 JB4_JMF_Init( JB4_JMF_HANDLE h, Word16 timeScale, Word16 windowSize, Word16 windowDuration, Word16 consideredFraction ); /**@} */ /**@name functions to push packets and get the current jitter rate */ /**@{ */ /** function to calculate jitter for the current packet */ Word16 JB4_JMF_PushPacket( JB4_JMF_HANDLE h, Word32 sysTime, Word32 rtpTimeStamp ); /** function to get the current jitter */ Word16 JB4_JMF_Jitter( const JB4_JMF_HANDLE h, Word32 *jitter ); /** function to get the minimum offset between received time and time stamp of all entries in the fifo */ /*! This value is the offset of the fastest transmitted packet of all packets currently * contained in the fifo. * @param[out] offset the minimum offset in microseconds */ Word16 JB4_JMF_MinOffset( const JB4_JMF_HANDLE h, Word32 *offset ); /**@} */ #endif /* JBM_JB4_JMF_H */