root/drivers/media/platform/vsp1/vsp1_hgt.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. to_hgt

   1 /* SPDX-License-Identifier: GPL-2.0+ */
   2 /*
   3  * vsp1_hgt.h  --  R-Car VSP1 Histogram Generator 2D
   4  *
   5  * Copyright (C) 2016 Renesas Electronics Corporation
   6  *
   7  * Contact: Niklas Söderlund (niklas.soderlund@ragnatech.se)
   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 /* __VSP1_HGT_H__ */

/* [<][>][^][v][top][bottom][index][help] */