Add support for floating point half-width formats.
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -144,6 +144,17 @@ extern "C" { · 143 unmodified lines | ||
| 144 | 144 | #define DRM_FORMAT_RGBA1010102 fourcc_code('R', 'A', '3', '0') /* [31:0] R:G:B:A 10:10:10:2 little endian */ |
| 145 | 145 | #define DRM_FORMAT_BGRA1010102 fourcc_code('B', 'A', '3', '0') /* [31:0] B:G:R:A 10:10:10:2 little endian */ |
| 146 | 146 | |
| 147 | +/* | |
| 148 | + * Floating point 64bpp RGB | |
| 149 | + * IEEE 754-2008 binary16 half-precision float | |
| 150 | + * [15:0] sign:exponent:mantissa 1:5:10 | |
| 151 | + */ | |
| 152 | +#define DRM_FORMAT_XRGB16161616F fourcc_code('X', 'R', '4', 'H') /* [63:0] x:R:G:B 16:16:16:16 little endian */ | |
| 153 | +#define DRM_FORMAT_XBGR16161616F fourcc_code('X', 'B', '4', 'H') /* [63:0] x:B:G:R 16:16:16:16 little endian */ | |
| 154 | + | |
| 155 | +#define DRM_FORMAT_ARGB16161616F fourcc_code('A', 'R', '4', 'H') /* [63:0] A:R:G:B 16:16:16:16 little endian */ | |
| 156 | +#define DRM_FORMAT_ABGR16161616F fourcc_code('A', 'B', '4', 'H') /* [63:0] A:B:G:R 16:16:16:16 little endian */ | |
| 157 | + | |
| 147 | 158 | /* packed YCbCr */ |
| 148 | 159 | #define DRM_FORMAT_YUYV fourcc_code('Y', 'U', 'Y', 'V') /* [31:0] Cr0:Y1:Cb0:Y0 8:8:8:8 little endian */ |
| 149 | 160 | #define DRM_FORMAT_YVYU fourcc_code('Y', 'V', 'Y', 'U') /* [31:0] Cb0:Y1:Cr0:Y0 8:8:8:8 little endian */ |