media/gpu/v4l2: add and use V4L2Queue::GetFormat()
Getting the currently set format on a queue is a frequent operation. Add a dedicated method for this so we can factorize the code across the various users. BUG=b:149663704 TEST=vdatest passing on Kukui. TEST=vdatest passing on Hana. Change-Id: Ie98b86db7a40d277adaab04703327340c61dfddf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2131430 Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Reviewed-by:Chih-Yu Huang <akahuang@chromium.org> Cr-Commit-Position: refs/heads/master@{#756156}
Showing
Please register or sign in to comment