libavdevice/v4l.c File Reference

#include "avformat.h"
#include "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>

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 []
AVInputFormat v4l_demuxer


Define Documentation

#define _LINUX_TIME_H   1

Definition at line 28 of file v4l.c.


Function Documentation

static int grab_read_close ( AVFormatContext s1  )  [static]

Definition at line 329 of file v4l.c.

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

Definition at line 65 of file v4l.c.

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

Definition at line 289 of file v4l.c.

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

Definition at line 263 of file v4l.c.

Referenced by grab_read_packet().


Variable Documentation

int depth

int palette

Definition at line 52 of file v4l.c.

Referenced by dc1394_read_common(), and yuv4_read_header().

Initial value:

 {
    "video4linux",
    "video grab",
    sizeof(VideoData),
    NULL,
    grab_read_header,
    grab_read_packet,
    grab_read_close,
    .flags = AVFMT_NOFILE,
}

Definition at line 345 of file v4l.c.

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

Referenced by grab_read_header().


Generated on Wed Feb 9 19:10:13 2011 for ffmpeg by  doxygen 1.5.6