android_kernel_msm-6.1_noth.../include/uapi/drm
Jonas Karlman 9673df54cd UPSTREAM: drm/fourcc: Add NV20 and NV30 YUV formats
DRM_FORMAT_NV20 and DRM_FORMAT_NV30 formats is the 2x1 and non-subsampled
variant of NV15, a 10-bit 2-plane YUV format that has no padding between
components. Instead, luminance and chrominance samples are grouped into 4s
so that each group is packed into an integer number of bytes:

YYYY = UVUV = 4 * 10 bits = 40 bits = 5 bytes

The '20' and '30' suffix refers to the optimum effective bits per pixel
which is achieved when the total number of luminance samples is a multiple
of 4.

V2: Added NV30 format

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Sandy Huang <hjc@rock-chips.com>
Reviewed-by: Christopher Obbard <chris.obbard@collabora.com>
Tested-by: Christopher Obbard <chris.obbard@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231023173718.188102-2-jonas@kwiboo.se

Bug: 300024866
(cherry picked from commit 728c15b4b5f3369cbde73d5e0f14701ab370f985)
Change-Id: Ia8fbb5b785c6fc2b4d188bbcef62e232c2ba8ce8
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2023-11-28 00:13:07 +00:00
..
amdgpu_drm.h drm/amd: Add IMU fw version to fw version queries 2022-10-24 14:44:03 -04:00
armada_drm.h
drm.h drm: document DRM_IOCTL_MODE_GETFB2 2021-12-14 12:03:32 +01:00
drm_fourcc.h UPSTREAM: drm/fourcc: Add NV20 and NV30 YUV formats 2023-11-28 00:13:07 +00:00
drm_mode.h drm/mode: Improve drm_mode_fb_cmd2 documentation 2022-07-09 15:53:41 +02:00
drm_sarea.h
etnaviv_drm.h drm/etnaviv: provide more ID values via GET_PARAM ioctl. 2021-01-22 12:33:57 +01:00
exynos_drm.h
i810_drm.h
i915_drm.h drm for 5.20/6.0 2022-08-03 19:52:08 -07:00
lima_drm.h
mga_drm.h drm/mga/mga_ioc32: Use struct_group() for memcpy() region 2021-09-25 08:20:48 -07:00
msm_drm.h drm/msm: Add a way for userspace to allocate GPU iova 2022-04-21 15:03:12 -07:00
nouveau_drm.h
omap_drm.h
panfrost_drm.h drm/panfrost: Remove type name from internal struct again 2022-11-07 15:35:43 +00:00
qxl_drm.h
r128_drm.h
radeon_drm.h
savage_drm.h
sis_drm.h
tegra_drm.h drm/tegra: Add new UAPI to header 2021-08-10 14:48:17 +02:00
v3d_drm.h drm/v3d: add multiple syncobjs support 2021-10-04 10:08:46 +01:00
vc4_drm.h
vgem_drm.h
via_drm.h
virtgpu_drm.h drm/virtio: exbuf->fence_fd unmodified on interrupted wait 2023-02-14 19:11:45 +01:00
vmwgfx_drm.h drm/vmwgfx: Allow querying of the SVGA PCI id from the userspace 2022-03-11 13:29:35 -05:00