Ignore:
Timestamp:
Apr 6, 2011 1:55:01 PM (13 years ago)
Author:
nanang
Message:

Re #1186:

  • Added custom negotiation callback mechanism in SDP negotiator, mainly for specific formats that require SDP fmtp negotiation.
  • Modified video codec ID string to use encoding name+payload type (was encoding name+clock rate), also added encoding description in video codec info, so duplicated codecs (e.g: multiple H264 configurations) can be differentiated.
  • Few enhancements for H264 in ffmpeg wrapper (e.g: added proper profile-id & packetization-mode setup).
File:
1 edited

Legend:

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

    r3493 r3500  
    2828 
    2929#include <pjmedia/vid_codec.h> 
    30  
     30#include <pjmedia/sdp_neg.h> 
    3131 
    3232PJ_BEGIN_DECL 
     
    108108 * @return              PJ_SUCCESS on success. 
    109109 */ 
    110 PJ_DECL(pj_status_t) pjmedia_vid_codec_parse_h264_fmtp( 
     110PJ_DECL(pj_status_t) pjmedia_vid_codec_h264_parse_fmtp( 
    111111                                const pjmedia_codec_fmtp *fmtp, 
    112112                                pjmedia_vid_codec_h264_fmtp *h264_fmtp); 
    113113 
    114114 
     115/** 
     116 * Match H.264 format in the SDP media offer and answer. This will compare 
     117 * H.264 identifier parameters in SDP fmtp, i.e: "profile-level-id" and 
     118 * "packetization-mode" fields. For better interoperability, when the option 
     119 * #PJMEDIA_SDP_NEG_FMT_MATCH_ALLOW_MODIFY_ANSWER is set, this function 
     120 * may update the answer so the parameters in the answer match to ones 
     121 * in the offer. 
     122 * 
     123 * @param pool          The memory pool. 
     124 * @param offer         The SDP media offer. 
     125 * @param o_fmt_idx     Index of the H.264 format in the SDP media offer. 
     126 * @param answer        The SDP media answer. 
     127 * @param a_fmt_idx     Index of the H.264 format in the SDP media answer. 
     128 * @param option        The format matching option, see 
     129 *                      #pjmedia_sdp_neg_fmt_match_flag. 
     130 * 
     131 * @return              PJ_SUCCESS when the formats in offer and answer match. 
     132 */ 
     133PJ_DECL(pj_status_t) pjmedia_vid_codec_h264_match_sdp( 
     134                                                pj_pool_t *pool, 
     135                                                pjmedia_sdp_media *offer, 
     136                                                unsigned o_fmt_idx, 
     137                                                pjmedia_sdp_media *answer, 
     138                                                unsigned a_fmt_idx, 
     139                                                unsigned option); 
    115140 
    116141 
Note: See TracChangeset for help on using the changeset viewer.