• emircan's avatar
    Reland: H264 HW encode using MediaFoundation · aa60bafc
    emircan authored
    Got reverted due to breaking MSVC build:
    https://bugs.chromium.org/p/chromium/issues/detail?id=630335#c2
    
    This CL moves GTEST_FAIL() lines so that they fail at the end of the
    function.
    
    Original description ----------------------------------------------
    
    H264 HW encode using MediaFoundation
    
    This CL adds MediaFoundationVideoEncodeAccelerator which enables H264 encode support
    using MediaFoundation on Windows 8.1+. Also, it includes a refactor of common
    MediaFoundation classes under mf_helpers.*.
    
    Note that, this is the first CL and H264 codec is still behind a flag.
    
    Design Doc(with perf measurements): http://goo.gl/UCnwyA
    
    BUG=590060
    TEST= Tested AppRTC loopback with Chrome flag "--enable-webrtc-hw-h264-encoding" and
    "--enable-mf-h264-encoding" on https://apprtc.appspot.com/?debug=loopback&vsc=h264
    Also, added WIN specific sections at vea_unittests.
    
    TBR=ananta@chromium.org,avi@chromium.org,grt@chromium.org,sandersd@chromium.org,wuchengli@chromium.org
    The incremented change is trivial.
    
    Review-Url: https://codereview.chromium.org/2167333002
    Cr-Commit-Position: refs/heads/master@{#407049}
    aa60bafc
media_switches.h 2.7 KB