diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-27 03:03:09 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-27 03:03:09 +0200 |
commit | ebc8c69bacb7c8aa7fd1ccebddc281760a11b88e (patch) | |
tree | f1d6b3d0e364a41c405d185a7cd0176453e3bf3c /src/encoder/video/video.c | |
parent | 412cf0dbae0705ca91a16ec92dadf129eaa9424e (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.c | 4 |
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) { |