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