aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2025-08-11 15:49:47 +0200
committerNiklas Haas <ffmpeg@haasn.dev>2025-08-12 09:01:39 +0000
commitea72804295b0044778e4bc697dfc79f31771a2a6 (patch)
tree7cb86d1f17ea9b85dfaa461bc811eb63e458e21e
parentd1d64c804e0547b04b2311f49018e8cf490572d7 (diff)
downloadffmpeg-ea72804295b0044778e4bc697dfc79f31771a2a6.tar.gz
avfilter/vf_gblur_vulkan: use AVFilterContext for logging
-rw-r--r--libavfilter/vf_gblur_vulkan.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libavfilter/vf_gblur_vulkan.c b/libavfilter/vf_gblur_vulkan.c
index fb676a7fc9..1b447e2754 100644
--- a/libavfilter/vf_gblur_vulkan.c
+++ b/libavfilter/vf_gblur_vulkan.c
@@ -96,29 +96,30 @@ static void init_gaussian_kernel(float *kernel, float sigma, float kernel_size)
}
}
-static inline void init_kernel_size(GBlurVulkanContext *s, int *out_size)
+static inline void init_kernel_size(void *log_ctx, int *out_size)
{
int size = *out_size;
if (!(size & 1)) {
- av_log(s, AV_LOG_WARNING, "The kernel size should be odd\n");
+ av_log(log_ctx, AV_LOG_WARNING, "The kernel size should be odd\n");
size++;
}
*out_size = (size >> 1) + 1;
}
-static av_cold void init_gaussian_params(GBlurVulkanContext *s)
+static av_cold void init_gaussian_params(AVFilterContext *ctx)
{
+ GBlurVulkanContext *s = ctx->priv;
if (s->sigmaV <= 0)
s->sigmaV = s->sigma;
- init_kernel_size(s, &s->size);
+ init_kernel_size(ctx, &s->size);
if (s->sizeV <= 0)
s->sizeV = s->size;
else
- init_kernel_size(s, &s->sizeV);
+ init_kernel_size(ctx, &s->sizeV);
}
static int init_gblur_pipeline(GBlurVulkanContext *s,
@@ -235,7 +236,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
},
};
- init_gaussian_params(s);
+ init_gaussian_params(ctx);
{
shd = &s->shd_hor;