This source file includes following definitions.
- to_clu
1
2
3
4
5
6
7
8
9 #ifndef __VSP1_CLU_H__
10 #define __VSP1_CLU_H__
11
12 #include <linux/spinlock.h>
13
14 #include <media/media-entity.h>
15 #include <media/v4l2-ctrls.h>
16 #include <media/v4l2-subdev.h>
17
18 #include "vsp1_entity.h"
19
20 struct vsp1_device;
21 struct vsp1_dl_body;
22
23 #define CLU_PAD_SINK 0
24 #define CLU_PAD_SOURCE 1
25
26 struct vsp1_clu {
27 struct vsp1_entity entity;
28
29 struct v4l2_ctrl_handler ctrls;
30
31 bool yuv_mode;
32 spinlock_t lock;
33 unsigned int mode;
34 struct vsp1_dl_body *clu;
35 struct vsp1_dl_body_pool *pool;
36 };
37
38 static inline struct vsp1_clu *to_clu(struct v4l2_subdev *subdev)
39 {
40 return container_of(subdev, struct vsp1_clu, entity.subdev);
41 }
42
43 struct vsp1_clu *vsp1_clu_create(struct vsp1_device *vsp1);
44
45 #endif