media/gpu/v4l2VEA: Execute S_FMT with frame size given by client
V4L2VideoEncodeAccelerator requests its client to allocate video frame buffer with a frame size. If the client allocates video frame buffer using GBM API, the frame size of the created video frame can be different from the requested one. In that case, we need to reconfigure v4l2 drivers with the new frame size by S_FMT. The reconfiguration must happen only once during encoding and when the first frame is fed. Bug: 979115 Test: CtsMediaTestCases on kevin Change-Id: Ie245001fad631f5d3ff66c0d7280037bea21a8b9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1722835 Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Reviewed-by:Alexandre Courbot <acourbot@chromium.org> Cr-Commit-Position: refs/heads/master@{#683114}
Showing
Please register or sign in to comment