Ignore:
Timestamp:
Jul 14, 2014 2:37:06 AM (8 years ago)
Author:
riza
Message:

Re #1776: Initial implementation of Libyuv wrapper. Supports:

  • library detection via autoconf
  • scaling and conversion function (from/to I420 or BGRA)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/converter.c

    r4412 r4875  
    3535#endif 
    3636 
     37#if defined(PJMEDIA_HAS_LIBYUV) && PJMEDIA_HAS_LIBYUV != 0 
     38PJ_DECL(pj_status_t) 
     39pjmedia_libyuv_converter_init(pjmedia_converter_mgr *mgr); 
     40#endif 
    3741 
    3842PJ_DEF(pj_status_t) pjmedia_converter_mgr_create(pj_pool_t *pool, 
     
    4044{ 
    4145    pjmedia_converter_mgr *mgr; 
    42 #if PJMEDIA_HAS_LIBSWSCALE && PJMEDIA_HAS_LIBAVUTIL 
    4346    pj_status_t status = PJ_SUCCESS; 
    44 #endif 
    4547 
    4648    mgr = PJ_POOL_ALLOC_T(pool, pjmedia_converter_mgr); 
     
    4951    if (!converter_manager_instance) 
    5052        converter_manager_instance = mgr; 
     53 
     54#if defined(PJMEDIA_HAS_LIBYUV) && PJMEDIA_HAS_LIBYUV != 0 
     55    status = pjmedia_libyuv_converter_init(mgr); 
     56    if (status != PJ_SUCCESS) { 
     57        PJ_PERROR(4,(THIS_FILE, status, 
     58                     "Error initializing libyuv converter")); 
     59    } 
     60#endif 
    5161 
    5262#if PJMEDIA_HAS_LIBSWSCALE && PJMEDIA_HAS_LIBAVUTIL 
     
    6171        *p_mgr = mgr; 
    6272 
    63     return PJ_SUCCESS; 
     73    return status; 
    6474} 
    6575 
Note: See TracChangeset for help on using the changeset viewer.