diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-03 14:26:56 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-03 22:55:52 +0100 |
commit | 674f20813d14924e814fa1c68fe72aa2a79154bf (patch) | |
tree | 6de4d5cb577d43574e3af53b53d1649bf5177314 | |
parent | e9b4f4461f5156fed5514d5310682a0ae6a35230 (diff) | |
download | ffmpeg-674f20813d14924e814fa1c68fe72aa2a79154bf.tar.gz |
avutil/vulkan_loader: Use smaller types
Saves 16B per entry here (four of these 16 bytes are padding);
leads to 1776 B of savings in each file that uses
ff_vk_load_functions().
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavutil/vulkan_loader.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/vulkan_loader.h b/libavutil/vulkan_loader.h index 07b6316089..37ce339e1d 100644 --- a/libavutil/vulkan_loader.h +++ b/libavutil/vulkan_loader.h @@ -97,9 +97,9 @@ static inline int ff_vk_load_functions(AVHWDeviceContext *ctx, AVVulkanDeviceContext *hwctx = ctx->hwctx; static const struct FunctionLoadInfo { - int req_inst; - int req_dev; - size_t struct_offset; + char req_inst; + char req_dev; + uint16_t struct_offset; FFVulkanExtensions ext_flag; const char *name; } vk_load_info[] = { |