X11 frame device demuxer.
More...
#include "config.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include <time.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>
Go to the source code of this file.
Detailed Description
Macro Definition Documentation
#define OFFSET |
( |
|
x | ) |
offsetof(struct x11_grab, x) |
#define REGION_WIN_BORDER 3 |
Function Documentation
static void paint_mouse_pointer |
( |
XImage * |
image, |
|
|
struct x11_grab * |
s |
|
) |
| |
|
static |
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 334 of file x11grab.c.
Referenced by x11grab_read_packet().
Close x11 frame grabber (public device demuxer API).
- Parameters
-
s1 | Context from avformat core |
- Returns
- 0 success, !0 failure
Definition at line 556 of file x11grab.c.
Initialize the x11 grab device demuxer (public device demuxer API).
- Parameters
-
s1 | Context from avformat core |
ap | Parameters from avformat core |
- Returns
-
Definition at line 157 of file x11grab.c.
Grab a frame from x11 (public device demuxer API).
- Parameters
-
s1 | Context from avformat core |
pkt | Packet holding the brabbed frame |
- Returns
- frame size in bytes
Definition at line 446 of file x11grab.c.
static int xget_zpixmap |
( |
Display * |
dpy, |
|
|
Drawable |
d, |
|
|
XImage * |
image, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
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 402 of file x11grab.c.
Referenced by x11grab_read_packet().
Variable Documentation
Initial value: {
.name = "x11grab",
.priv_data_size =
sizeof(
struct x11_grab),
}
x11 grabber device demuxer declaration
Definition at line 603 of file x11grab.c.
Initial value: {
{ "follow_mouse", "Move the grabbing region when the mouse pointer reaches within specified amount of pixels to the edge of region.",
{
"centered",
"Keep the mouse pointer at the center of grabbing region when following.", 0,
AV_OPT_TYPE_CONST, { -1 }, INT_MIN, INT_MAX,
DEC,
"follow_mouse" },
}
Definition at line 584 of file x11grab.c.
Initial value: {
.class_name = "X11grab indev",
}
Definition at line 595 of file x11grab.c.