diff options
| author | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
| commit | 5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch) | |
| tree | 8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/test/testffmpeg_vulkan.h | |
Initial commit
Diffstat (limited to 'contrib/SDL-3.2.8/test/testffmpeg_vulkan.h')
| -rw-r--r-- | contrib/SDL-3.2.8/test/testffmpeg_vulkan.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/test/testffmpeg_vulkan.h b/contrib/SDL-3.2.8/test/testffmpeg_vulkan.h new file mode 100644 index 0000000..b0c6e13 --- /dev/null +++ b/contrib/SDL-3.2.8/test/testffmpeg_vulkan.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* | ||
| 2 | Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org> | ||
| 3 | |||
| 4 | This software is provided 'as-is', without any express or implied | ||
| 5 | warranty. In no event will the authors be held liable for any damages | ||
| 6 | arising from the use of this software. | ||
| 7 | |||
| 8 | Permission is granted to anyone to use this software for any purpose, | ||
| 9 | including commercial applications, and to alter it and redistribute it | ||
| 10 | freely. | ||
| 11 | */ | ||
| 12 | |||
| 13 | #include <libavutil/hwcontext.h> | ||
| 14 | #include <libavutil/hwcontext_vulkan.h> | ||
| 15 | |||
| 16 | |||
| 17 | typedef struct VulkanVideoContext VulkanVideoContext; | ||
| 18 | |||
| 19 | extern VulkanVideoContext *CreateVulkanVideoContext(SDL_Window *window); | ||
| 20 | extern void SetupVulkanRenderProperties(VulkanVideoContext *context, SDL_PropertiesID props); | ||
| 21 | extern void SetupVulkanDeviceContextData(VulkanVideoContext *context, AVVulkanDeviceContext *ctx); | ||
| 22 | extern SDL_Texture *CreateVulkanVideoTexture(VulkanVideoContext *context, AVFrame *frame, SDL_Renderer *renderer, SDL_PropertiesID props); | ||
| 23 | extern int BeginVulkanFrameRendering(VulkanVideoContext *context, AVFrame *frame, SDL_Renderer *renderer); | ||
| 24 | extern int FinishVulkanFrameRendering(VulkanVideoContext *context, AVFrame *frame, SDL_Renderer *renderer); | ||
| 25 | extern void DestroyVulkanVideoContext(VulkanVideoContext *context); | ||
