#include "saa7164.h"
#define ENCODER_MAX_BITRATE …
#define ENCODER_MIN_BITRATE …
#define ENCODER_DEF_BITRATE …
#define SAA7164_SIZEIMAGE …
static struct saa7164_tvnorm saa7164_tvnorms[] = …;
static void saa7164_encoder_configure(struct saa7164_port *port)
{ … }
static int saa7164_encoder_buffers_dealloc(struct saa7164_port *port)
{ … }
static int saa7164_encoder_buffers_alloc(struct saa7164_port *port)
{ … }
static int saa7164_encoder_initialize(struct saa7164_port *port)
{ … }
int saa7164_s_std(struct saa7164_port *port, v4l2_std_id id)
{ … }
static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id id)
{ … }
int saa7164_g_std(struct saa7164_port *port, v4l2_std_id *id)
{ … }
static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *id)
{ … }
int saa7164_enum_input(struct file *file, void *priv, struct v4l2_input *i)
{ … }
int saa7164_g_input(struct saa7164_port *port, unsigned int *i)
{ … }
static int vidioc_g_input(struct file *file, void *priv, unsigned int *i)
{ … }
int saa7164_s_input(struct saa7164_port *port, unsigned int i)
{ … }
static int vidioc_s_input(struct file *file, void *priv, unsigned int i)
{ … }
int saa7164_g_tuner(struct file *file, void *priv, struct v4l2_tuner *t)
{ … }
int saa7164_s_tuner(struct file *file, void *priv,
const struct v4l2_tuner *t)
{ … }
int saa7164_g_frequency(struct saa7164_port *port, struct v4l2_frequency *f)
{ … }
static int vidioc_g_frequency(struct file *file, void *priv,
struct v4l2_frequency *f)
{ … }
int saa7164_s_frequency(struct saa7164_port *port,
const struct v4l2_frequency *f)
{ … }
static int vidioc_s_frequency(struct file *file, void *priv,
const struct v4l2_frequency *f)
{ … }
static int saa7164_s_ctrl(struct v4l2_ctrl *ctrl)
{ … }
static int vidioc_querycap(struct file *file, void *priv,
struct v4l2_capability *cap)
{ … }
static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
struct v4l2_fmtdesc *f)
{ … }
static int vidioc_fmt_vid_cap(struct file *file, void *priv,
struct v4l2_format *f)
{ … }
static int saa7164_encoder_stop_port(struct saa7164_port *port)
{ … }
static int saa7164_encoder_acquire_port(struct saa7164_port *port)
{ … }
static int saa7164_encoder_pause_port(struct saa7164_port *port)
{ … }
static int saa7164_encoder_stop_streaming(struct saa7164_port *port)
{ … }
static int saa7164_encoder_start_streaming(struct saa7164_port *port)
{ … }
static int fops_open(struct file *file)
{ … }
static int fops_release(struct file *file)
{ … }
static struct
saa7164_user_buffer *saa7164_enc_next_buf(struct saa7164_port *port)
{ … }
static ssize_t fops_read(struct file *file, char __user *buffer,
size_t count, loff_t *pos)
{ … }
static __poll_t fops_poll(struct file *file, poll_table *wait)
{ … }
static const struct v4l2_ctrl_ops saa7164_ctrl_ops = …;
static const struct v4l2_file_operations mpeg_fops = …;
static const struct v4l2_ioctl_ops mpeg_ioctl_ops = …;
static struct video_device saa7164_mpeg_template = …;
static struct video_device *saa7164_encoder_alloc(
struct saa7164_port *port,
struct pci_dev *pci,
struct video_device *template,
char *type)
{ … }
int saa7164_encoder_register(struct saa7164_port *port)
{ … }
void saa7164_encoder_unregister(struct saa7164_port *port)
{ … }