Ignore:
Timestamp:
May 17, 2008 2:54:18 PM (16 years ago)
Author:
nanang
Message:

More on ticket #535: updated files using and related to math.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/rtcp_xr.h

    r1943 r1961  
    2626 
    2727#include <pjmedia/types.h> 
     28#include <pj/math.h> 
    2829 
    2930 
     
    247248        unsigned            lost;       /**< Number of packets lost         */ 
    248249        unsigned            dup;        /**< Number of duplicated packets   */ 
    249          
    250         struct { 
    251             unsigned        min;        /**< Minimum jitter (in usec)       */ 
    252             unsigned        max;        /**< Maximum jitter (in usec)       */ 
    253             unsigned        dev;        /**< Jitter deviation (in usec)     */ 
    254             unsigned        mean;       /**< Average jitter (in usec)       */ 
    255             unsigned        count;      /**< Update count                   */ 
    256         } jitter;                       /**< Jitter history.                */ 
    257  
    258         struct { 
    259             unsigned        min;        /**< Minimum ToH                    */ 
    260             unsigned        max;        /**< Maximum ToH                    */ 
    261             unsigned        dev;        /**< ToH deviation                  */ 
    262             unsigned        mean;       /**< Average ToH                    */ 
    263             unsigned        count;      /**< Update count                   */ 
    264         } toh;                          /**< TTL of hop limit history.      */ 
     250        pj_math_stat        jitter;     /**< Jitter statistics (in usec)    */ 
     251        pj_math_stat        toh;        /**< TTL of hop limit statistics.   */ 
    265252    } stat_sum; 
    266253 
     
    301288typedef struct pjmedia_rtcp_xr_stat 
    302289{ 
    303     pjmedia_rtcp_xr_stream_stat  rx; 
    304     pjmedia_rtcp_xr_stream_stat  tx; 
    305  
    306     /* RTT calculated from receiver side */ 
    307     struct { 
    308         unsigned    min;            /**< Minimum round-trip delay (in usec) */ 
    309         unsigned    avg;            /**< Average round-trip delay (in usec) */ 
    310         unsigned    max;            /**< Maximum round-trip delay (in usec) */ 
    311         unsigned    last;           /**< Last round-trip delay (in usec)    */ 
    312         unsigned    update_cnt;     /**< Nb of times rtt is updated.        */ 
    313     } rtt;                          /**< Round trip delay history.          */ 
    314  
     290    pjmedia_rtcp_xr_stream_stat  rx;  /**< Decoding direction statistics.   */ 
     291    pjmedia_rtcp_xr_stream_stat  tx;  /**< Encoding direction statistics.   */ 
     292    pj_math_stat                 rtt; /**< Round-trip delay stat (in usec)  
     293                                           the value is calculated from  
     294                                           receiver side.                   */ 
    315295} pjmedia_rtcp_xr_stat; 
    316296 
Note: See TracChangeset for help on using the changeset viewer.