#include "avdevice.h"
#include "config.h"
#include "libavutil/rational.h"
#include "libavutil/imgutils.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavcodec/dsputil.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <linux/videodev.h>
#include <time.h>
#include <strings.h>
Go to the source code of this file.
Data Structures | |
struct | VideoData |
Defines | |
#define | _LINUX_TIME_H 1 |
Functions | |
static int | grab_read_header (AVFormatContext *s1, AVFormatParameters *ap) |
static int | v4l_mm_read_picture (VideoData *s, uint8_t *buf) |
static int | grab_read_packet (AVFormatContext *s1, AVPacket *pkt) |
static int | grab_read_close (AVFormatContext *s1) |
Variables | |
struct { | |
int palette | |
int depth | |
enum PixelFormat pix_fmt | |
} | video_formats [] |
static const AVOption | options [] |
static const AVClass | v4l_class |
AVInputFormat | ff_v4l_demuxer |
static int grab_read_close | ( | AVFormatContext * | s1 | ) | [static] |
static int grab_read_header | ( | AVFormatContext * | s1, | |
AVFormatParameters * | ap | |||
) | [static] |
static int grab_read_packet | ( | AVFormatContext * | s1, | |
AVPacket * | pkt | |||
) | [static] |
static int v4l_mm_read_picture | ( | VideoData * | s, | |
uint8_t * | buf | |||
) | [static] |
int depth |
Definition at line 64 of file v4l.c.
Referenced by av_read_image_line(), av_write_image_line(), bmp_decode_frame(), decode_frame(), decode_macroblock(), dvbsub_parse_clut_segment(), encode_frame(), ff_pnm_decode_header(), fill_iplimage_from_picref(), filter(), flic_decode_init(), guess_mv(), pam_encode_frame(), sunrast_decode_frame(), targa_decode_rle(), tta_decode_frame(), txd_decode_frame(), and wtvfile_open2().
Initial value:
{ "video4linux", NULL_IF_CONFIG_SMALL("Video4Linux device grab"), sizeof(VideoData), NULL, grab_read_header, grab_read_packet, grab_read_close, .flags = AVFMT_NOFILE, .priv_class = &v4l_class, }
Initial value:
{ { "standard", "", 0x42, FF_OPT_TYPE_INT, {.dbl = VIDEO_MODE_NTSC}, VIDEO_MODE_PAL, VIDEO_MODE_NTSC, AV_OPT_FLAG_DECODING_PARAM, "standard" }, { "PAL", "", 0, FF_OPT_TYPE_CONST, {.dbl = VIDEO_MODE_PAL}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "standard" }, { "SECAM", "", 0, FF_OPT_TYPE_CONST, {.dbl = VIDEO_MODE_SECAM}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "standard" }, { "NTSC", "", 0, FF_OPT_TYPE_CONST, {.dbl = VIDEO_MODE_NTSC}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "standard" }, { NULL }, }
int palette |
Definition at line 63 of file v4l.c.
Referenced by avs_read_packet(), cdg_load_palette(), decode_frame(), encode_frame(), extract_header(), ff_cmap_read_palette(), get_alpha_info_pal8(), gif_read_image(), idcin_read_packet(), palToRgbWrapper(), pcx_decode_frame(), seqvideo_decode(), set_palette(), txd_decode_frame(), and yop_decode_frame().
enum PixelFormat pix_fmt |
Definition at line 65 of file v4l.c.
Referenced by av_get_pix_fmt(), decode_frame(), fbdev_read_header(), ff_raw_read_header(), get_pix_fmt_internal(), init(), make_format_list(), opt_pix_fmts(), query_formats(), read_header(), sdl_write_header(), v4l2_read_header(), and yuv4_read_header().
Initial value:
{ .class_name = "V4L indev", .item_name = av_default_item_name, .option = options, .version = LIBAVUTIL_VERSION_INT, }
struct { ... } video_formats[] [static] |
Referenced by grab_read_header().