]> git.baikalelectronics.ru Git - kernel.git/commit
media: imx-pxp: Add rotation support
authorFabio Estevam <festevam@denx.de>
Fri, 8 Oct 2021 13:10:15 +0000 (15:10 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 30 Nov 2021 10:56:38 +0000 (11:56 +0100)
commit525ffa1ce7979471b1020cec5711649814bce3f1
treecbc017df1f1a1a93a5d36ba87afd57ddc857e2ef
parent17080be3d42515fa8e5a8ab526a0a067d7954ed7
media: imx-pxp: Add rotation support

PXP allows clockwise rotation of 0°, 90°, 180° and 270°.

Add support for it.

Tested on a imx6ull-evk.

For example, to rotate 90° the following Gstreamer pipeline can
be used:

gst-launch-1.0 videotestsrc ! video/x-raw,width=640,height=480 ! \
v4l2convert extra-controls=cid,rotate=90  ! \
video/x-raw,width=120,height=160 ! fbdevsink

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/imx-pxp.c