aboutsummaryrefslogtreecommitdiff
path: root/src/encoder/video
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-29 04:56:25 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-29 04:56:25 +0200
commit0eb9ce003d2b2086c708272e321c6dfb2557c8bd (patch)
treecdc2e1250c4add10645e31a5d7a97e8bf53a2003 /src/encoder/video
parentebc8c69bacb7c8aa7fd1ccebddc281760a11b88e (diff)
Cleanup rc
Diffstat (limited to 'src/encoder/video')
-rw-r--r--src/encoder/video/vulkan.c6
1 files changed, 5 insertions, 1 deletions
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;
}