Ignore:
Timestamp:
Dec 28, 2016 3:40:07 AM (7 years ago)
Author:
nanang
Message:

Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).

Location:
pjproject/branches/projects/uwp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/uwp

  • pjproject/branches/projects/uwp/pjmedia/include/pjmedia/vid_stream.h

    r4043 r5513  
    3232#include <pjmedia/transport.h> 
    3333#include <pjmedia/vid_codec.h> 
     34#include <pjmedia/stream_common.h> 
    3435#include <pj/sock.h> 
    3536 
     
    117118 
    118119} pjmedia_vid_stream_rc_config; 
     120 
     121/** 
     122 * Structure of configuration settings for video stream sending keyframe  
     123 * after it is created. 
     124 */ 
     125typedef struct pjmedia_vid_stream_sk_config 
     126{ 
     127    /** 
     128     * The number of keyframe to be sent after the stream is created. 
     129     * 
     130     * Default: PJMEDIA_VID_STREAM_START_KEYFRAME_CNT 
     131     */ 
     132    unsigned                        count; 
     133 
     134    /** 
     135     * The keyframe sending interval after the stream is created. 
     136     * 
     137     * Default: PJMEDIA_VID_STREAM_START_KEYFRAME_INTERVAL_MSEC 
     138     */ 
     139    unsigned                        interval; 
     140 
     141} pjmedia_vid_stream_sk_config; 
    119142 
    120143 
     
    166189    pjmedia_vid_stream_rc_config rc_cfg; 
    167190                                    /**< Stream send rate control settings. */ 
     191 
     192    pjmedia_vid_stream_sk_config sk_cfg; 
     193                                    /**< Stream send keyframe settings.     */ 
    168194} pjmedia_vid_stream_info; 
    169195 
     
    201227PJ_DECL(void) 
    202228pjmedia_vid_stream_rc_config_default(pjmedia_vid_stream_rc_config *cfg); 
     229 
     230/** 
     231 * Initialize the video stream send keyframe with default settings. 
     232 * 
     233 * @param cfg           Video stream send keyframe structure to be initialized. 
     234 */ 
     235PJ_DECL(void) 
     236pjmedia_vid_stream_sk_config_default(pjmedia_vid_stream_sk_config *cfg); 
    203237 
    204238 
     
    413447                                                pjmedia_vid_stream *stream); 
    414448 
     449/** 
     450 * Get the RTP session information of the video media stream. This function  
     451 * can be useful for app with custom media transport to inject/filter some  
     452 * outgoing/incoming proprietary packets into normal video RTP traffics. 
     453 * This will return the original pointer to the internal states of the stream, 
     454 * and generally it is not advisable for app to modify them. 
     455 *  
     456 * @param stream        The video media stream. 
     457 * 
     458 * @param session_info  The stream session info. 
     459 * 
     460 * @return              PJ_SUCCESS on success. 
     461 */ 
     462PJ_DECL(pj_status_t) 
     463pjmedia_vid_stream_get_rtp_session_info(pjmedia_vid_stream *stream, 
     464                                   pjmedia_stream_rtp_sess_info *session_info); 
     465 
    415466 
    416467/** 
Note: See TracChangeset for help on using the changeset viewer.