Changeset 5652


Ignore:
Timestamp:
Sep 20, 2017 2:09:42 AM (22 months ago)
Author:
ming
Message:

Re #2022: Enable encode_decode_test() for Video Toolbox in pjmedia video codec unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/test/vid_codec_test.c

    r4815 r5652  
    464464#endif 
    465465 
     466#if PJMEDIA_HAS_VIDEO && PJMEDIA_HAS_VID_TOOLBOX_CODEC 
     467    status = pjmedia_codec_vid_toolbox_init(NULL, mem); 
     468    if (status != PJ_SUCCESS) { 
     469        return -23; 
     470    } 
     471#endif 
     472 
    466473#if PJMEDIA_HAS_FFMPEG_VID_CODEC 
    467474    status = pjmedia_codec_ffmpeg_vid_init(NULL, mem); 
     
    484491#endif 
    485492 
    486 #if PJMEDIA_HAS_FFMPEG_VID_CODEC || PJMEDIA_HAS_OPENH264_CODEC 
     493#if PJMEDIA_HAS_FFMPEG_VID_CODEC || PJMEDIA_HAS_OPENH264_CODEC || \ 
     494    PJMEDIA_HAS_VID_TOOLBOX_CODEC 
     495 
    487496    rc = encode_decode_test(pool, "h264", PJMEDIA_VID_PACKING_WHOLE); 
    488497    if (rc != 0) 
     
    502511    pjmedia_codec_openh264_vid_deinit(); 
    503512#endif 
     513#if PJMEDIA_HAS_VIDEO && PJMEDIA_HAS_VID_TOOLBOX_CODEC 
     514    pjmedia_codec_vid_toolbox_deinit(); 
     515#endif 
    504516    pjmedia_vid_dev_subsys_shutdown(); 
    505517    pj_pool_release(pool); 
Note: See TracChangeset for help on using the changeset viewer.