Ignore:
Timestamp:
Mar 2, 2011 8:37:31 AM (13 years ago)
Author:
nanang
Message:

Re #1182:

  • Added remote frame-rate detection in to video stream.
  • Fixed bitrate settings in ffmpeg codec.
  • Fixed SDL dev to update internal SDL info when format changed.
  • Minor fixes/updates, e.g:
    • added cleanup steps, fixed logs, etc, in sample app simpleua.c and vid_streamutil.c
    • fixed/added docs of the new APIs in the jitter buffer.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/jbuf.h

    r3420 r3435  
    327327 
    328328 
     329/** 
     330 * Get a frame from the jitter buffer. The jitter buffer will return the 
     331 * oldest frame from it's buffer, when it is available. 
     332 * 
     333 * @param jb            The jitter buffer. 
     334 * @param frame         Buffer to receive the payload from the jitter buffer. 
     335 *                      @see pjmedia_jbuf_get_frame().     
     336 * @param size          Pointer to receive frame size. 
     337 * @param p_frm_type    Pointer to receive frame type. 
     338 *                      @see pjmedia_jbuf_get_frame().     
     339 * @param bit_info      Bit precise info of the frame, e.g: a frame may not  
     340 *                      exactly start and end at the octet boundary, so this 
     341 *                      field may be used for specifying start & end bit offset. 
     342 * @param ts            Frame timestamp. 
     343 * @param seq           Frame sequence number. 
     344 */ 
    329345PJ_DECL(void) pjmedia_jbuf_get_frame3(pjmedia_jbuf *jb,  
    330346                                      void *frame,  
     
    332348                                      char *p_frm_type, 
    333349                                      pj_uint32_t *bit_info, 
    334                                       pj_uint32_t *ts); 
    335  
     350                                      pj_uint32_t *ts, 
     351                                      int *seq); 
     352 
     353 
     354/** 
     355 * Peek a frame from the jitter buffer. The jitter buffer state will not be 
     356 * modified. 
     357 * 
     358 * @param jb            The jitter buffer. 
     359 * @param offset        Offset from the oldest frame to be peeked. 
     360 * @param frame         Buffer to receive the payload from the jitter buffer. 
     361 *                      @see pjmedia_jbuf_get_frame().     
     362 * @param size          Pointer to receive frame size. 
     363 * @param p_frm_type    Pointer to receive frame type. 
     364 *                      @see pjmedia_jbuf_get_frame().     
     365 * @param bit_info      Bit precise info of the frame, e.g: a frame may not  
     366 *                      exactly start and end at the octet boundary, so this 
     367 *                      field may be used for specifying start & end bit offset. 
     368 * @param ts            Frame timestamp. 
     369 * @param seq           Frame sequence number. 
     370 */ 
    336371PJ_DECL(void) pjmedia_jbuf_peek_frame(pjmedia_jbuf *jb, 
    337                                       unsigned idx, 
     372                                      unsigned offset, 
    338373                                      const void **frame,  
    339374                                      pj_size_t *size,  
    340375                                      char *p_frm_type, 
    341376                                      pj_uint32_t *bit_info, 
    342                                       pj_uint32_t *ts); 
    343  
     377                                      pj_uint32_t *ts, 
     378                                      int *seq); 
     379 
     380 
     381/** 
     382 * Remove frames from the jitter buffer. 
     383 * 
     384 * @param jb            The jitter buffer. 
     385 * @param frame_cnt     Number of frames to be removed. 
     386 * 
     387 * @return              The number of frame successfully removed. 
     388 */ 
    344389PJ_DECL(unsigned) pjmedia_jbuf_remove_frame(pjmedia_jbuf *jb,  
    345390                                            unsigned frame_cnt); 
Note: See TracChangeset for help on using the changeset viewer.