1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +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

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;