Ignore:
Timestamp:
Jul 19, 2011 3:42:28 AM (13 years ago)
Author:
nanang
Message:

Re #1326: Initial code integration from branch 2.0-dev to trunk as "2.0-pre-alpha-svn".

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

  • pjproject/trunk/pjmedia/include/pjmedia/stream.h

    r3553 r3664  
    3333#include <pjmedia/rtcp.h> 
    3434#include <pjmedia/transport.h> 
     35#include <pjmedia/vid_codec.h> 
    3536#include <pj/sock.h> 
    3637 
     
    8889 * its own RTP/RTCP socket pair. 
    8990 */ 
    90 struct pjmedia_stream_info 
     91typedef struct pjmedia_stream_info 
    9192{ 
    9293    pjmedia_type        type;       /**< Media type (audio, video)          */ 
     
    134135                                         is enabled?                        */ 
    135136#endif 
    136 }; 
    137  
    138  
    139 /** 
    140  * @see pjmedia_stream_info. 
    141  */ 
    142 typedef struct pjmedia_stream_info pjmedia_stream_info; 
    143  
     137} pjmedia_stream_info; 
     138 
     139 
     140/** 
     141 * This function will initialize the stream info based on information 
     142 * in both SDP session descriptors for the specified stream index.  
     143 * The remaining information will be taken from default codec parameters.  
     144 * If socket info array is specified, the socket will be copied to the  
     145 * session info as well. 
     146 * 
     147 * @param si            Stream info structure to be initialized. 
     148 * @param pool          Pool to allocate memory. 
     149 * @param endpt         PJMEDIA endpoint instance. 
     150 * @param local         Local SDP session descriptor. 
     151 * @param remote        Remote SDP session descriptor. 
     152 * @param stream_idx    Media stream index in the session descriptor. 
     153 * 
     154 * @return              PJ_SUCCESS if stream info is successfully initialized. 
     155 */ 
     156PJ_DECL(pj_status_t) 
     157pjmedia_stream_info_from_sdp( pjmedia_stream_info *si, 
     158                              pj_pool_t *pool, 
     159                              pjmedia_endpt *endpt, 
     160                              const pjmedia_sdp_session *local, 
     161                              const pjmedia_sdp_session *remote, 
     162                              unsigned stream_idx); 
    144163 
    145164 
     
    232251 
    233252/** 
     253 * Get the stream info. 
     254 * 
     255 * @param stream        The media stream. 
     256 * @param info          Stream info. 
     257 * 
     258 * @return              PJ_SUCCESS on success. 
     259 */ 
     260PJ_DECL(pj_status_t) pjmedia_stream_get_info( const pjmedia_stream *stream, 
     261                                              pjmedia_stream_info *info); 
     262 
     263/** 
    234264 * Get the stream statistics. See also 
    235265 * #pjmedia_stream_get_stat_jbuf() 
     
    372402                                 void *user_data); 
    373403 
     404 
    374405/** 
    375406 * @} 
Note: See TracChangeset for help on using the changeset viewer.