GNU Linux-libre 6.7.9-gnu
[releases.git] / drivers / media / platform / sunxi / sun8i-rotate / sun8i-formats.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2020 Jernej Skrabec <jernej.skrabec@siol.net> */
3
4 #ifndef _SUN8I_FORMATS_H_
5 #define _SUN8I_FORMATS_H_
6
7 #include <linux/videodev2.h>
8
9 #define ROTATE_FLAG_YUV    BIT(0)
10 #define ROTATE_FLAG_OUTPUT BIT(1)
11
12 struct rotate_format {
13         u32 fourcc;
14         u32 hw_format;
15         int planes;
16         int bpp[3];
17         int hsub;
18         int vsub;
19         unsigned int flags;
20 };
21
22 const struct rotate_format *rotate_find_format(u32 pixelformat);
23 int rotate_enum_fmt(struct v4l2_fmtdesc *f, bool dst);
24
25 #endif