linux/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 Linux 5.2-rc2 2019-05-28 11:21:51 -04:00
Makefile media: vimc: Collapse component structure into a single monolithic driver 2019-10-01 12:34:13 -03:00
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 media: vimc: cleanup code that assigns entity in entities array 2019-10-24 19:00:14 -03:00
vimc-debayer.c media: vimc: Implement debayer control for mean window size 2019-10-24 19:04:45 -03:00
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 media: Revert "media: vimc: propagate pixel format in the stream" 2019-08-13 11:40:38 -03:00