linux/drivers/media/platform/stm32
Hugues Fruchet d533d5010e media: stm32-dcmi: g_/s_selection crop support
Implements g_/s_selection crop support by using DCMI crop
hardware feature.
User can first get the maximum supported resolution of the sensor
by calling g_selection(V4L2_SEL_TGT_CROP_BOUNDS).
Then user call to s_selection(V4L2_SEL_TGT_CROP) will reset sensor
to its maximum resolution and crop request is saved for later usage
in s_fmt().
Next call to s_fmt() will check if sensor can do frame size request
with crop request. If sensor supports only discrete frame sizes,
the frame size which is larger than user request is selected in
order to be able to match the crop request. Then s_fmt() resolution
user request is adjusted to match crop request resolution.

Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-08-26 14:10:41 -04:00
..
Makefile [media] cec: add STM32 cec driver 2017-06-13 13:48:18 -03:00
stm32-cec.c media: stm32-cec: use CEC_CAP_DEFAULTS 2017-08-26 08:36:58 -04:00
stm32-dcmi.c media: stm32-dcmi: g_/s_selection crop support 2017-08-26 14:10:41 -04:00