diff options
author | James Almer <jamrial@gmail.com> | 2024-10-23 20:01:35 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-10-23 20:06:03 -0300 |
commit | 5c622d4cc1b4a0fa5d78356275ad8e8577022162 (patch) | |
tree | ef406e2a07b2a2796b3482c333bc1f1424cce420 | |
parent | e46a506ae0ef4e803ee3c99c1258f66cf9bd1eac (diff) | |
download | ffmpeg-5c622d4cc1b4a0fa5d78356275ad8e8577022162.tar.gz |
avutil/hwcontext_vulkan: add support for AV_PIX_FMT_Y216
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavutil/hwcontext_vulkan.c | 1 | ||||
-rw-r--r-- | libavutil/vulkan.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 35660c9750..ea33c815aa 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -368,6 +368,7 @@ static const struct FFVkFormatEntry { { VK_FORMAT_B8G8R8G8_422_UNORM, AV_PIX_FMT_UYVY422, VK_IMAGE_ASPECT_COLOR_BIT, 1, 1, 1, { VK_FORMAT_R8G8B8A8_UNORM } }, { VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16, AV_PIX_FMT_Y210, VK_IMAGE_ASPECT_COLOR_BIT, 1, 1, 1, { VK_FORMAT_R16G16B16A16_UNORM } }, { VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16, AV_PIX_FMT_Y212, VK_IMAGE_ASPECT_COLOR_BIT, 1, 1, 1, { VK_FORMAT_R16G16B16A16_UNORM } }, + { VK_FORMAT_G16B16G16R16_422_UNORM, AV_PIX_FMT_Y216, VK_IMAGE_ASPECT_COLOR_BIT, 1, 1, 1, { VK_FORMAT_R16G16B16A16_UNORM } }, { VK_FORMAT_A2R10G10B10_UNORM_PACK32, AV_PIX_FMT_XV30, VK_IMAGE_ASPECT_COLOR_BIT, 1, 1, 1, { VK_FORMAT_R16G16B16A16_UNORM } }, { VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16, AV_PIX_FMT_XV36, VK_IMAGE_ASPECT_COLOR_BIT, 1, 1, 1, { VK_FORMAT_R16G16B16A16_UNORM } }, }; diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 39143c6d94..b7654d0f36 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -1325,6 +1325,7 @@ const char *ff_vk_shader_rep_fmt(enum AVPixelFormat pix_fmt, case AV_PIX_FMT_RGB48: case AV_PIX_FMT_RGBA64: case AV_PIX_FMT_Y212: + case AV_PIX_FMT_Y216: case AV_PIX_FMT_XV36: { const char *rep_tab[] = { [FF_VK_REP_NATIVE] = "rgba16ui", |