Add vulkan video encoding option (-k h264_vulkan). WIP, not fully hardware accelerated yet

This commit is contained in:
dec05eba
2024-09-27 03:03:09 +02:00
parent 412cf0dbae
commit ebc8c69bac
14 changed files with 435 additions and 38 deletions

View File

@@ -84,7 +84,7 @@ void gsr_video_encoder_software_stop(gsr_video_encoder_software *self, AVCodecCo
self->target_textures[1] = 0;
}
static void gsr_video_encoder_software_copy_textures_to_frame(gsr_video_encoder *encoder, AVFrame *frame) {
static void gsr_video_encoder_software_copy_textures_to_frame(gsr_video_encoder *encoder, AVFrame *frame, gsr_color_conversion *color_conversion) {
gsr_video_encoder_software *self = encoder->priv;
// TODO: hdr support
const unsigned int formats[2] = { GL_RED, GL_RG };