Support taking a screenshot (-o image.jpg/image.png)

This commit is contained in:
dec05eba
2025-02-16 14:21:17 +01:00
parent 62bbdd7c30
commit 1b5cde0789
10 changed files with 371 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
#ifndef GSR_ENCODER_VIDEO_IMAGE_H
#define GSR_ENCODER_VIDEO_IMAGE_H
#include "video.h"
typedef struct gsr_egl gsr_egl;
typedef struct {
gsr_egl *egl;
gsr_color_depth color_depth;
} gsr_video_encoder_image_params;
gsr_video_encoder* gsr_video_encoder_image_create(const gsr_video_encoder_image_params *params);
#endif /* GSR_ENCODER_VIDEO_IMAGE_H */