FFmpeg
4.0
|
#include "libavformat/internal.h"
#include "libavutil/internal.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/time.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 "avdevice.h"
Go to the source code of this file.
Data Structures | |
struct | VideoData |
Macros | |
#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 |
#define | OFFSET(x) offsetof(VideoData, x) |
#define | DEC AV_OPT_FLAG_DECODING_PARAM |
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) |
static int | grab_read_close (AVFormatContext *s1) |
Variables | |
static const int | bktr_dev [] |
uint8_t * | video_buf |
size_t | video_buf_size |
uint64_t | last_frame_time |
volatile sig_atomic_t | nsignals |
static const AVOption | options [] |
static const AVClass | bktr_class |
AVInputFormat | ff_bktr_demuxer |
#define PAL 1 |
Definition at line 65 of file bktr.c.
Referenced by bktr_init(), ffprobe_show_pixel_formats(), grab_read_header(), and opt_target().
#define NTSC 2 |
Definition at line 67 of file bktr.c.
Referenced by bktr_init(), grab_read_header(), and opt_target().
#define SECAM 3 |
Definition at line 69 of file bktr.c.
Referenced by bktr_init(), and grab_read_header().
#define PALN 4 |
Definition at line 70 of file bktr.c.
Referenced by bktr_init().
#define PALM 5 |
Definition at line 71 of file bktr.c.
Referenced by bktr_init().
#define NTSCJ 6 |
Definition at line 72 of file bktr.c.
Referenced by bktr_init().
#define PAL_HEIGHT 576 |
Definition at line 75 of file bktr.c.
Referenced by bktr_init().
#define SECAM_HEIGHT 576 |
Definition at line 76 of file bktr.c.
Referenced by bktr_init().
#define NTSC_HEIGHT 480 |
Definition at line 77 of file bktr.c.
Referenced by bktr_init().
#define VIDEO_FORMAT NTSC |
Definition at line 80 of file bktr.c.
Referenced by bktr_init().
#define DEC AV_OPT_FLAG_DECODING_PARAM |
Definition at line 92 of file bktr.c.
Referenced by bktr_init().
|
static |
Definition at line 98 of file bktr.c.
Referenced by grab_read_header().
|
static |
Definition at line 224 of file bktr.c.
Referenced by grab_read_packet().
|
static |
|
static |
|
static |
|
static |
Definition at line 83 of file bktr.c.
Referenced by bktr_init().
uint8_t* video_buf |
Definition at line 86 of file bktr.c.
Referenced by bktr_init(), grab_read_close(), and grab_read_packet().
size_t video_buf_size |
Definition at line 87 of file bktr.c.
Referenced by bktr_init(), grab_read_close(), and grab_read_packet().
uint64_t last_frame_time |
Definition at line 88 of file bktr.c.
Referenced by bktr_getframe(), and grab_read_header().
volatile sig_atomic_t nsignals |
Definition at line 89 of file bktr.c.
Referenced by bktr_getframe(), catchsignal(), and grab_read_header().
|
static |
|
static |
AVInputFormat ff_bktr_demuxer |