Feature/xcb grabber (#912)

* Add Xcb grabber

* update compile instruction

Signed-off-by: Paulchen Panther <Paulchen-Panter@protonmail.com>

* Fix problem on resolution change + Make XCB default if X11 is not avaialable

* Fix decimation problem

Co-authored-by: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com>
Co-authored-by: Paulchen Panther <Paulchen-Panter@protonmail.com>
This commit is contained in:
Murat Seker
2020-08-03 12:31:39 +02:00
committed by GitHub
parent 11d7614591
commit 13205a9d11
38 changed files with 1545 additions and 20 deletions

View File

@@ -0,0 +1,55 @@
#pragma once
#include <xcb/randr.h>
#include <xcb/shm.h>
#include <xcb/xcb.h>
#include <xcb/xcb_image.h>
struct GetImage
{
typedef xcb_get_image_reply_t ResponseType;
static constexpr auto RequestFunction = xcb_get_image;
static constexpr auto ReplyFunction = xcb_get_image_reply;
};
struct GetGeometry
{
typedef xcb_get_geometry_reply_t ResponseType;
static constexpr auto RequestFunction = xcb_get_geometry;
static constexpr auto ReplyFunction = xcb_get_geometry_reply;
};
struct ShmQueryVersion
{
typedef xcb_shm_query_version_reply_t ResponseType;
static constexpr auto RequestFunction = xcb_shm_query_version;
static constexpr auto ReplyFunction = xcb_shm_query_version_reply;
};
struct RenderQueryVersion
{
typedef xcb_render_query_version_reply_t ResponseType;
static constexpr auto RequestFunction = xcb_render_query_version;
static constexpr auto ReplyFunction = xcb_render_query_version_reply;
};
struct ShmGetImage
{
typedef xcb_shm_get_image_reply_t ResponseType;
static constexpr auto RequestFunction = xcb_shm_get_image;
static constexpr auto ReplyFunction = xcb_shm_get_image_reply;
};
struct RenderQueryPictFormats
{
typedef xcb_render_query_pict_formats_reply_t ResponseType;
static constexpr auto RequestFunction = xcb_render_query_pict_formats;
static constexpr auto ReplyFunction = xcb_render_query_pict_formats_reply;
};