This source file includes following definitions.
- drm_rotation_90_or_270
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 #ifndef __DRM_BLEND_H__
24 #define __DRM_BLEND_H__
25
26 #include <linux/list.h>
27 #include <linux/ctype.h>
28 #include <drm/drm_mode.h>
29
30 #define DRM_MODE_BLEND_PREMULTI 0
31 #define DRM_MODE_BLEND_COVERAGE 1
32 #define DRM_MODE_BLEND_PIXEL_NONE 2
33
34 struct drm_device;
35 struct drm_atomic_state;
36 struct drm_plane;
37
38 static inline bool drm_rotation_90_or_270(unsigned int rotation)
39 {
40 return rotation & (DRM_MODE_ROTATE_90 | DRM_MODE_ROTATE_270);
41 }
42
43 #define DRM_BLEND_ALPHA_OPAQUE 0xffff
44
45 int drm_plane_create_alpha_property(struct drm_plane *plane);
46 int drm_plane_create_rotation_property(struct drm_plane *plane,
47 unsigned int rotation,
48 unsigned int supported_rotations);
49 unsigned int drm_rotation_simplify(unsigned int rotation,
50 unsigned int supported_rotations);
51
52 int drm_plane_create_zpos_property(struct drm_plane *plane,
53 unsigned int zpos,
54 unsigned int min, unsigned int max);
55 int drm_plane_create_zpos_immutable_property(struct drm_plane *plane,
56 unsigned int zpos);
57 int drm_atomic_normalize_zpos(struct drm_device *dev,
58 struct drm_atomic_state *state);
59 int drm_plane_create_blend_mode_property(struct drm_plane *plane,
60 unsigned int supported_modes);
61 #endif