aboutsummaryrefslogtreecommitdiff
path: root/src/encoder/video/video.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-27 03:03:09 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-27 03:03:09 +0200
commitebc8c69bacb7c8aa7fd1ccebddc281760a11b88e (patch)
treef1d6b3d0e364a41c405d185a7cd0176453e3bf3c /src/encoder/video/video.c
parent412cf0dbae0705ca91a16ec92dadf129eaa9424e (diff)
Add vulkan video encoding option (-k h264_vulkan). WIP, not fully hardware accelerated yet
Diffstat (limited to 'src/encoder/video/video.c')
-rw-r--r--src/encoder/video/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoder/video/video.c b/src/encoder/video/video.c
index 9b0def0..76d53b0 100644
--- a/src/encoder/video/video.c
+++ b/src/encoder/video/video.c
@@ -9,10 +9,10 @@ bool gsr_video_encoder_start(gsr_video_encoder *encoder, AVCodecContext *video_c
return res;
}
-void gsr_video_encoder_copy_textures_to_frame(gsr_video_encoder *encoder, AVFrame *frame) {
+void gsr_video_encoder_copy_textures_to_frame(gsr_video_encoder *encoder, AVFrame *frame, gsr_color_conversion *color_conversion) {
assert(encoder->started);
if(encoder->copy_textures_to_frame)
- encoder->copy_textures_to_frame(encoder, frame);
+ encoder->copy_textures_to_frame(encoder, frame, color_conversion);
}
void gsr_video_encoder_get_textures(gsr_video_encoder *encoder, unsigned int *textures, int *num_textures, gsr_destination_color *destination_color) {