libavdevice/v4l.c File Reference

#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


Define Documentation

#define _LINUX_TIME_H   1

Definition at line 38 of file v4l.c.


Function Documentation

static int grab_read_close ( AVFormatContext s1  )  [static]

Definition at line 341 of file v4l.c.

static int grab_read_header ( AVFormatContext s1,
AVFormatParameters ap 
) [static]

Definition at line 78 of file v4l.c.

static int grab_read_packet ( AVFormatContext s1,
AVPacket pkt 
) [static]

Definition at line 301 of file v4l.c.

static int v4l_mm_read_picture ( VideoData s,
uint8_t *  buf 
) [static]

Definition at line 275 of file v4l.c.

Referenced by grab_read_packet().


Variable Documentation

int depth

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,
}

Definition at line 372 of file v4l.c.

const AVOption options[] [static]

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 },
}

Definition at line 357 of file v4l.c.

int palette

const AVClass v4l_class [static]

Initial value:

 {
    .class_name = "V4L indev",
    .item_name  = av_default_item_name,
    .option     = options,
    .version    = LIBAVUTIL_VERSION_INT,
}

Definition at line 365 of file v4l.c.

struct { ... } video_formats[] [static]

Referenced by grab_read_header().


Generated on Fri Oct 26 02:39:47 2012 for FFmpeg by  doxygen 1.5.8