linux_dsm_epyc7002/drivers/media/platform/vimc
Guilherme Alcarde Gallo 69e39d4058 media: vimc: Implement get/set selection in sink
Add support for the sink pad of scaler subdevice to respond
VIDIOC_G_SELECTION and VIDIOC_S_SELECTION ioctls with the following
targets: V4L2_SEL_TGT_COMPOSE_BOUNDS and V4L2_SEL_TGT_CROP.

* Add new const struct crop_rect_default to initialize subdev scaler
  properly.
* Make changes in sink pad format reflect to the crop rectangle. E.g.
  changing the frame format to a smaller size one can make the former
  crop rectangle selects a non existing frame area. To solve this
  situation the crop rectangle is clamped to the frame boundaries.
* Clamp crop rectangle respecting the sink bounds during set_selection
  ioctl.

Co-developed-by: Danilo Figueiredo Rocha <drocha.figueiredo@gmail.com>

Signed-off-by: Guilherme Alcarde Gallo <gagallo7@gmail.com>
Signed-off-by: Danilo Figueiredo Rocha <drocha.figueiredo@gmail.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2019-12-16 10:22:00 +01:00
..
Kconfig
Makefile
vimc-capture.c media: vimc: Make capture devices and subdevices use different link_validates 2019-11-05 10:32:14 -03:00
vimc-common.c media: vimc: upon streaming, check that the pipeline starts with a source entity 2019-11-10 07:25:03 +01:00
vimc-common.h media: vimc: upon streaming, check that the pipeline starts with a source entity 2019-11-10 07:25:03 +01:00
vimc-core.c
vimc-debayer.c
vimc-scaler.c media: vimc: Implement get/set selection in sink 2019-12-16 10:22:00 +01:00
vimc-sensor.c media: vimc: sen: remove unused kthread_sen field 2019-11-09 09:07:02 +01:00
vimc-streamer.c media: vimc: upon streaming, check that the pipeline starts with a source entity 2019-11-10 07:25:03 +01:00
vimc-streamer.h