media/gpu: make V4L2VEA be able to notify flush done without bitstream buffer.
Originally, we enqueue V4L2 CAPTURE buffers when receiving bitstream buffers from the client. Also, V4L2 driver might need an extra empty buffer to notify flush is done. That means, if we don't get an extra bitstream buffer, we cannot know when the flush is done. This CL separates the logic of enqueueing/dequeueing V4L2 CAPTURE buffers and receiving/returning the bitstream buffer. With this CL, we could get the extra V4L2 CAPTURE buffer even there is no bitstream buffer. BUG=chromium:990687, b:141285506 TEST=run VEA unittest on kevin with h264 and vp8 codec Change-Id: I1d116f0df0d9c4406c84099774c0e7ae5d0dffc4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824303 Commit-Queue: Chih-Yu Huang <akahuang@chromium.org> Reviewed-by:Alexandre Courbot <acourbot@chromium.org> Cr-Commit-Position: refs/heads/master@{#703209}
Showing
Please register or sign in to comment