From 0eb9ce003d2b2086c708272e321c6dfb2557c8bd Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 29 Sep 2024 04:56:25 +0200 Subject: Cleanup rc --- src/encoder/video/vulkan.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/encoder') diff --git a/src/encoder/video/vulkan.c b/src/encoder/video/vulkan.c index cd6b592..15536d0 100644 --- a/src/encoder/video/vulkan.c +++ b/src/encoder/video/vulkan.c @@ -30,8 +30,12 @@ typedef struct { } gsr_video_encoder_vulkan; static bool gsr_video_encoder_vulkan_setup_context(gsr_video_encoder_vulkan *self, AVCodecContext *video_codec_context) { + AVDictionary *options = NULL; + //av_dict_set(&options, "linear_images", "1", 0); + //av_dict_set(&options, "disable_multiplane", "1", 0); + // TODO: Use correct device - if(av_hwdevice_ctx_create(&self->device_ctx, AV_HWDEVICE_TYPE_VULKAN, NULL, NULL, 0) < 0) { + if(av_hwdevice_ctx_create(&self->device_ctx, AV_HWDEVICE_TYPE_VULKAN, NULL, options, 0) < 0) { fprintf(stderr, "gsr error: gsr_video_encoder_vulkan_setup_context: failed to create hardware device context\n"); return false; } -- cgit v1.2.3