You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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>
This commit is contained in:
@@ -97,9 +97,9 @@ static inline int ff_vk_load_functions(AVHWDeviceContext *ctx,
|
|||||||
AVVulkanDeviceContext *hwctx = ctx->hwctx;
|
AVVulkanDeviceContext *hwctx = ctx->hwctx;
|
||||||
|
|
||||||
static const struct FunctionLoadInfo {
|
static const struct FunctionLoadInfo {
|
||||||
int req_inst;
|
char req_inst;
|
||||||
int req_dev;
|
char req_dev;
|
||||||
size_t struct_offset;
|
uint16_t struct_offset;
|
||||||
FFVulkanExtensions ext_flag;
|
FFVulkanExtensions ext_flag;
|
||||||
const char *name;
|
const char *name;
|
||||||
} vk_load_info[] = {
|
} vk_load_info[] = {
|
||||||
|
Reference in New Issue
Block a user