#include "config.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <poll.h>
#include <linux/videodev2.h>
#include <time.h>
#include "libavutil/imgutils.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/avstring.h"
#include "libavutil/mathematics.h"
Go to the source code of this file.
Functions |
static int | device_open (AVFormatContext *ctx) |
static int | device_init (AVFormatContext *ctx, int *width, int *height, uint32_t pix_fmt) |
static int | first_field (int fd) |
static uint32_t | fmt_ff2v4l (enum PixelFormat pix_fmt, enum CodecID codec_id) |
static enum PixelFormat | fmt_v4l2ff (uint32_t v4l2_fmt, enum CodecID codec_id) |
static enum CodecID | fmt_v4l2codec (uint32_t v4l2_fmt) |
static void | list_formats (AVFormatContext *ctx, int fd, int type) |
static int | mmap_init (AVFormatContext *ctx) |
static void | mmap_release_buffer (AVPacket *pkt) |
static int | mmap_read_frame (AVFormatContext *ctx, AVPacket *pkt) |
static int | mmap_start (AVFormatContext *ctx) |
static void | mmap_close (struct video_data *s) |
static int | v4l2_set_parameters (AVFormatContext *s1, AVFormatParameters *ap) |
static uint32_t | device_try_init (AVFormatContext *s1, enum PixelFormat pix_fmt, int *width, int *height, enum CodecID *codec_id) |
static int | v4l2_read_header (AVFormatContext *s1, AVFormatParameters *ap) |
static int | v4l2_read_packet (AVFormatContext *s1, AVPacket *pkt) |
static int | v4l2_read_close (AVFormatContext *s1) |
Macro Definition Documentation
#define OFFSET |
( |
|
x | ) |
offsetof(struct video_data, x) |
#define V4L_COMPFORMATS 2 |
Function Documentation
static int device_init |
( |
AVFormatContext * |
ctx, |
|
|
int * |
width, |
|
|
int * |
height, |
|
|
uint32_t |
pix_fmt |
|
) |
| |
|
static |
static int first_field |
( |
int |
fd | ) |
|
|
static |
static enum CodecID fmt_v4l2codec |
( |
uint32_t |
v4l2_fmt | ) |
|
|
static |
Variable Documentation
const int desired_video_buffers = 256 |
|
static |
Initial value: {
.name = "video4linux2",
}
Definition at line 849 of file v4l2.c.
struct fmt_map fmt_conversion_table[] |
|
static |
Initial value:
Definition at line 93 of file v4l2.c.
Initial value:
Definition at line 828 of file v4l2.c.
Initial value: {
.class_name = "V4L2 indev",
}
Definition at line 842 of file v4l2.c.