diff options
author | Sandor Yu <R01008@freescale.com> | 2015-09-08 15:54:21 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@nxp.com> | 2016-01-14 11:01:30 -0600 |
commit | fecc4ad3cd73c6418c886779149ef4a70e233e1e (patch) | |
tree | 24eae0fddabcef8aca63d190b2e65b39abea8a12 /include/uapi | |
parent | e840f69359fd2ee1839a63ed47389eb5b0edf7b9 (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')
-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 |