media/gpu: use 0x1000 alignment for user buffers passed to V4L2 devices
User-allocated memory can be passed to some hardware (like video encoder). Such hardware is generally not happy if the memory is not page-aligned. This patch adds a new member to VideoFrameLayout that specifies the desired alignment of the buffer, and make VideoFrame comply to it when allocating memory. It also makes use of it by specifying a page-alignment to formats returned by V4L2Device. Other users of VideoFrame/VideoFrameLayout are not affected by this CL. BUG=b:80274650 TEST=Made sure the VEA unittest was working on Hana and Cheza. Change-Id: Id615ca1ba3f9b253ba774573146a3428c144f57f Reviewed-on: https://chromium-review.googlesource.com/c/1154769 Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Reviewed-by:Hirokazu Honda <hiroh@chromium.org> Reviewed-by:
Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#608280}
Showing
Please register or sign in to comment