Ignore:
Timestamp:
Feb 28, 2011 6:59:47 PM (13 years ago)
Author:
nanang
Message:

Re #1182:

  • Renamed vstreamutil.c to vid_steamutil.c just for filename format consistency reason.
  • Updated sample app simpleua.c and vid_streamutil.c to sync with updated API, e.g: strip session usage, two media ports exported video streams for each dir.
  • Added vid_streamutil.c capability to be able to stream video file (involving transcoding when video codec used in the file different to the video stream codec), also updated AVI player and ffmpeg codecs to be able to read and decode XVID/MPEG4 codec.
  • Fixed bug wrong media type check in stream.c and vid_stream.c in creating stream info from SDP.
  • Minor update: docs, logs, app samples makefiles.
File:
1 edited

Legend:

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

    r3420 r3425  
    8989                                         will be calculated from RTP.       */ 
    9090    unsigned            tx_pt;      /**< Outgoing codec paylaod type.       */ 
     91    unsigned            rx_pt;      /**< Incoming codec paylaod type.       */ 
    9192    pj_uint32_t         ssrc;       /**< RTP SSRC.                          */ 
    9293    pj_uint32_t         rtp_ts;     /**< Initial RTP timestamp.             */ 
     
    221222 
    222223/** 
     224 * Get the stream statistics. See also #pjmedia_stream_get_stat_jbuf() 
     225 * 
     226 * @param stream        The video stream. 
     227 * @param stat          Media stream statistics. 
     228 * 
     229 * @return              PJ_SUCCESS on success. 
     230 */ 
     231PJ_DECL(pj_status_t) pjmedia_vid_stream_get_stat( 
     232                                            const pjmedia_vid_stream *stream, 
     233                                            pjmedia_rtcp_stat *stat); 
     234 
     235/** 
     236 * Reset the video stream statistics. 
     237 * 
     238 * @param stream        The video stream. 
     239 * 
     240 * @return              PJ_SUCCESS on success. 
     241 */ 
     242PJ_DECL(pj_status_t) pjmedia_vid_stream_reset_stat(pjmedia_vid_stream *stream); 
     243 
     244 
     245/** 
     246 * Get current jitter buffer state. See also #pjmedia_stream_get_stat() 
     247 * 
     248 * @param stream        The video stream. 
     249 * @param state         Jitter buffer state. 
     250 * 
     251 * @return              PJ_SUCCESS on success. 
     252 */ 
     253PJ_DECL(pj_status_t) pjmedia_vid_stream_get_stat_jbuf( 
     254                                            const pjmedia_vid_stream *stream, 
     255                                            pjmedia_jb_state *state); 
     256 
     257 
     258/** 
     259 * Get the stream info. 
     260 * 
     261 * @param stream        The video stream. 
     262 * @param info          Video stream info. 
     263 * 
     264 * @return              PJ_SUCCESS on success. 
     265 */ 
     266PJ_DECL(pj_status_t) pjmedia_vid_stream_get_info( 
     267                                            const pjmedia_vid_stream *stream, 
     268                                            pjmedia_vid_stream_info *info); 
     269 
     270 
     271/** 
    223272 * Start the video stream. This will start the appropriate channels 
    224273 * in the video stream, depending on the video direction that was set 
     
    233282 
    234283/** 
    235  * Get the stream statistics. See also #pjmedia_stream_get_stat_jbuf() 
    236  * 
    237  * @param stream        The video stream. 
    238  * @param stat          Media stream statistics. 
    239  * 
    240  * @return              PJ_SUCCESS on success. 
    241  */ 
    242 PJ_DECL(pj_status_t) pjmedia_vid_stream_get_stat( 
    243                                             const pjmedia_vid_stream *stream, 
    244                                             pjmedia_rtcp_stat *stat); 
    245  
    246 /** 
    247  * Reset the video stream statistics. 
    248  * 
    249  * @param stream        The video stream. 
    250  * 
    251  * @return              PJ_SUCCESS on success. 
    252  */ 
    253 PJ_DECL(pj_status_t) pjmedia_vid_stream_reset_stat(pjmedia_vid_stream *stream); 
    254  
    255  
    256 /** 
    257  * Get current jitter buffer state. See also #pjmedia_stream_get_stat() 
    258  * 
    259  * @param stream        The video stream. 
    260  * @param state         Jitter buffer state. 
    261  * 
    262  * @return              PJ_SUCCESS on success. 
    263  */ 
    264 PJ_DECL(pj_status_t) pjmedia_vid_stream_get_stat_jbuf( 
    265                                             const pjmedia_vid_stream *stream, 
    266                                             pjmedia_jb_state *state); 
    267  
    268  
    269 PJ_DECL(pj_status_t) pjmedia_vid_stream_get_param( 
    270                                             const pjmedia_vid_stream *stream, 
    271                                             pjmedia_rtcp_stat *stat); 
    272  
    273 /** 
    274284 * Pause the individual channel in the stream. 
    275285 * 
Note: See TracChangeset for help on using the changeset viewer.