FFmpeg
|
Video4Linux2 grab interface. More...
#include "config.h"
#include "libavformat/internal.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <linux/videodev2.h>
#include "libavutil/atomic.h"
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "avdevice.h"
#include "timefilter.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/time.h"
#include "libavutil/avstring.h"
Go to the source code of this file.
Data Structures | |
struct | video_data |
struct | buff_data |
struct | fmt_map |
Macros | |
#define | v4l2_open open |
#define | v4l2_close close |
#define | v4l2_dup dup |
#define | v4l2_ioctl ioctl |
#define | v4l2_read read |
#define | v4l2_mmap mmap |
#define | v4l2_munmap munmap |
#define | V4L_ALLFORMATS 3 |
#define | V4L_RAWFORMATS 1 |
#define | V4L_COMPFORMATS 2 |
#define | V4L_TS_DEFAULT 0 |
Return timestamps to the user exactly as returned by the kernel. More... | |
#define | V4L_TS_ABS 1 |
Autodetect the kind of timestamps returned by the kernel and convert to absolute (wall clock) timestamps. More... | |
#define | V4L_TS_MONO2ABS 2 |
Assume kernel timestamps are from the monotonic clock and convert to absolute timestamps. More... | |
#define | V4L_TS_CONVERT_READY V4L_TS_DEFAULT |
Once the kind of timestamps returned by the kernel have been detected, the value of the timefilter (NULL or not) determines whether a conversion takes place. More... | |
#define | OFFSET(x) offsetof(struct video_data, x) |
#define | DEC AV_OPT_FLAG_DECODING_PARAM |
Variables | |
static const int | desired_video_buffers = 256 |
static struct fmt_map | fmt_conversion_table [] |
static const AVOption | options [] |
static const AVClass | v4l2_class |
AVInputFormat | ff_v4l2_demuxer |
Detailed Description
Video4Linux2 grab interface.
Part of this file is based on the V4L2 video capture example (http://linuxtv.org/downloads/v4l-dvb-apis/capture-example.html)
Thanks to Michael Niedermayer for providing the mapping between V4L2_PIX_FMT_* and AV_PIX_FMT_*
Definition in file v4l2.c.
Macro Definition Documentation
#define DEC AV_OPT_FLAG_DECODING_PARAM |
#define OFFSET | ( | x | ) | offsetof(struct video_data, x) |
#define v4l2_close close |
Definition at line 65 of file v4l2.c.
Referenced by device_open(), v4l2_read_close(), and v4l2_read_header().
#define v4l2_ioctl ioctl |
Definition at line 67 of file v4l2.c.
Referenced by device_init(), device_open(), first_field(), fmt_v4l2codec(), list_formats(), list_standards(), mmap_close(), mmap_init(), mmap_read_frame(), mmap_release_buffer(), mmap_start(), v4l2_read_header(), and v4l2_set_parameters().
#define v4l2_mmap mmap |
Definition at line 69 of file v4l2.c.
Referenced by mmap_init().
#define v4l2_munmap munmap |
Definition at line 70 of file v4l2.c.
Referenced by mmap_close().
#define v4l2_open open |
Definition at line 64 of file v4l2.c.
Referenced by device_open().
#define V4L_COMPFORMATS 2 |
Definition at line 77 of file v4l2.c.
Referenced by list_formats().
#define V4L_RAWFORMATS 1 |
Definition at line 76 of file v4l2.c.
Referenced by list_formats().
#define V4L_TS_ABS 1 |
Autodetect the kind of timestamps returned by the kernel and convert to absolute (wall clock) timestamps.
Definition at line 87 of file v4l2.c.
Referenced by init_convert_timestamp().
#define V4L_TS_CONVERT_READY V4L_TS_DEFAULT |
Once the kind of timestamps returned by the kernel have been detected, the value of the timefilter (NULL or not) determines whether a conversion takes place.
Definition at line 99 of file v4l2.c.
Referenced by init_convert_timestamp().
#define V4L_TS_DEFAULT 0 |
#define V4L_TS_MONO2ABS 2 |
Assume kernel timestamps are from the monotonic clock and convert to absolute timestamps.
Definition at line 92 of file v4l2.c.
Referenced by init_convert_timestamp().
Function Documentation
|
static |
Definition at line 541 of file v4l2.c.
Referenced by mmap_read_frame().
|
static |
Definition at line 219 of file v4l2.c.
Referenced by device_try_init().
|
static |
Definition at line 170 of file v4l2.c.
Referenced by v4l2_read_header().
|
static |
Definition at line 819 of file v4l2.c.
Referenced by v4l2_read_header().
|
static |
Definition at line 262 of file v4l2.c.
Referenced by dnxhd_decode_frame(), dnxhd_encode_picture(), and v4l2_read_header().
|
static |
Definition at line 278 of file v4l2.c.
Referenced by device_try_init().
|
static |
Definition at line 308 of file v4l2.c.
Referenced by device_try_init(), and list_formats().
|
static |
Definition at line 294 of file v4l2.c.
Referenced by list_formats(), and v4l2_read_header().
|
static |
Definition at line 512 of file v4l2.c.
Referenced by convert_timestamp().
|
static |
Definition at line 347 of file v4l2.c.
Referenced by v4l2_read_header().
|
static |
Definition at line 384 of file v4l2.c.
Referenced by v4l2_read_header().
|
static |
Definition at line 693 of file v4l2.c.
Referenced by v4l2_read_close().
|
static |
Definition at line 408 of file v4l2.c.
Referenced by v4l2_read_header().
|
static |
Definition at line 562 of file v4l2.c.
Referenced by v4l2_read_packet().
Definition at line 481 of file v4l2.c.
Referenced by mmap_read_frame().
|
static |
Definition at line 662 of file v4l2.c.
Referenced by v4l2_read_header().
|
static |
|
static |
|
static |
|
static |
Definition at line 710 of file v4l2.c.
Referenced by v4l2_read_header().
Variable Documentation
|
static |
Definition at line 73 of file v4l2.c.
Referenced by mmap_init().
AVInputFormat ff_v4l2_demuxer |
|
static |
|
static |
Generated on Mon Nov 18 2024 06:52:09 for FFmpeg by 1.8.11