aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/encoder
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-09-21 03:19:56 +0200
committerdec05eba <dec05eba@protonmail.com>2025-09-21 03:19:56 +0200
commit2c22782ca0af78070089938feb873beaa1d78722 (patch)
tree2e609414f93980fc8934cb78418a565706c3852b /include/encoder
parenta4c227c43ea57aa65e10a186935930a6033fa429 (diff)
Dont use glGetTexLevelParameteriv, it's only available in opengl es 3.1
Diffstat (limited to 'include/encoder')
-rw-r--r--include/encoder/video/video.h4
1 files changed, 2 insertions, 2 deletions
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 */