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/jbuf.h

    r1761 r1942  
    7777    unsigned    max_prefetch;       /**< Maximum allowed prefetch, in frms. */ 
    7878    unsigned    size;               /**< Current buffer size, in frames.    */ 
     79    unsigned    max_size;           /**< Maximum size ever.                 */ 
    7980}; 
    8081 
     
    185186PJ_DECL(pj_status_t) pjmedia_jbuf_reset(pjmedia_jbuf *jb); 
    186187 
    187  
    188188/** 
    189189 * Put a frame to the jitter buffer. If the frame can be accepted (based 
     
    199199 * @param size          The frame size. 
    200200 * @param frame_seq     The frame sequence number. 
    201  * 
    202  * @return              PJ_SUCCESS on success. 
    203201 */ 
    204202PJ_DECL(void) pjmedia_jbuf_put_frame( pjmedia_jbuf *jb,  
     
    206204                                      pj_size_t size,  
    207205                                      int frame_seq); 
     206 
     207/** 
     208 * Put a frame to the jitter buffer. If the frame can be accepted (based 
     209 * on the sequence number), the jitter buffer will copy the frame and put 
     210 * it in the appropriate position in the buffer. 
     211 * 
     212 * Application MUST manage it's own synchronization when multiple threads 
     213 * are accessing the jitter buffer at the same time. 
     214 * 
     215 * @param jb            The jitter buffer. 
     216 * @param frame         Pointer to frame buffer to be stored in the jitter 
     217 *                      buffer. 
     218 * @param size          The frame size. 
     219 * @param frame_seq     The frame sequence number. 
     220 * @param discarded     Flag whether the frame is discarded by jitter buffer. 
     221 */ 
     222PJ_DECL(void) pjmedia_jbuf_put_frame2( pjmedia_jbuf *jb,  
     223                                       const void *frame,  
     224                                       pj_size_t size,  
     225                                       int frame_seq, 
     226                                       pj_bool_t *discarded); 
    208227 
    209228/** 
Note: See TracChangeset for help on using the changeset viewer.