[FFmpeg-cvslog] avutil/vulkan_loader: Use smaller types
Andreas Rheinhardt
git at videolan.org
Mon Mar 4 00:02:02 EET 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Mar 3 14:26:56 2024 +0100| [674f20813d14924e814fa1c68fe72aa2a79154bf] | committer: Andreas Rheinhardt
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 at lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=674f20813d14924e814fa1c68fe72aa2a79154bf
---
libavutil/vulkan_loader.h | 6 +++---
1 file 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[] = {
More information about the ffmpeg-cvslog
mailing list