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:
parent
b5eaeb1f13
commit
758f8b26b9
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user