aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/userspace-api/spec_ctrl.rst
diff options
context:
space:
mode:
authorJonas Karlman <jonas@kwiboo.se>2025-02-25 10:40:23 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2025-04-08 07:21:21 +0000
commitdcbe2aeda2e09eb69f5feba7e171db2836d9999d (patch)
tree2bc4a4eee94f83b10757a1d8195228f455d937f3 /Documentation/userspace-api/spec_ctrl.rst
parentmedia: v4l2-common: Add helpers to calculate bytesperline and sizeimage (diff)
downloadlinux-dcbe2aeda2e09eb69f5feba7e171db2836d9999d.tar.gz
linux-dcbe2aeda2e09eb69f5feba7e171db2836d9999d.zip
media: v4l2: Add NV15 and NV20 pixel formats
Add NV15 and NV20 pixel formats used by the Rockchip Video Decoder for 10-bit buffers. NV15 and NV20 is 10-bit 4:2:0/4:2:2 semi-planar YUV formats similar to NV12 and NV16, using 10-bit components with no padding between each component. Instead, a group of 4 luminance/chrominance samples are stored over 5 bytes in little endian order: YYYY = UVUV = 4 * 10 bits = 40 bits = 5 bytes The '15' and '20' suffix refers to the optimum effective bits per pixel which is achieved when the total number of luminance samples is a multiple of 8 for NV15 and 4 for NV20. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Tested-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Tested-by: Christopher Obbard <chris.obbard@collabora.com> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'Documentation/userspace-api/spec_ctrl.rst')
0 files changed, 0 insertions, 0 deletions