Classes | Defines | Functions | Variables
patch_ffmpeg_x11grab.c File Reference
#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>
Include dependency graph for patch_ffmpeg_x11grab.c:

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 Documentation

#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.


Function Documentation

static int androidgrab_read_close ( AVFormatContext *  s1) [static]

Close Android frame grabber (public device demuxer API).

Parameters:
s1Context from avformat core
Returns:
0 success, !0 failure

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).

Parameters:
s1Context from avformat core
Returns:
  • AVERROR(ENOMEM) no memory left
  • AVERROR(EIO) other failure case
  • 0 success

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).

Parameters:
s1Context from avformat core
pktPacket holding the grabbed frame
Returns:
frame size in bytes

Definition at line 105 of file patch_ffmpeg_x11grab.c.


Variable Documentation

const AVClass android_class [static]
Initial value:
 {
    .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
Initial value:
 {
    .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]
Initial value:
 {
    
    { "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.



dji_ronin
Author(s):
autogenerated on Sat Jun 8 2019 20:15:32