FFmpeg
|
X11 frame device demuxer. More...
#include "config.h"
#include "libavformat/internal.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/time.h"
#include <X11/cursorfont.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xlibint.h>
#include <X11/Xproto.h>
#include <X11/Xutil.h>
#include <sys/shm.h>
#include <X11/extensions/shape.h>
#include <X11/extensions/XShm.h>
#include <X11/extensions/Xfixes.h>
#include "avdevice.h"
Go to the source code of this file.
Data Structures | |
struct | x11grab |
X11 Device Demuxer context. More... | |
Macros | |
#define | REGION_WIN_BORDER 3 |
#define | OFFSET(x) offsetof(struct x11grab, x) |
#define | DEC AV_OPT_FLAG_DECODING_PARAM |
Functions | |
static void | x11grab_draw_region_win (struct x11grab *s) |
Draw grabbing region window. More... | |
static void | x11grab_region_win_init (struct x11grab *s) |
Initialize grabbing region window. More... | |
static int | x11grab_read_header (AVFormatContext *s1) |
Initialize the x11 grab device demuxer (public device demuxer API). More... | |
static void | paint_mouse_pointer (XImage *image, struct x11grab *s) |
Paint a mouse pointer in an X11 image. More... | |
static int | xget_zpixmap (Display *dpy, Drawable d, XImage *image, int x, int y) |
Read new data in the image structure. More... | |
static int | x11grab_read_packet (AVFormatContext *s1, AVPacket *pkt) |
Grab a frame from x11 (public device demuxer API). More... | |
static int | x11grab_read_close (AVFormatContext *s1) |
Close x11 frame grabber (public device demuxer API). More... | |
Variables | |
static const AVOption | options [] |
static const AVClass | x11_class |
AVInputFormat | ff_x11grab_demuxer |
x11 grabber device demuxer declaration More... | |
Detailed Description
X11 frame device demuxer.
Definition in file x11grab.c.
Macro Definition Documentation
#define DEC AV_OPT_FLAG_DECODING_PARAM |
#define REGION_WIN_BORDER 3 |
Definition at line 84 of file x11grab.c.
Referenced by x11grab_draw_region_win(), x11grab_read_packet(), and x11grab_region_win_init().
Function Documentation
Paint a mouse pointer in an X11 image.
- Parameters
-
image image to paint the mouse pointer to s context used to retrieve original grabbing rectangle coordinates
Definition at line 339 of file x11grab.c.
Referenced by x11grab_read_packet().
Draw grabbing region window.
- Parameters
-
s x11grab context
Definition at line 91 of file x11grab.c.
Referenced by x11grab_read_packet(), and x11grab_region_win_init().
|
static |
|
static |
Initialize the x11 grab device demuxer (public device demuxer API).
- Parameters
-
s1 Context from avformat core
- Returns
- AVERROR(ENOMEM) no memory left
- AVERROR(EIO) other failure case
- 0 success
|
static |
Initialize grabbing region window.
- Parameters
-
s x11grab context
Definition at line 116 of file x11grab.c.
Referenced by x11grab_read_packet().
|
static |
Read new data in the image structure.
- Parameters
-
dpy X11 display to grab from d image Image where the grab will be put x Top-Left grabbing rectangle horizontal coordinate y Top-Left grabbing rectangle vertical coordinate
- Returns
- 0 if error, !0 if successful
Definition at line 415 of file x11grab.c.
Referenced by x11grab_read_packet().
Variable Documentation
AVInputFormat ff_x11grab_demuxer |
x11 grabber device demuxer declaration
|
static |
|
static |
Generated on Fri Dec 20 2024 06:56:17 for FFmpeg by 1.8.11