]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: v4l2-controls: Add control for background detection
authorJackson Lee <jackson.lee@chipsnmedia.com>
Tue, 24 Mar 2026 05:03:57 +0000 (14:03 +0900)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 4 May 2026 06:35:14 +0000 (08:35 +0200)
commit5d801b59633f6af60bb0e18d3bbb18b7b040a6d9
tree2fe5d5d9ccd032c3865d829ed6f19cd9df811cfc
parentb20157147089a9c16a38c7810e2fe6f2df8e3277
media: v4l2-controls: Add control for background detection

Add a generic V4L2 boolean control V4L2_CID_MPEG_VIDEO_BACKGROUND_DETECTION
that allows encoders to detect background regions in a frame and use fewer
bits or skip mode to encode them, potentially reducing bitrate for streams
with stationary scenes.

Signed-off-by: Jackson Lee <jackson.lee@chipsnmedia.com>
Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst
drivers/media/v4l2-core/v4l2-ctrls-defs.c
include/uapi/linux/v4l2-controls.h