mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-05 22:40:42 +09:00
Fix cursor capture in nvidia wayland, hdr, clear background immediately in window capture
This commit is contained in:
@@ -63,6 +63,6 @@ bool gsr_capture_base_setup_cuda_textures(gsr_capture_base *self, AVFrame *frame
|
||||
void gsr_capture_base_stop(gsr_capture_base *self);
|
||||
|
||||
bool drm_create_codec_context(const char *card_path, AVCodecContext *video_codec_context, int width, int height, bool hdr, VADisplay *va_dpy);
|
||||
bool cuda_create_codec_context(CUcontext cu_ctx, AVCodecContext *video_codec_context, int width, int height, CUstream *cuda_stream);
|
||||
bool cuda_create_codec_context(CUcontext cu_ctx, AVCodecContext *video_codec_context, int width, int height, bool hdr, CUstream *cuda_stream);
|
||||
|
||||
#endif /* GSR_CAPTURE_CAPTURE_H */
|
||||
|
||||
@@ -16,7 +16,6 @@ typedef enum {
|
||||
} gsr_source_color;
|
||||
|
||||
typedef enum {
|
||||
GSR_DESTINATION_COLOR_BGR, // TODO: remove
|
||||
GSR_DESTINATION_COLOR_NV12, /* YUV420, BT709, 8-bit */
|
||||
GSR_DESTINATION_COLOR_P010 /* YUV420, BT2020, 10-bit */
|
||||
} gsr_destination_color;
|
||||
@@ -36,12 +35,13 @@ typedef struct {
|
||||
int num_destination_textures;
|
||||
|
||||
gsr_color_range color_range;
|
||||
bool load_external_image_shader;
|
||||
} gsr_color_conversion_params;
|
||||
|
||||
typedef struct {
|
||||
gsr_color_conversion_params params;
|
||||
gsr_color_uniforms uniforms[2];
|
||||
gsr_shader shaders[2];
|
||||
gsr_color_uniforms uniforms[4];
|
||||
gsr_shader shaders[4];
|
||||
|
||||
unsigned int framebuffers[2];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user