diff options
author | Sandor Yu <R01008@freescale.com> | 2015-09-08 15:54:21 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:23:12 +0800 |
commit | cf135732ec638e19b601d0a8bdcc04590eaf4ab1 (patch) | |
tree | 4fffaa70ad3609f3597aaf171eaf8dd5bb8b726e /include/uapi/linux | |
parent | 9704d90b77afba6800ac800802d05b2520790ce6 (diff) |
MLK-11519-1 media: forward mxc video output drivers to 4.1 kernel
Forward imx_3.14.y mxc video output drivers to 4.1 kernel.
The priv field of v4l2_pix_format is used to expand colorspace,
and can not use to pass IPU input crop size.
Add private IOCTL VIDIOC_S_INPUT_CROP and VIDIOC_G_INPUT_CROP
to pass input crop size.
Signed-off-by: Sandor Yu <R01008@freescale.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r-- | include/uapi/linux/mxc_v4l2.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/linux/mxc_v4l2.h b/include/uapi/linux/mxc_v4l2.h index bf751c6fa83d..5049eee461b4 100644 --- a/include/uapi/linux/mxc_v4l2.h +++ b/include/uapi/linux/mxc_v4l2.h @@ -53,4 +53,15 @@ struct v4l2_mxc_offset { uint32_t v_offset; }; +/* + * Private IOCTLs + * + * VIDIOC_S_INOUT_CROP: Set input stream crop size + * VIDIOC_G_INOUT_CROP: Get input stream crop size + */ +#define VIDIOC_S_INPUT_CROP \ + _IOWR('V', BASE_VIDIOC_PRIVATE + 1, struct v4l2_crop) +#define VIDIOC_G_INPUT_CROP \ + _IOWR('V', BASE_VIDIOC_PRIVATE + 2, struct v4l2_crop) + #endif |