#include "config.h"
#include <stdlib.h>
#include <xcb/xcb.h>
#include "libavutil/internal.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/time.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
Go to the source code of this file.
|
static int | xcbgrab_reposition (AVFormatContext *s, xcb_query_pointer_reply_t *p, xcb_get_geometry_reply_t *geo) |
|
static void | xcbgrab_image_reply_free (void *opaque, uint8_t *data) |
|
static int | xcbgrab_frame (AVFormatContext *s, AVPacket *pkt) |
|
static int64_t | wait_frame (AVFormatContext *s, AVPacket *pkt) |
|
static void | xcbgrab_update_region (AVFormatContext *s) |
|
static int | xcbgrab_read_packet (AVFormatContext *s, AVPacket *pkt) |
|
static av_cold int | xcbgrab_read_close (AVFormatContext *s) |
|
static xcb_screen_t * | get_screen (const xcb_setup_t *setup, int screen_num) |
|
static int | pixfmt_from_pixmap_format (AVFormatContext *s, int depth, int *pix_fmt, int *bpp) |
|
static int | create_stream (AVFormatContext *s) |
|
static void | draw_rectangle (AVFormatContext *s) |
|
static void | setup_window (AVFormatContext *s) |
|
static av_cold int | xcbgrab_read_header (AVFormatContext *s) |
|
◆ FOLLOW_CENTER
◆ OFFSET
◆ xcbgrab_reposition()
static int xcbgrab_reposition |
( |
AVFormatContext * |
s, |
|
|
xcb_query_pointer_reply_t * |
p, |
|
|
xcb_get_geometry_reply_t * |
geo |
|
) |
| |
|
static |
◆ xcbgrab_image_reply_free()
static void xcbgrab_image_reply_free |
( |
void * |
opaque, |
|
|
uint8_t * |
data |
|
) |
| |
|
static |
◆ xcbgrab_frame()
◆ wait_frame()
◆ xcbgrab_update_region()
◆ xcbgrab_read_packet()
◆ xcbgrab_read_close()
◆ get_screen()
static xcb_screen_t* get_screen |
( |
const xcb_setup_t * |
setup, |
|
|
int |
screen_num |
|
) |
| |
|
static |
◆ pixfmt_from_pixmap_format()
◆ create_stream()
◆ draw_rectangle()
◆ setup_window()
◆ xcbgrab_read_header()
◆ options
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, { .i64 = -1 }, INT_MIN, INT_MAX,
D,
"follow_mouse" },
{
"region_border",
"Set the region border thickness.",
OFFSET(region_border),
AV_OPT_TYPE_INT, { .i64 = 3 }, 1, 128,
D },
}
Definition at line 82 of file xcbgrab.c.
◆ xcbgrab_class
Initial value:= {
.class_name = "xcbgrab indev",
}
Definition at line 98 of file xcbgrab.c.
◆ ff_xcbgrab_demuxer