This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* How to use any randomly retrieved VkImages in ffmpeg-related code. */ | |
| /* If you don't have a device initialized, but you have a VkDevice, | |
| * you have to import it. */ | |
| { | |
| AVBufferRef *ctx_ref = av_hwdevice_ctx_alloc(AV_HWDEVICE_TYPE_VULKAN); | |
| AVHWDeviceContext *ctx = (AVHWDeviceContext *)ctx_ref->data; | |
| AVVulkanDeviceContext *hwctx = ctx->hwctx; | |
| /* Mandatory. */ |
OlderNewer