media/gpu/v4l2svda: Set picture size to OUTPUT buffer
Currently, the picture size is set to the CAPTURE buffer but CAPTURE buffer references the picture size of the OUTPUT buffer. If the picture size if set to CAPTURE, Hantro will ignore it and use the OUTPUT picture size which is not set, therefore using the minimum size available (48x48). This patch sets the picture size to the OUTPUT buffer instead of the CAPTURE buffer following the initialization specification for m2m stateless video decoder [1]. [1] https://hverkuil.home.xs4all.nl/codec-api/uapi/v4l/dev-stateless-decoder.html#initialization BUG=chromium:1009935 TEST=ran video_decode_accelerator_tests with test-25fps.h264 and test-25fps.vp8 on veyron_minnie-kernelnext. Signed-off-by:Francois Buergisser <fbuergisser@chromium.org> Change-Id: Ib343d8a0b177470aa39018141170212c1f524979 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1832851Reviewed-by:
Hirokazu Honda <hiroh@chromium.org> Reviewed-by:
Alexandre Courbot <acourbot@chromium.org> Cr-Commit-Position: refs/heads/master@{#703231}
Showing
Please register or sign in to comment