Ignore:
Timestamp:
Aug 25, 2008 1:58:25 PM (16 years ago)
Author:
nanang
Message:

Ticket #599:

  • Added "dec_fmtp" and "enc_fmtp" fields to pjmedia_codec_param.setting.
  • Codec factory puts its default parameters in "dec_fmtp" field.
  • pjmedia_stream_info_from_sdp() puts the "fmtp" attribute in SDP to pjmedia_codec_param.
  • Special treatment for fmtp "bitrate" parameter (of G722.1) during SDP negotiation
  • Added maxptime field in stream_info.
  • Replaced iLBC's fmtp "mode" implementation to use general fmtp mechanism.
  • Added some test scripts for G722.1 bitrate negotiation.
File:
1 edited

Legend:

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

    r2218 r2236  
    239239} pjmedia_codec_info; 
    240240 
     241#define PJMEDIA_CODEC_MAX_FMTP_CNT  8 
     242 
     243/**  
     244 * Structure of codec specific parameters which contains name=value pairs. 
     245 * The codec specific parameters are to be used with SDP according to  
     246 * the standards (e.g: RFC 3555). 
     247 */ 
     248typedef struct pjmedia_codec_fmtp 
     249{ 
     250    pj_uint8_t      cnt; 
     251    struct param { 
     252        pj_str_t    name; 
     253        pj_str_t    val; 
     254    } param [PJMEDIA_CODEC_MAX_FMTP_CNT]; 
     255} pjmedia_codec_fmtp; 
    241256 
    242257/**  
     
    278293        unsigned    plc:1;          /**< Packet loss concealment        */ 
    279294        unsigned    reserved:1;     /**< Reserved, must be zero.        */ 
    280         pj_uint8_t  enc_fmtp_mode;  /**< Mode param in fmtp (def:0)     */ 
    281         pj_uint8_t  dec_fmtp_mode;  /**< Mode param in fmtp (def:0)     */ 
     295        pjmedia_codec_fmtp enc_fmtp;/**< Encoder's fmtp params.         */ 
     296        pjmedia_codec_fmtp dec_fmtp;/**< Decoder's fmtp params.         */ 
    282297    } setting; 
    283298} pjmedia_codec_param; 
Note: See TracChangeset for help on using the changeset viewer.