Jernej Skrabec d77182ada3 media: sun8i: Add Allwinner A83T Rotate driver
Allwinner A83T contains rotation core which can rotate and flip images.

Add a driver for it.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
[hverkuil-cisco@xs4all.nl: MAINTAINERS paths were out of date, fix that]
[hverkuil-cisco@xs4all.nl: VFL_TYPE_GRABBER -> _VIDEO]
[hverkuil-cisco@xs4all.nl: Fix module build]
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-03-02 15:16:40 +01:00

26 lines
511 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2020 Jernej Skrabec <jernej.skrabec@siol.net> */
#ifndef _SUN8I_FORMATS_H_
#define _SUN8I_FORMATS_H_
#include <linux/videodev2.h>
#define ROTATE_FLAG_YUV BIT(0)
#define ROTATE_FLAG_OUTPUT BIT(1)
struct rotate_format {
u32 fourcc;
u32 hw_format;
int planes;
int bpp[3];
int hsub;
int vsub;
unsigned int flags;
};
const struct rotate_format *rotate_find_format(u32 pixelformat);
int rotate_enum_fmt(struct v4l2_fmtdesc *f, bool dst);
#endif