]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: v4l2-common: add has_alpha to v4l2_format_info
authorSven Püschel <s.pueschel@pengutronix.de>
Wed, 20 May 2026 22:44:09 +0000 (00:44 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 21 May 2026 10:32:18 +0000 (12:32 +0200)
commit84fbe791a6203e35a602f7fef94d967466cd8d29
treedf2a879628c803953b73d8c6716af8899c057dd2
parente623f2b7397079005e940d101b80796b3c39d229
media: v4l2-common: add has_alpha to v4l2_format_info

Add a has_alpha value to the v4l2_format_info struct to indicate if the
format contains an alpha component. This information can currently not
be queried in a generic way, but might be useful for potential drivers
to properly setup alpha blending to copy or set the alpha value.
The implementation is based on the drm_format_info implementation.

Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/v4l2-core/v4l2-common.c
include/media/v4l2-common.h