- Timestamp:
- Mar 2, 2011 8:37:31 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/jbuf.h
r3420 r3435 327 327 328 328 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 */ 329 345 PJ_DECL(void) pjmedia_jbuf_get_frame3(pjmedia_jbuf *jb, 330 346 void *frame, … … 332 348 char *p_frm_type, 333 349 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 */ 336 371 PJ_DECL(void) pjmedia_jbuf_peek_frame(pjmedia_jbuf *jb, 337 unsigned idx,372 unsigned offset, 338 373 const void **frame, 339 374 pj_size_t *size, 340 375 char *p_frm_type, 341 376 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 */ 344 389 PJ_DECL(unsigned) pjmedia_jbuf_remove_frame(pjmedia_jbuf *jb, 345 390 unsigned frame_cnt);
Note: See TracChangeset
for help on using the changeset viewer.