Changeset 4904 for pjproject/trunk


Ignore:
Timestamp:
Aug 25, 2014 9:53:26 AM (10 years ago)
Author:
nanang
Message:

Re #1758: update default OpenH264 video size for iPhone device to 352x288 (on 4S, 720x480 seems to be too heavy for the CPU).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/openh264.cpp

    r4873 r4904  
    4040 */ 
    4141#define THIS_FILE               "openh264.cpp" 
    42 #define DEFAULT_WIDTH           720 
    43 #define DEFAULT_HEIGHT          480 
     42 
     43#if defined(PJ_DARWINOS) && PJ_DARWINOS != 0 && TARGET_OS_IPHONE 
     44#  define DEFAULT_WIDTH         352 
     45#  define DEFAULT_HEIGHT        288 
     46#else 
     47#  define DEFAULT_WIDTH         720 
     48#  define DEFAULT_HEIGHT        480 
     49#endif 
     50 
    4451#define DEFAULT_FPS             15 
    4552#define DEFAULT_AVG_BITRATE     256000 
Note: See TracChangeset for help on using the changeset viewer.