2023-04-07 03:31:46 +00:00
|
|
|
#ifndef GSR_CAPTURE_KMS_VAAPI_H
|
|
|
|
#define GSR_CAPTURE_KMS_VAAPI_H
|
|
|
|
|
|
|
|
#include "../vec2.h"
|
2023-04-14 07:36:24 +00:00
|
|
|
#include "../utils.h"
|
|
|
|
#include "capture.h"
|
2023-04-07 03:31:46 +00:00
|
|
|
|
|
|
|
typedef struct _XDisplay Display;
|
|
|
|
|
|
|
|
typedef struct {
|
2023-07-21 16:56:34 +00:00
|
|
|
gsr_egl *egl;
|
2023-07-21 17:12:24 +00:00
|
|
|
Display *dpy;
|
2023-04-07 03:31:46 +00:00
|
|
|
const char *display_to_capture; /* if this is "screen", then the entire x11 screen is captured (all displays). A copy is made of this */
|
2023-04-14 07:36:24 +00:00
|
|
|
gsr_gpu_info gpu_inf;
|
2023-04-16 20:48:22 +00:00
|
|
|
const char *card_path; /* reference */
|
2023-07-17 20:27:14 +00:00
|
|
|
bool wayland;
|
2023-04-07 03:31:46 +00:00
|
|
|
} gsr_capture_kms_vaapi_params;
|
|
|
|
|
|
|
|
gsr_capture* gsr_capture_kms_vaapi_create(const gsr_capture_kms_vaapi_params *params);
|
|
|
|
|
|
|
|
#endif /* GSR_CAPTURE_KMS_VAAPI_H */
|