CHROMIUM: [media] rockchip-vpu: Specify frame size ranges per coded format

For some operating modes (namely VP8 decode on RK3399 VPU and VP9 decode
on RK3399 VDEC) the supported frame size range is different than currently
globally hardcoded limits. Let's include the ranges in rockchip_vpu_fmt
struct and specify them for each coded format separately.

TEST=1080p VP8 stream uses HW decode, 2160p falls back to SW on Kevin.

Change-Id: Ie0274e33535271726ee19021a10850932efd4d66
Signed-off-by: Tomasz Figa <>
Reviewed-by: Pawel Osciak <>
(cherry picked from commit 04546ccde2f9fa90c269ca0938f84529e713ba94)
Reviewed-by: Douglas Anderson <>
Tested-by: Douglas Anderson <>
6 files changed