#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/videodev2.h>
#include <media/v4l2-common.h>
#include <linux/usb/video.h>
#include "vivid-core.h"
#include "vivid-kthread-cap.h"
#include "vivid-meta-cap.h"
static int meta_cap_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers,
unsigned int *nplanes, unsigned int sizes[],
struct device *alloc_devs[])
{ … }
static int meta_cap_buf_prepare(struct vb2_buffer *vb)
{ … }
static void meta_cap_buf_queue(struct vb2_buffer *vb)
{ … }
static int meta_cap_start_streaming(struct vb2_queue *vq, unsigned int count)
{ … }
static void meta_cap_stop_streaming(struct vb2_queue *vq)
{ … }
static void meta_cap_buf_request_complete(struct vb2_buffer *vb)
{ … }
const struct vb2_ops vivid_meta_cap_qops = …;
int vidioc_enum_fmt_meta_cap(struct file *file, void *priv,
struct v4l2_fmtdesc *f)
{ … }
int vidioc_g_fmt_meta_cap(struct file *file, void *priv,
struct v4l2_format *f)
{ … }
void vivid_meta_cap_fillbuff(struct vivid_dev *dev,
struct vivid_buffer *buf, u64 soe)
{ … }