Ignore:
Timestamp:
Jul 19, 2011 3:42:28 AM (13 years ago)
Author:
nanang
Message:

Re #1326: Initial code integration from branch 2.0-dev to trunk as "2.0-pre-alpha-svn".

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r3553 r3664  
    516516 
    517517/** 
     518 * Reserve some space for application extra data, e.g: SRTP auth tag, 
     519 * in RTP payload, so the total payload length will not exceed the MTU. 
     520 */ 
     521#ifndef PJMEDIA_STREAM_RESV_PAYLOAD_LEN 
     522#   define PJMEDIA_STREAM_RESV_PAYLOAD_LEN      20 
     523#endif 
     524 
     525 
     526/** 
    518527 * Specify the maximum duration of silence period in the codec, in msec.  
    519528 * This is useful for example to keep NAT binding open in the firewall 
     
    569578 
    570579/** 
     580 * Maximum number of parameters in SDP fmtp attribute. 
     581 * 
     582 * Default: 16 
     583 */ 
     584#ifndef PJMEDIA_CODEC_MAX_FMTP_CNT 
     585#   define PJMEDIA_CODEC_MAX_FMTP_CNT           16 
     586#endif 
     587 
     588 
     589/** 
    571590 * This specifies the behavior of the SDP negotiator when responding to an 
    572591 * offer, whether it should rather use the codec preference as set by 
     
    589608#ifndef PJMEDIA_SDP_NEG_PREFER_REMOTE_CODEC_ORDER 
    590609#   define PJMEDIA_SDP_NEG_PREFER_REMOTE_CODEC_ORDER    1 
     610#endif 
     611 
     612 
     613/** 
     614 * This specifies the maximum number of the customized SDP format 
     615 * negotiation callbacks. 
     616 */ 
     617#ifndef PJMEDIA_SDP_NEG_MAX_CUSTOM_FMT_NEG_CB 
     618#   define PJMEDIA_SDP_NEG_MAX_CUSTOM_FMT_NEG_CB        8 
    591619#endif 
    592620 
     
    881909 
    882910 
     911/* 
     912 * .... new stuffs ... 
     913 */ 
     914 
     915/* 
     916 * Video 
     917 */ 
     918 
     919/** 
     920 * Top level option to disable video. 
     921 */ 
     922#ifndef PJMEDIA_HAS_VIDEO 
     923#   define PJMEDIA_HAS_VIDEO                            1 
     924#endif 
     925 
     926 
     927/** 
     928 * Specify if FFMPEG is available. The value here will be used as the default 
     929 * value for other FFMPEG settings below. 
     930 * 
     931 * Default: 0 
     932 */ 
     933#ifndef PJMEDIA_HAS_FFMPEG 
     934#   define PJMEDIA_HAS_FFMPEG                           0 
     935#endif 
     936 
     937/** 
     938 * Specify if FFMPEG libavformat is available. 
     939 * 
     940 * Default: PJMEDIA_HAS_FFMPEG (or detected by configure) 
     941 */ 
     942#ifndef PJMEDIA_HAS_LIBAVFORMAT 
     943#   define PJMEDIA_HAS_LIBAVFORMAT                      PJMEDIA_HAS_FFMPEG 
     944#endif 
     945 
     946/** 
     947 * Specify if FFMPEG libavformat is available. 
     948 * 
     949 * Default: PJMEDIA_HAS_FFMPEG (or detected by configure) 
     950 */ 
     951#ifndef PJMEDIA_HAS_LIBAVCODEC 
     952#   define PJMEDIA_HAS_LIBAVCODEC                       PJMEDIA_HAS_FFMPEG 
     953#endif 
     954 
     955/** 
     956 * Specify if FFMPEG libavutil is available. 
     957 * 
     958 * Default: PJMEDIA_HAS_FFMPEG (or detected by configure) 
     959 */ 
     960#ifndef PJMEDIA_HAS_LIBAVUTIL 
     961#   define PJMEDIA_HAS_LIBAVUTIL                        PJMEDIA_HAS_FFMPEG 
     962#endif 
     963 
     964/** 
     965 * Specify if FFMPEG libswscale is available. 
     966 * 
     967 * Default: PJMEDIA_HAS_FFMPEG (or detected by configure) 
     968 */ 
     969#ifndef PJMEDIA_HAS_LIBSWSCALE 
     970#   define PJMEDIA_HAS_LIBSWSCALE                       PJMEDIA_HAS_FFMPEG 
     971#endif 
     972 
     973/** 
     974 * Specify if FFMPEG libavdevice is available. 
     975 * 
     976 * Default: PJMEDIA_HAS_FFMPEG (or detected by configure) 
     977 */ 
     978#ifndef PJMEDIA_HAS_LIBAVDEVICE 
     979#   define PJMEDIA_HAS_LIBAVDEVICE                      PJMEDIA_HAS_FFMPEG 
     980#endif 
     981 
     982/** 
     983 * Specify if FFMPEG libavcore is available. 
     984 * 
     985 * Default: PJMEDIA_HAS_FFMPEG (or detected by configure) 
     986 */ 
     987#ifndef PJMEDIA_HAS_LIBAVCORE 
     988#   define PJMEDIA_HAS_LIBAVCORE                        PJMEDIA_HAS_FFMPEG 
     989#endif 
     990 
     991/** 
     992 * Maximum video planes. 
     993 * 
     994 * Default: 4 
     995 */ 
     996#ifndef PJMEDIA_MAX_VIDEO_PLANES 
     997#   define PJMEDIA_MAX_VIDEO_PLANES                     4 
     998#endif 
     999 
     1000/** 
     1001 * Maximum number of video formats. 
     1002 * 
     1003 * Default: 32 
     1004 */ 
     1005#ifndef PJMEDIA_MAX_VIDEO_FORMATS 
     1006#   define PJMEDIA_MAX_VIDEO_FORMATS                    32 
     1007#endif 
     1008 
     1009/** 
     1010 * Specify the maximum time difference (in ms) for synchronization between 
     1011 * two medias. If the synchronization media source is ahead of time 
     1012 * greater than this duration, it is considered to make a very large jump 
     1013 * and the synchronization will be reset. 
     1014 * 
     1015 * Default: 20000 
     1016 */ 
     1017#ifndef PJMEDIA_CLOCK_SYNC_MAX_SYNC_MSEC 
     1018#   define PJMEDIA_CLOCK_SYNC_MAX_SYNC_MSEC         20000 
     1019#endif 
     1020 
     1021/** 
     1022 * Maximum video frame size. 
     1023 * Default: 128kB 
     1024 */ 
     1025#ifndef PJMEDIA_MAX_VIDEO_ENC_FRAME_SIZE 
     1026#  define PJMEDIA_MAX_VIDEO_ENC_FRAME_SIZE          (1<<17) 
     1027#endif 
     1028 
     1029 
     1030/** 
     1031 * Specify the maximum duration (in ms) for resynchronization. When a media 
     1032 * is late to another media it is supposed to be synchronized to, it is 
     1033 * guaranteed to be synchronized again after this duration. While if the 
     1034 * media is ahead/early by t ms, it is guaranteed to be synchronized after 
     1035 * t + this duration. This timing only applies if there is no additional 
     1036 * resynchronization required during the specified duration. 
     1037 * 
     1038 * Default: 2000 
     1039 */ 
     1040#ifndef PJMEDIA_CLOCK_SYNC_MAX_RESYNC_DURATION 
     1041#   define PJMEDIA_CLOCK_SYNC_MAX_RESYNC_DURATION 2000 
     1042#endif 
     1043 
     1044 
    8831045/** 
    8841046 * @} 
Note: See TracChangeset for help on using the changeset viewer.