#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>Go to the source code of this file.
Data Structures | |
| struct | VideoData |
Defines | |
| #define | _BSD_SOURCE 1 |
| #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 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 |
| #define NTSC 2 |
| #define NTSC_HEIGHT 480 |
| #define NTSCJ 6 |
| #define PAL 1 |
| #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 | ( | u_int64_t | per_frame | ) | [static] |
| 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] |
| 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 76 of file bktr.c.
Referenced by bktr_init().
| u_int64_t last_frame_time |
| volatile sig_atomic_t nsignals |
Definition at line 82 of file bktr.c.
Referenced by bktr_getframe(), catchsignal(), and grab_read_header().
| uint8_t* video_buf |
Definition at line 79 of file bktr.c.
Referenced by bktr_init(), grab_read_close(), and grab_read_packet().
| size_t video_buf_size |
Definition at line 80 of file bktr.c.
Referenced by bktr_init(), grab_read_close(), and grab_read_packet().
1.5.8