diff options
| author | dec05eba <dec05eba@protonmail.com> | 2025-09-21 03:19:56 +0200 |
|---|---|---|
| committer | dec05eba <dec05eba@protonmail.com> | 2025-09-21 03:19:56 +0200 |
| commit | 2c22782ca0af78070089938feb873beaa1d78722 (patch) | |
| tree | 2e609414f93980fc8934cb78418a565706c3852b /include | |
| parent | a4c227c43ea57aa65e10a186935930a6033fa429 (diff) | |
Dont use glGetTexLevelParameteriv, it's only available in opengl es 3.1
Diffstat (limited to 'include')
| -rw-r--r-- | include/color_conversion.h | 1 | ||||
| -rw-r--r-- | include/egl.h | 2 | ||||
| -rw-r--r-- | include/encoder/video/video.h | 4 | ||||
| -rw-r--r-- | include/window_texture.h | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/include/color_conversion.h b/include/color_conversion.h index cb074a1..e6eece6 100644 --- a/include/color_conversion.h +++ b/include/color_conversion.h @@ -46,6 +46,7 @@ typedef struct { gsr_destination_color destination_color; unsigned int destination_textures[2]; + vec2i destination_textures_size[2]; int num_destination_textures; gsr_color_range color_range; diff --git a/include/egl.h b/include/egl.h index c95d491..fb67768 100644 --- a/include/egl.h +++ b/include/egl.h @@ -118,8 +118,6 @@ typedef void(*__GLXextFuncPtr)(void); #define GL_TEXTURE_WRAP_T 0x2803 #define GL_TEXTURE_MAG_FILTER 0x2800 #define GL_TEXTURE_MIN_FILTER 0x2801 -#define GL_TEXTURE_WIDTH 0x1000 -#define GL_TEXTURE_HEIGHT 0x1001 #define GL_NEAREST 0x2600 #define GL_CLAMP_TO_EDGE 0x812F #define GL_LINEAR 0x2601 diff --git a/include/encoder/video/video.h b/include/encoder/video/video.h index 7a706b5..a77a1aa 100644 --- a/include/encoder/video/video.h +++ b/include/encoder/video/video.h @@ -15,7 +15,7 @@ struct gsr_video_encoder { void (*destroy)(gsr_video_encoder *encoder, AVCodecContext *video_codec_context); void (*copy_textures_to_frame)(gsr_video_encoder *encoder, AVFrame *frame, gsr_color_conversion *color_conversion); /* Can be NULL */ /* |textures| should be able to fit 2 elements */ - void (*get_textures)(gsr_video_encoder *encoder, unsigned int *textures, int *num_textures, gsr_destination_color *destination_color); + void (*get_textures)(gsr_video_encoder *encoder, unsigned int *textures, vec2i *texture_sizes, int *num_textures, gsr_destination_color *destination_color); void *priv; bool started; @@ -25,6 +25,6 @@ struct gsr_video_encoder { bool gsr_video_encoder_start(gsr_video_encoder *encoder, AVCodecContext *video_codec_context, AVFrame *frame); void gsr_video_encoder_destroy(gsr_video_encoder *encoder, AVCodecContext *video_codec_context); void gsr_video_encoder_copy_textures_to_frame(gsr_video_encoder *encoder, AVFrame *frame, gsr_color_conversion *color_conversion); -void gsr_video_encoder_get_textures(gsr_video_encoder *encoder, unsigned int *textures, int *num_textures, gsr_destination_color *destination_color); +void gsr_video_encoder_get_textures(gsr_video_encoder *encoder, unsigned int *textures, vec2i *texture_sizes, int *num_textures, gsr_destination_color *destination_color); #endif /* GSR_ENCODER_VIDEO_H */ diff --git a/include/window_texture.h b/include/window_texture.h index 6ee5df4..bdada33 100644 --- a/include/window_texture.h +++ b/include/window_texture.h @@ -11,6 +11,8 @@ typedef struct { unsigned int texture_id; int redirected; gsr_egl *egl; + unsigned int window_width; + unsigned int window_height; } WindowTexture; /* Returns 0 on success */ |
