#include "libavformat/avformat.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <signal.h>
#include <stdint.h>
#include <strings.h>
Go to the source code of this file.
Data Structures | |
struct | VideoData |
Defines | |
#define | _BSD_SOURCE 1 |
#define | _NETBSD_SOURCE |
#define | PAL 1 |
#define | PALBDGHI 1 |
#define | NTSC 2 |
#define | NTSCM 2 |
#define | SECAM 3 |
#define | PALN 4 |
#define | PALM 5 |
#define | NTSCJ 6 |
#define | PAL_HEIGHT 576 |
#define | SECAM_HEIGHT 576 |
#define | NTSC_HEIGHT 480 |
#define | VIDEO_FORMAT NTSC |
Functions | |
static void | catchsignal (int signal) |
static av_cold 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 (uint64_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 |
uint64_t | last_frame_time |
volatile sig_atomic_t | nsignals |
AVInputFormat | bktr_demuxer |
#define NTSC 2 |
Definition at line 64 of file bktr.c.
Referenced by bktr_init(), grab_read_header(), and opt_target().
#define NTSC_HEIGHT 480 |
#define NTSCJ 6 |
#define PAL 1 |
Definition at line 62 of file bktr.c.
Referenced by bktr_init(), grab_read_header(), and opt_target().
#define PAL_HEIGHT 576 |
#define PALM 5 |
#define PALN 4 |
#define SECAM 3 |
#define SECAM_HEIGHT 576 |
#define VIDEO_FORMAT NTSC |
static void bktr_getframe | ( | uint64_t | per_frame | ) | [static] |
static av_cold int bktr_init | ( | const char * | video_device, | |
int | width, | |||
int | height, | |||
int | format, | |||
int * | video_fd, | |||
int * | tuner_fd, | |||
int | idev, | |||
double | frequency | |||
) | [static] |
static void catchsignal | ( | int | signal | ) | [static] |
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] |
Initial value:
{ "bktr", NULL_IF_CONFIG_SMALL("video grab"), sizeof(VideoData), NULL, grab_read_header, grab_read_packet, grab_read_close, .flags = AVFMT_NOFILE, }
int bktr_dev[] [static] |
Initial value:
{ METEOR_DEV0, METEOR_DEV1, METEOR_DEV2, METEOR_DEV3, METEOR_DEV_SVIDEO }
Definition at line 80 of file bktr.c.
Referenced by bktr_init().
uint64_t last_frame_time |
volatile sig_atomic_t nsignals |
Definition at line 86 of file bktr.c.
Referenced by bktr_getframe(), catchsignal(), and grab_read_header().
uint8_t* video_buf |
Definition at line 83 of file bktr.c.
Referenced by bktr_init(), grab_read_close(), and grab_read_packet().
size_t video_buf_size |
Definition at line 84 of file bktr.c.
Referenced by bktr_init(), grab_read_close(), and grab_read_packet().