1dacca5f0SHans Verkuil /* SPDX-License-Identifier: GPL-2.0-only */
2dacca5f0SHans Verkuil /*
3dacca5f0SHans Verkuil  * vivid-meta-out.h - meta output support functions.
4dacca5f0SHans Verkuil  */
5dacca5f0SHans Verkuil #ifndef _VIVID_META_OUT_H_
6dacca5f0SHans Verkuil #define _VIVID_META_OUT_H_
7dacca5f0SHans Verkuil 
8dacca5f0SHans Verkuil struct vivid_meta_out_buf {
9dacca5f0SHans Verkuil 	u16	brightness;
10dacca5f0SHans Verkuil 	u16	contrast;
11dacca5f0SHans Verkuil 	u16	saturation;
12dacca5f0SHans Verkuil 	s16	hue;
13dacca5f0SHans Verkuil };
14dacca5f0SHans Verkuil 
15dacca5f0SHans Verkuil void vivid_meta_out_process(struct vivid_dev *dev, struct vivid_buffer *buf);
16dacca5f0SHans Verkuil int vidioc_enum_fmt_meta_out(struct file *file, void  *priv,
17dacca5f0SHans Verkuil 			     struct v4l2_fmtdesc *f);
18dacca5f0SHans Verkuil int vidioc_g_fmt_meta_out(struct file *file, void *priv,
19dacca5f0SHans Verkuil 			  struct v4l2_format *f);
20dacca5f0SHans Verkuil int vidioc_s_fmt_meta_out(struct file *file, void *priv,
21dacca5f0SHans Verkuil 			  struct v4l2_format *f);
22dacca5f0SHans Verkuil 
23dacca5f0SHans Verkuil extern const struct vb2_ops vivid_meta_out_qops;
24dacca5f0SHans Verkuil 
25dacca5f0SHans Verkuil #endif
26