1
2
3
4
5 #include "dpu_hw_mdss.h"
6
7 static const uint32_t qcom_compressed_supported_formats[] = {
8 DRM_FORMAT_ABGR8888,
9 DRM_FORMAT_XBGR8888,
10 DRM_FORMAT_BGR565,
11 };
12
13 static const uint32_t plane_formats[] = {
14 DRM_FORMAT_ARGB8888,
15 DRM_FORMAT_ABGR8888,
16 DRM_FORMAT_RGBA8888,
17 DRM_FORMAT_BGRA8888,
18 DRM_FORMAT_XRGB8888,
19 DRM_FORMAT_RGBX8888,
20 DRM_FORMAT_BGRX8888,
21 DRM_FORMAT_XBGR8888,
22 DRM_FORMAT_RGB888,
23 DRM_FORMAT_BGR888,
24 DRM_FORMAT_RGB565,
25 DRM_FORMAT_BGR565,
26 DRM_FORMAT_ARGB1555,
27 DRM_FORMAT_ABGR1555,
28 DRM_FORMAT_RGBA5551,
29 DRM_FORMAT_BGRA5551,
30 DRM_FORMAT_XRGB1555,
31 DRM_FORMAT_XBGR1555,
32 DRM_FORMAT_RGBX5551,
33 DRM_FORMAT_BGRX5551,
34 DRM_FORMAT_ARGB4444,
35 DRM_FORMAT_ABGR4444,
36 DRM_FORMAT_RGBA4444,
37 DRM_FORMAT_BGRA4444,
38 DRM_FORMAT_XRGB4444,
39 DRM_FORMAT_XBGR4444,
40 DRM_FORMAT_RGBX4444,
41 DRM_FORMAT_BGRX4444,
42 };
43
44 static const uint32_t plane_formats_yuv[] = {
45 DRM_FORMAT_ARGB8888,
46 DRM_FORMAT_ABGR8888,
47 DRM_FORMAT_RGBA8888,
48 DRM_FORMAT_BGRX8888,
49 DRM_FORMAT_BGRA8888,
50 DRM_FORMAT_XRGB8888,
51 DRM_FORMAT_XBGR8888,
52 DRM_FORMAT_RGBX8888,
53 DRM_FORMAT_RGB888,
54 DRM_FORMAT_BGR888,
55 DRM_FORMAT_RGB565,
56 DRM_FORMAT_BGR565,
57 DRM_FORMAT_ARGB1555,
58 DRM_FORMAT_ABGR1555,
59 DRM_FORMAT_RGBA5551,
60 DRM_FORMAT_BGRA5551,
61 DRM_FORMAT_XRGB1555,
62 DRM_FORMAT_XBGR1555,
63 DRM_FORMAT_RGBX5551,
64 DRM_FORMAT_BGRX5551,
65 DRM_FORMAT_ARGB4444,
66 DRM_FORMAT_ABGR4444,
67 DRM_FORMAT_RGBA4444,
68 DRM_FORMAT_BGRA4444,
69 DRM_FORMAT_XRGB4444,
70 DRM_FORMAT_XBGR4444,
71 DRM_FORMAT_RGBX4444,
72 DRM_FORMAT_BGRX4444,
73
74 DRM_FORMAT_NV12,
75 DRM_FORMAT_NV21,
76 DRM_FORMAT_NV16,
77 DRM_FORMAT_NV61,
78 DRM_FORMAT_VYUY,
79 DRM_FORMAT_UYVY,
80 DRM_FORMAT_YUYV,
81 DRM_FORMAT_YVYU,
82 DRM_FORMAT_YUV420,
83 DRM_FORMAT_YVU420,
84 };