Changeset 1942 for pjproject/trunk/pjmedia/include/pjmedia/jbuf.h
- Timestamp:
- Apr 28, 2008 6:05:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/jbuf.h
r1761 r1942 77 77 unsigned max_prefetch; /**< Maximum allowed prefetch, in frms. */ 78 78 unsigned size; /**< Current buffer size, in frames. */ 79 unsigned max_size; /**< Maximum size ever. */ 79 80 }; 80 81 … … 185 186 PJ_DECL(pj_status_t) pjmedia_jbuf_reset(pjmedia_jbuf *jb); 186 187 187 188 188 /** 189 189 * Put a frame to the jitter buffer. If the frame can be accepted (based … … 199 199 * @param size The frame size. 200 200 * @param frame_seq The frame sequence number. 201 *202 * @return PJ_SUCCESS on success.203 201 */ 204 202 PJ_DECL(void) pjmedia_jbuf_put_frame( pjmedia_jbuf *jb, … … 206 204 pj_size_t size, 207 205 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 */ 222 PJ_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); 208 227 209 228 /**
Note: See TracChangeset
for help on using the changeset viewer.