mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
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:
55
libsrc/grabber/xcb/XcbCommands.h
Normal file
55
libsrc/grabber/xcb/XcbCommands.h
Normal 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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user