bktr.c File Reference

Go to the source code of this file.

Classes

struct  VideoData

Functions

static void catchsignal (int signal)
static int bktr_init (const char *video_device, int width, int height, int format, int *video_fd, int *tuner_fd, int idev, double frequency)
static void bktr_getframe (u_int64_t per_frame)
static int grab_read_packet (AVFormatContext *s1, AVPacket *pkt)
static int grab_read_header (AVFormatContext *s1, AVFormatParameters *ap)
static int grab_read_close (AVFormatContext *s1)

Variables

static int bktr_dev []
uint8_t * video_buf
size_t video_buf_size
u_int64_t last_frame_time
volatile sig_atomic_t nsignals
AVInputFormat bktr_demuxer


Function Documentation

static void catchsignal ( int  signal  )  [static]

Definition at line 83 of file bktr.c.

Referenced by bktr_init().

static int bktr_init ( const char *  video_device,
int  width,
int  height,
int  format,
int *  video_fd,
int *  tuner_fd,
int  idev,
double  frequency 
) [static]

Definition at line 89 of file bktr.c.

Referenced by grab_read_header().

static void bktr_getframe ( u_int64_t  per_frame  )  [static]

Definition at line 203 of file bktr.c.

Referenced by grab_read_packet().

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

Definition at line 223 of file bktr.c.

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

Definition at line 238 of file bktr.c.

static int grab_read_close ( AVFormatContext s1  )  [static]

Definition at line 293 of file bktr.c.


Variable Documentation

int bktr_dev[] [static]

Initial value:

 { METEOR_DEV0, METEOR_DEV1, METEOR_DEV2,
    METEOR_DEV3, METEOR_DEV_SVIDEO }

Definition at line 74 of file bktr.c.

Referenced by bktr_init().

uint8_t* video_buf

Definition at line 77 of file bktr.c.

Referenced by bktr_init(), grab_read_close(), and grab_read_packet().

Definition at line 78 of file bktr.c.

Referenced by bktr_init(), grab_read_close(), and grab_read_packet().

Definition at line 79 of file bktr.c.

Referenced by bktr_getframe(), and grab_read_header().

volatile sig_atomic_t nsignals

Definition at line 80 of file bktr.c.

Referenced by bktr_getframe(), catchsignal(), and grab_read_header().

Initial value:

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

Definition at line 311 of file bktr.c.


Generated on Sat Dec 18 05:15:51 2010 for MythTV by  doxygen 1.5.5