Ignore:
Timestamp:
May 13, 2006 10:46:23 PM (18 years ago)
Author:
bennylp
Message:

Another major modifications in PJMEDIA:

  • handle multiple frames in one packet
  • split stream creation into two steps to allow customization
  • PLC framework and implementation with G.711 and speex
  • stream returns NO_FRAME correctly.
  • added ptime argument in pjsua
File:
1 edited

Legend:

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

    r411 r438  
    115115 
    116116/** 
    117  * Typedef for media stream information. 
     117 * This is a general purpose function set PCM samples to zero. 
     118 * Since this function is needed by many parts of the library, it is important 
     119 * that the library should select the best performance for this. 
     120 * 
     121 * @param samples       The 16bit PCM samples. 
     122 * @param count         Number of samples. 
    118123 */ 
    119 typedef struct pjmedia_stream_info pjmedia_stream_info; 
     124PJ_INLINE(void) pjmedia_zero_samples(pj_int16_t *samples, unsigned count) 
     125{ 
     126    unsigned i; 
     127    for (i=0; i<count; ++i) 
     128        samples[i] = 0; 
     129} 
    120130 
    121 /** 
    122  * Typedef for media stream statistic. 
    123  */ 
    124 typedef struct pjmedia_stream_stat pjmedia_stream_stat; 
    125  
    126 /** 
    127  * Typedef for media stream. 
    128  */ 
    129 typedef struct pjmedia_stream pjmedia_stream; 
    130  
    131 /** 
    132  * Individual channel statistic. 
    133  */ 
    134 typedef struct pjmedia_channel_stat pjmedia_channel_stat; 
    135  
    136 /**  
    137  * Opaque declaration of media session.  
    138  */ 
    139 typedef struct pjmedia_session pjmedia_session; 
    140  
    141 /** 
    142  * Media session info. 
    143  */ 
    144 typedef struct pjmedia_session_info pjmedia_session_info; 
    145  
    146 /** 
    147  * Types of frame returned from jitter buffer (jbuf.h). 
    148  */ 
    149 typedef enum pjmedia_jb_frame_type pjmedia_jb_frame_type; 
    150  
    151 /** 
    152  * Opaque declaration for jitter buffer. 
    153  */ 
    154 typedef struct pjmedia_jbuf pjmedia_jbuf; 
    155131 
    156132#endif  /* __PJMEDIA_TYPES_H__ */ 
Note: See TracChangeset for help on using the changeset viewer.