1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

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;