18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * vsp1_hsit.h -- R-Car VSP1 Hue Saturation value (Inverse) Transform 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2013 Renesas Corporation 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com) 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci#ifndef __VSP1_HSIT_H__ 108c2ecf20Sopenharmony_ci#define __VSP1_HSIT_H__ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#include <media/media-entity.h> 138c2ecf20Sopenharmony_ci#include <media/v4l2-subdev.h> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#include "vsp1_entity.h" 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_cistruct vsp1_device; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#define HSIT_PAD_SINK 0 208c2ecf20Sopenharmony_ci#define HSIT_PAD_SOURCE 1 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_cistruct vsp1_hsit { 238c2ecf20Sopenharmony_ci struct vsp1_entity entity; 248c2ecf20Sopenharmony_ci bool inverse; 258c2ecf20Sopenharmony_ci}; 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_cistatic inline struct vsp1_hsit *to_hsit(struct v4l2_subdev *subdev) 288c2ecf20Sopenharmony_ci{ 298c2ecf20Sopenharmony_ci return container_of(subdev, struct vsp1_hsit, entity.subdev); 308c2ecf20Sopenharmony_ci} 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_cistruct vsp1_hsit *vsp1_hsit_create(struct vsp1_device *vsp1, bool inverse); 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#endif /* __VSP1_HSIT_H__ */ 35