• Emircan Uysaler's avatar
    Pass webrtc::SdpVideoFormat to HW decoders for parsing profiles · c33916c6
    Emircan Uysaler authored
    WebRTC currenty passes only the codec selection to the decoders but not
    the profile info. This has been working fine so far because we only had
    different profiles under H264 and initializing the decoder with MAIN was
    enough to cover all of them. However, this became problematic when we
    introduce VP9.2, as it is a 10-bit codec that decoder needs to know and
    initialize in advance.
    
    This CL changes the decoder creation methods such that
    webrtc::SdpVideoFormat is passed and parsed for profile information. This
    will allow us to enabled VP9.2 HW decoder usage.
    
    Bug: 908945,webrtc:9376
    Change-Id: I6959c85fe4074ca1644e6fb02d58d10df2ff0cff
    Reviewed-on: https://chromium-review.googlesource.com/c/1363804
    Commit-Queue: Emircan Uysaler <emircan@chromium.org>
    Reviewed-by: default avatarDan Sanders <sandersd@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#615739}
    c33916c6
BUILD.gn 92.9 KB