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.
#define REGION_WIN_BORDER 3 |
#define OFFSET |
( |
|
x | ) |
offsetof(struct x11grab, x) |
static void x11grab_draw_region_win |
( |
struct x11grab * |
s | ) |
|
|
static |
static void x11grab_region_win_init |
( |
struct x11grab * |
s | ) |
|
|
static |
Initialize the x11 grab device demuxer (public device demuxer API).
- Parameters
-
- Returns
-
Definition at line 159 of file x11grab.c.
static void paint_mouse_pointer |
( |
XImage * |
image, |
|
|
struct x11grab * |
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 349 of file x11grab.c.
Referenced by x11grab_read_packet().
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 425 of file x11grab.c.
Referenced by x11grab_read_packet().
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 469 of file x11grab.c.
Close x11 frame grabber (public device demuxer API).
- Parameters
-
- Returns
- 0 success, !0 failure
Definition at line 589 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",
{ NULL },
}
Definition at line 617 of file x11grab.c.
Initial value:= {
.class_name = "X11grab indev",
}
Definition at line 631 of file x11grab.c.
Initial value:= {
.name = "x11grab",
.priv_data_size =
sizeof(
struct x11grab),
}
x11 grabber device demuxer declaration
Definition at line 640 of file x11grab.c.