1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * vsp1_hgt.h -- R-Car VSP1 Histogram Generator 2D
5 * Copyright (C) 2016 Renesas Electronics Corporation
7 * Contact: Niklas Söderlund (niklas.soderlund@ragnatech.se)
10 #define __VSP1_HGT_H__
12 #include <media/media-entity.h>
13 #include <media/v4l2-ctrls.h>
14 #include <media/v4l2-subdev.h>
16 #include "vsp1_histo.h"
20 #define HGT_NUM_HUE_AREAS 6
23 struct vsp1_histogram histo
;
25 struct v4l2_ctrl_handler ctrls
;
27 u8 hue_areas
[HGT_NUM_HUE_AREAS
* 2];
30 static inline struct vsp1_hgt
*to_hgt(struct v4l2_subdev
*subdev
)
32 return container_of(subdev
, struct vsp1_hgt
, histo
.entity
.subdev
);
35 struct vsp1_hgt
*vsp1_hgt_create(struct vsp1_device
*vsp1
);
36 void vsp1_hgt_frame_end(struct vsp1_entity
*hgt
);
38 #endif /* __VSP1_HGT_H__ */