This source file includes following definitions.
- to_hgt
1
2
3
4
5
6
7
8
9 #ifndef __VSP1_HGT_H__
10 #define __VSP1_HGT_H__
11
12 #include <media/media-entity.h>
13 #include <media/v4l2-ctrls.h>
14 #include <media/v4l2-subdev.h>
15
16 #include "vsp1_histo.h"
17
18 struct vsp1_device;
19
20 #define HGT_NUM_HUE_AREAS 6
21
22 struct vsp1_hgt {
23 struct vsp1_histogram histo;
24
25 struct v4l2_ctrl_handler ctrls;
26
27 u8 hue_areas[HGT_NUM_HUE_AREAS * 2];
28 };
29
30 static inline struct vsp1_hgt *to_hgt(struct v4l2_subdev *subdev)
31 {
32 return container_of(subdev, struct vsp1_hgt, histo.entity.subdev);
33 }
34
35 struct vsp1_hgt *vsp1_hgt_create(struct vsp1_device *vsp1);
36 void vsp1_hgt_frame_end(struct vsp1_entity *hgt);
37
38 #endif