Ignore:
Timestamp:
Apr 28, 2008 6:05:49 PM (16 years ago)
Author:
bennylp
Message:

Ticket #513: Support for RTCP XR (initial patch)

File:
1 edited

Legend:

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

    r1444 r1942  
    2626 
    2727#include <pjmedia/types.h> 
     28#include <pjmedia/rtcp_xr.h> 
    2829#include <pjmedia/rtp.h> 
    2930 
     
    247248#endif 
    248249 
    249  
    250250/** 
    251251 * RTCP session is used to monitor the RTP session of one endpoint. There 
     
    255255{ 
    256256    char                   *name;       /**< Name identification.           */ 
    257     pjmedia_rtcp_sr_pkt     rtcp_sr_pkt;/**< Cached RTCP packet.            */ 
     257    pjmedia_rtcp_sr_pkt     rtcp_sr_pkt;/**< Cached RTCP SR packet.         */ 
    258258    pjmedia_rtcp_rr_pkt     rtcp_rr_pkt;/**< Cached RTCP RR packet.         */ 
    259259     
     
    282282     */ 
    283283    PJMEDIA_AVG_JITTER_TYPE avg_jitter; /**< Average RX jitter.             */ 
     284 
     285#if defined(PJMEDIA_HAS_RTCP_XR) && (PJMEDIA_HAS_RTCP_XR != 0) 
     286    /** 
     287     * Specify whether RTCP XR processing is enabled on this session. 
     288     */ 
     289    pj_bool_t               xr_enabled; 
     290 
     291    /** 
     292     * RTCP XR session, only valid if RTCP XR processing is enabled 
     293     * on this session. 
     294     */ 
     295    pjmedia_rtcp_xr_session xr_session; 
     296#endif 
    284297}; 
    285298 
     
    343356 
    344357/** 
     358 * Call this function everytime an RTP packet is received to let the RTCP 
     359 * session do its internal calculations. 
     360 * 
     361 * @param session   The session. 
     362 * @param seq       The RTP packet sequence number, in host byte order. 
     363 * @param ts        The RTP packet timestamp, in host byte order. 
     364 * @param payload   Size of the payload. 
     365 * @param discarded Flag to specify whether the packet is discarded. 
     366 */ 
     367PJ_DECL(void) pjmedia_rtcp_rx_rtp2(pjmedia_rtcp_session *session,  
     368                                   unsigned seq,  
     369                                   unsigned ts, 
     370                                   unsigned payload, 
     371                                   pj_bool_t discarded); 
     372 
     373 
     374/** 
    345375 * Call this function everytime an RTP packet is sent to let the RTCP session 
    346376 * do its internal calculations. 
     
    386416 
    387417/** 
     418 * Call this function if RTCP XR needs to be enabled/disabled in the  
     419 * RTCP session. 
     420 * 
     421 * @param session   The RTCP session. 
     422 * @param enable    Enable/disable RTCP XR. 
     423 * 
     424 * @return          PJ_SUCCESS on success. 
     425 */ 
     426PJ_DECL(pj_status_t) pjmedia_rtcp_enable_xr( pjmedia_rtcp_session *session,  
     427                                             pj_bool_t enable); 
     428 
     429 
     430/** 
    388431 * @} 
    389432 */ 
Note: See TracChangeset for help on using the changeset viewer.