]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2-common: Add an helper to apply frmsize constraints
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 28 May 2019 17:02:18 +0000 (13:02 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 29 May 2019 14:48:34 +0000 (10:48 -0400)
commit72505f32157a8de89dd11a4e45c1e2f3e2a9e2e8
tree8d9b4db8b60de17973970895fa8b9055eb40d0c2
parenta47eb61611733135dd596fcf78fbd66b6c220778
media: v4l2-common: Add an helper to apply frmsize constraints

The rockchip VPU driver is open-coding this logic which seems pretty
generic. Let's provide an helper to apply the min/max and alignment
constraints on width/height.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-common.c
include/media/v4l2-common.h