Ignore:
Timestamp:
Jun 25, 2008 9:16:46 PM (13 years ago)
Author:
bennylp
Message:

Optimize the number of characters written to SDP by ICE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/config.h

    r1988 r2054  
    245245 
    246246/** 
     247 * The number of bits to represent component IDs. This will affect 
     248 * the maximum number of components (PJ_ICE_MAX_COMP) value. 
     249 */ 
     250#ifndef PJ_ICE_COMP_BITS 
     251#   define PJ_ICE_COMP_BITS                         3 
     252#endif 
     253 
     254 
     255/** 
    247256 * Maximum number of ICE components. 
    248  * 
    249  * Default: 8 
    250  */ 
    251 #ifndef PJ_ICE_MAX_COMP 
    252 #   define PJ_ICE_MAX_COMP                          8 
     257 */ 
     258#define PJ_ICE_MAX_COMP             (2<<PJ_ICE_COMP_BITS) 
     259 
     260 
     261/** 
     262 * The number of bits to represent candidate type preference. 
     263 */ 
     264#ifndef PJ_ICE_CAND_TYPE_PREF_BITS 
     265#   define PJ_ICE_CAND_TYPE_PREF_BITS               2 
     266#endif 
     267 
     268 
     269/** 
     270 * The number of bits to represent ICE candidate's local preference. The 
     271 * local preference is used to specify preference among candidates with 
     272 * the same type, and ICE draft suggests 65535 as the default local  
     273 * preference, which means we need 16 bits to represent the value. But  
     274 * since we don't have the facility to specify local preference, we'll 
     275 * just disable this feature and let the preference sorted by the  
     276 * type only. 
     277 * 
     278 * Default: 0 
     279 */ 
     280#ifndef PJ_ICE_LOCAL_PREF_BITS 
     281#   define PJ_ICE_LOCAL_PREF_BITS                   0 
    253282#endif 
    254283 
Note: See TracChangeset for help on using the changeset viewer.