mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-05 22:40:42 +09:00
Take screenshot with XGetImage on x11 to workaround nvidia driver (nvfbc) limitation that only allows one nvfbc session at a time
This commit is contained in:
18
include/capture/ximage.h
Normal file
18
include/capture/ximage.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef GSR_CAPTURE_XIMAGE_H
|
||||
#define GSR_CAPTURE_XIMAGE_H
|
||||
|
||||
#include "capture.h"
|
||||
#include "../vec2.h"
|
||||
|
||||
typedef struct {
|
||||
gsr_egl *egl;
|
||||
const char *display_to_capture; /* A copy is made of this */
|
||||
bool record_cursor;
|
||||
vec2i output_resolution;
|
||||
vec2i region_size;
|
||||
vec2i region_position;
|
||||
} gsr_capture_ximage_params;
|
||||
|
||||
gsr_capture* gsr_capture_ximage_create(const gsr_capture_ximage_params *params);
|
||||
|
||||
#endif /* GSR_CAPTURE_XIMAGE_H */
|
||||
Reference in New Issue
Block a user