mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Support taking a screenshot (-o image.jpg/image.png)
This commit is contained in:
@@ -14,7 +14,6 @@ typedef struct {
|
||||
gsr_color_depth color_depth;
|
||||
gsr_color_range color_range;
|
||||
bool record_cursor;
|
||||
bool use_software_video_encoder;
|
||||
vec2i output_resolution;
|
||||
} gsr_capture_nvfbc_params;
|
||||
|
||||
|
||||
@@ -22,7 +22,8 @@ typedef enum {
|
||||
|
||||
typedef enum {
|
||||
GSR_DESTINATION_COLOR_NV12, /* YUV420, BT709, 8-bit */
|
||||
GSR_DESTINATION_COLOR_P010 /* YUV420, BT2020, 10-bit */
|
||||
GSR_DESTINATION_COLOR_P010, /* YUV420, BT2020, 10-bit */
|
||||
GSR_DESTINATION_COLOR_RGB8
|
||||
} gsr_destination_color;
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -104,11 +104,13 @@ typedef void(*__GLXextFuncPtr)(void);
|
||||
#define GL_RG 0x8227
|
||||
#define GL_RGB 0x1907
|
||||
#define GL_RGBA 0x1908
|
||||
#define GL_RGB8 0x8051
|
||||
#define GL_RGBA8 0x8058
|
||||
#define GL_R8 0x8229
|
||||
#define GL_RG8 0x822B
|
||||
#define GL_R16 0x822A
|
||||
#define GL_RG16 0x822C
|
||||
#define GL_RGB16 0x8054
|
||||
#define GL_UNSIGNED_BYTE 0x1401
|
||||
#define GL_COLOR_BUFFER_BIT 0x00004000
|
||||
#define GL_TEXTURE_WRAP_S 0x2802
|
||||
|
||||
15
include/encoder/video/image.h
Normal file
15
include/encoder/video/image.h
Normal 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 */
|
||||
Reference in New Issue
Block a user