vulkan: add ff_vk_count_images()

This commit is contained in:
Lynne 2023-01-11 09:37:18 +01:00
parent b5eaeb1f13
commit 758f8b26b9
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -240,6 +240,15 @@ typedef struct FFVulkanContext {
enum AVPixelFormat input_format;
} FFVulkanContext;
static inline int ff_vk_count_images(AVVkFrame *f)
{
int cnt = 0;
while (f->img[cnt])
cnt++;
return cnt;
}
/* Identity mapping - r = r, b = b, g = g, a = a */
extern const VkComponentMapping ff_comp_identity_map;