#include "config.h"
#include "libavformat/internal.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/time.h"
#include "libavutil/pixdesc.h"
#include <time.h>
#include "avdevice.h"
#include <dlfcn.h>
#include <unistd.h>
#include <stdbool.h>
Go to the source code of this file.
Classes | |
struct | androidgrab |
struct | ASC |
Defines | |
#define | DEC AV_OPT_FLAG_DECODING_PARAM |
#define | OFFSET(x) offsetof(struct androidgrab, x) |
Functions | |
static int | androidgrab_read_close (AVFormatContext *s1) |
static int | androidgrab_read_header (AVFormatContext *s1) |
static int | androidgrab_read_packet (AVFormatContext *s1, AVPacket *pkt) |
Variables | |
static const AVClass | android_class |
AVInputFormat | ff_x11grab_demuxer |
static const AVOption | options [] |
#define DEC AV_OPT_FLAG_DECODING_PARAM |
Definition at line 151 of file patch_ffmpeg_x11grab.c.
#define OFFSET | ( | x | ) | offsetof(struct androidgrab, x) |
Definition at line 150 of file patch_ffmpeg_x11grab.c.
static int androidgrab_read_close | ( | AVFormatContext * | s1 | ) | [static] |
Close Android frame grabber (public device demuxer API).
s1 | Context from avformat core |
Definition at line 145 of file patch_ffmpeg_x11grab.c.
static int androidgrab_read_header | ( | AVFormatContext * | s1 | ) | [static] |
Initialize the android grab device demuxer (public device demuxer API).
s1 | Context from avformat core |
Definition at line 57 of file patch_ffmpeg_x11grab.c.
static int androidgrab_read_packet | ( | AVFormatContext * | s1, |
AVPacket * | pkt | ||
) | [static] |
Grab a frame from Android (public device demuxer API).
s1 | Context from avformat core |
pkt | Packet holding the grabbed frame |
Definition at line 105 of file patch_ffmpeg_x11grab.c.
const AVClass android_class [static] |
{ .class_name = "androidgrab indev", .item_name = av_default_item_name, .option = options, .version = LIBAVUTIL_VERSION_INT, }
Definition at line 160 of file patch_ffmpeg_x11grab.c.
AVInputFormat ff_x11grab_demuxer |
{ .name = "androidgrab", .long_name = NULL_IF_CONFIG_SMALL("androidgrab"), .priv_data_size = sizeof(struct androidgrab), .read_header = androidgrab_read_header, .read_packet = androidgrab_read_packet, .read_close = androidgrab_read_close, .flags = AVFMT_NOFILE, .priv_class = &android_class, }
android grabber device demuxer declaration
Definition at line 168 of file patch_ffmpeg_x11grab.c.
const AVOption options[] [static] |
{ { "width", "horizontal size", OFFSET(asc.width), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 4096, DEC }, { "height", "vertical size", OFFSET(asc.height), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 4096, DEC }, { "framerate", "max framerate", OFFSET(framerate), AV_OPT_TYPE_DOUBLE, {.dbl = 60}, 0, 60, DEC }, { NULL }, }
Definition at line 152 of file patch_ffmpeg_x11grab.c.