diff options
author | Wu Jianhua <jianhua.wu-at-intel.com@ffmpeg.org> | 2022-01-02 22:51:40 +0800 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-01-03 03:17:43 +0100 |
commit | 68d0a7e446e0620e7eb9c8e1d93c4ed42f8c8a0a (patch) | |
tree | 0b43d866263f7f46c490534bb8dcf441d68f8fd9 | |
parent | c7c37a8f226cd6ed699c242358d0441faabc80f9 (diff) | |
download | ffmpeg-68d0a7e446e0620e7eb9c8e1d93c4ed42f8c8a0a.tar.gz |
avfilter/vf_scale_vulkan: align struct ScaleVulkanContext
On 64 bit Operating System, sizeof(ScaleVulkanContext):
reduce from 2400 to 2392 on Linux
reduce from 2416 to 2408 on Windows
Signed-off-by: Wu Jianhua <jianhua.wu@intel.com>
-rw-r--r-- | libavfilter/vf_scale_vulkan.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavfilter/vf_scale_vulkan.c b/libavfilter/vf_scale_vulkan.c index cfce5ab1f8..c87a8d7e2e 100644 --- a/libavfilter/vf_scale_vulkan.c +++ b/libavfilter/vf_scale_vulkan.c @@ -35,7 +35,6 @@ enum ScalerFunc { typedef struct ScaleVulkanContext { FFVulkanContext vkctx; - int initialized; FFVkQueueFamilyCtx qf; FFVkExecContext *exec; FFVulkanPipeline *pl; @@ -46,11 +45,14 @@ typedef struct ScaleVulkanContext { VkDescriptorImageInfo output_images[3]; VkDescriptorBufferInfo params_desc; - enum ScalerFunc scaler; char *out_format_string; - enum AVColorRange out_range; char *w_expr; char *h_expr; + + enum ScalerFunc scaler; + enum AVColorRange out_range; + + int initialized; } ScaleVulkanContext; static const char scale_bilinear[] = { |