Ignore:
Timestamp:
Apr 10, 2014 10:01:07 AM (8 years ago)
Author:
bennylp
Message:

Re #1758: Initial implementation of OpenH264 wrapper. Supports:

  • library detection via autoconf
  • CBP
  • packetization modes: 0, 1
  • key frame request and indication
  • obey remote's fmtp

Also added video codec test in samples (similar to the one in pjmedia test though).
And there are some fixes here and there too (e.g. in vid_codec_util.c).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c

    r4750 r4815  
    7474    } 
    7575 
     76#if PJMEDIA_HAS_VIDEO && PJMEDIA_HAS_OPENH264_CODEC 
     77    status = pjmedia_codec_openh264_vid_init(NULL, &pjsua_var.cp.factory); 
     78    if (status != PJ_SUCCESS) { 
     79        PJ_PERROR(1,(THIS_FILE, status, 
     80                     "Error initializing OpenH264 library")); 
     81        goto on_error; 
     82    } 
     83#endif 
     84 
    7685#if PJMEDIA_HAS_VIDEO && PJMEDIA_HAS_FFMPEG_VID_CODEC 
    7786    status = pjmedia_codec_ffmpeg_vid_init(NULL, &pjsua_var.cp.factory); 
     
    132141#if PJMEDIA_HAS_FFMPEG_VID_CODEC 
    133142    pjmedia_codec_ffmpeg_vid_deinit(); 
     143#endif 
     144 
     145#if defined(PJMEDIA_HAS_OPENH264_CODEC) && PJMEDIA_HAS_OPENH264_CODEC != 0 
     146    pjmedia_codec_openh264_vid_deinit(); 
    134147#endif 
    135148 
Note: See TracChangeset for help on using the changeset viewer.