• Hirokazu Honda's avatar
    media/gpu/vaapi: Handle profile change in VaapiVD/VDA · e8f9c1d7
    Hirokazu Honda authored
    crrev.com/c/1923986 handles a profile change in V4L2SVD/VDA. This CL
    handles a profile change in VaapiVD/VDA.
    
    Since VA-API is initialized with a codec profile, it is necessary to
    reinitialize VA-API with a new profile. VaapiWrapper manages several
    VA-API resources. For example, surfaces will be destroyed after
    the profile change. It will be easier to replace VaapiWrapper used in
    AVD::Accelerator with a new VaapiWrapper than reinitialize the
    existing VaapiWrapper properly.
    
    Bug: 1022246, 1029397
    Test: video.DecodeAccel(VD).h264_profile_change (crrev.com/c/1924217) on eve and grunt
    Change-Id: Ic3ff0b231cf454ce61193ee9f2642050d588ef24
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1930368
    Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
    Reviewed-by: default avatarMiguel Casas <mcasas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#729685}
    e8f9c1d7
vaapi_video_decode_accelerator.h 14.5 KB