2018-04-23 05:33:20 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2013-06-04 22:22:30 +08:00
|
|
|
/*
|
|
|
|
* vsp1_uds.h -- R-Car VSP1 Up and Down Scaler
|
|
|
|
*
|
2014-02-07 01:42:31 +08:00
|
|
|
* Copyright (C) 2013-2014 Renesas Electronics Corporation
|
2013-06-04 22:22:30 +08:00
|
|
|
*
|
|
|
|
* Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
|
|
|
|
*/
|
|
|
|
#ifndef __VSP1_UDS_H__
|
|
|
|
#define __VSP1_UDS_H__
|
|
|
|
|
|
|
|
#include <media/media-entity.h>
|
|
|
|
#include <media/v4l2-subdev.h>
|
|
|
|
|
|
|
|
#include "vsp1_entity.h"
|
|
|
|
|
|
|
|
struct vsp1_device;
|
|
|
|
|
|
|
|
#define UDS_PAD_SINK 0
|
|
|
|
#define UDS_PAD_SOURCE 1
|
|
|
|
|
|
|
|
struct vsp1_uds {
|
|
|
|
struct vsp1_entity entity;
|
2014-05-31 08:45:48 +08:00
|
|
|
bool scale_alpha;
|
2013-06-04 22:22:30 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
static inline struct vsp1_uds *to_uds(struct v4l2_subdev *subdev)
|
|
|
|
{
|
|
|
|
return container_of(subdev, struct vsp1_uds, entity.subdev);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct vsp1_uds *vsp1_uds_create(struct vsp1_device *vsp1, unsigned int index);
|
|
|
|
|
2018-05-19 04:42:02 +08:00
|
|
|
void vsp1_uds_set_alpha(struct vsp1_entity *uds, struct vsp1_dl_body *dlb,
|
2015-11-23 06:29:25 +08:00
|
|
|
unsigned int alpha);
|
2014-05-31 08:45:48 +08:00
|
|
|
|
2013-06-04 22:22:30 +08:00
|
|
|
#endif /* __VSP1_UDS_H__ */
|