Changeset 5524


Ignore:
Timestamp:
Jan 17, 2017 12:50:09 AM (8 years ago)
Author:
ming
Message:

Re #1945 (misc): move default setting of number of supported video device format to pjmedia-videodev config instead of config_site_sample, since not everybody will use the sample.

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/config_site_sample.h

    r5494 r5524  
    393393    #define PJMEDIA_CODEC_SPEEX_DEFAULT_QUALITY 5 
    394394     
    395     /* Increase number of video device's supported formats */ 
    396     #define PJMEDIA_VID_DEV_INFO_FMT_CNT        128 
    397  
    398395    /* 
    399396     * PJSIP settings. 
  • pjproject/trunk/pjmedia/include/pjmedia-videodev/config.h

    r5315 r5524  
    4646 * supported by a video device. 
    4747 * 
    48  * Default: 64 
     48 * Default: 128 (for Android), 64 (for others) 
    4949 */ 
    5050#ifndef PJMEDIA_VID_DEV_INFO_FMT_CNT 
    51 #   define PJMEDIA_VID_DEV_INFO_FMT_CNT 64 
     51#   if defined(PJ_ANDROID) && PJ_ANDROID != 0 
     52#       define PJMEDIA_VID_DEV_INFO_FMT_CNT 128 
     53#   else 
     54#       define PJMEDIA_VID_DEV_INFO_FMT_CNT 64 
     55#   endif 
    5256#endif 
    5357 
Note: See TracChangeset for help on using the changeset viewer.