Create drm_color_ctm_3x4 to support 3x4-dimension plane CTM matrix and convert DRM CTM to DC CSC float matrix. v3: - rename ctm2 to ctm_3x4 (Harry)
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -846,6 +846,14 @@ struct drm_color_ctm { · 845 unmodified lines | ||
| 846 | 846 | __u64 matrix[9]; |
| 847 | 847 | }; |
| 848 | 848 | |
| 849 | +struct drm_color_ctm_3x4 { | |
| 850 | + /* | |
| 851 | + * Conversion matrix with 3x4 dimensions in S31.32 sign-magnitude | |
| 852 | + * (not two's complement!) format. | |
| 853 | + */ | |
| 854 | + __u64 matrix[12]; | |
| 855 | +}; | |
| 856 | + | |
| 849 | 857 | struct drm_color_lut { |
| 850 | 858 | /* |
| 851 | 859 | * Values are mapped linearly to 0.0 - 1.0 range, with 0x0 == 0.0 and |