media/gpu/vaapi: Handle profile change in VaapiVD/VDA
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:Miguel Casas <mcasas@chromium.org> Cr-Commit-Position: refs/heads/master@{#729685}
Showing
Please register or sign in to comment