mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-04 22:10:42 +09:00
Refactor xcomposite
Move common code between cuda/vaapi implementations into xcomposite file. This also fixes limited/full range colors on nvidia.
This commit is contained in:
@@ -2,16 +2,10 @@
|
||||
#define GSR_CAPTURE_XCOMPOSITE_VAAPI_H
|
||||
|
||||
#include "capture.h"
|
||||
#include "../egl.h"
|
||||
#include "../vec2.h"
|
||||
#include "../color_conversion.h"
|
||||
#include "xcomposite.h"
|
||||
|
||||
typedef struct {
|
||||
gsr_egl *egl;
|
||||
Window window;
|
||||
bool follow_focused; /* If this is set then |window| is ignored */
|
||||
vec2i region_size; /* This is currently only used with |follow_focused| */
|
||||
gsr_color_range color_range;
|
||||
gsr_capture_xcomposite_params base;
|
||||
} gsr_capture_xcomposite_vaapi_params;
|
||||
|
||||
gsr_capture* gsr_capture_xcomposite_vaapi_create(const gsr_capture_xcomposite_vaapi_params *params);
|
||||
|
||||
Reference in New Issue
Block a user