Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] v4l: ctrls: Add deinterlacing mode control

The menu control selects the operation mode of a video deinterlacer. The
menu entries are driver specific.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran@bingham.xyz>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Laurent Pinchart and committed by
Mauro Carvalho Chehab
446e4125 a9943f6b

+9
+4
Documentation/media/uapi/v4l/extended-controls.rst
··· 3017 3017 test pattern images. These hardware specific test patterns can be 3018 3018 used to test if a device is working properly. 3019 3019 3020 + ``V4L2_CID_DEINTERLACING_MODE (menu)`` 3021 + The video deinterlacing mode (such as Bob, Weave, ...). The menu items are 3022 + driver specific and are documented in :ref:`v4l-drivers`. 3023 + 3020 3024 3021 3025 .. _dv-controls: 3022 3026
+2
Documentation/media/v4l-drivers/index.rst
··· 2 2 3 3 .. include:: <isonum.txt> 4 4 5 + .. _v4l-drivers: 6 + 5 7 ################################################ 6 8 Video4Linux (V4L) driver-specific documentation 7 9 ################################################
+2
drivers/media/v4l2-core/v4l2-ctrls.c
··· 885 885 case V4L2_CID_LINK_FREQ: return "Link Frequency"; 886 886 case V4L2_CID_PIXEL_RATE: return "Pixel Rate"; 887 887 case V4L2_CID_TEST_PATTERN: return "Test Pattern"; 888 + case V4L2_CID_DEINTERLACING_MODE: return "Deinterlacing Mode"; 888 889 889 890 /* DV controls */ 890 891 /* Keep the order of the 'case's the same as in v4l2-controls.h! */ ··· 1059 1058 case V4L2_CID_DV_RX_RGB_RANGE: 1060 1059 case V4L2_CID_DV_RX_IT_CONTENT_TYPE: 1061 1060 case V4L2_CID_TEST_PATTERN: 1061 + case V4L2_CID_DEINTERLACING_MODE: 1062 1062 case V4L2_CID_TUNE_DEEMPHASIS: 1063 1063 case V4L2_CID_MPEG_VIDEO_VPX_GOLDEN_FRAME_SEL: 1064 1064 case V4L2_CID_DETECT_MD_MODE:
+1
include/uapi/linux/v4l2-controls.h
··· 892 892 #define V4L2_CID_LINK_FREQ (V4L2_CID_IMAGE_PROC_CLASS_BASE + 1) 893 893 #define V4L2_CID_PIXEL_RATE (V4L2_CID_IMAGE_PROC_CLASS_BASE + 2) 894 894 #define V4L2_CID_TEST_PATTERN (V4L2_CID_IMAGE_PROC_CLASS_BASE + 3) 895 + #define V4L2_CID_DEINTERLACING_MODE (V4L2_CID_IMAGE_PROC_CLASS_BASE + 4) 895 896 896 897 897 898 /* DV-class control IDs defined by V4L2 */