@@ -74,7 +74,6 @@ typedef struct UnsharpContext {
74
74
int bitdepth ;
75
75
int bps ;
76
76
int nb_threads ;
77
- int (* apply_unsharp )(AVFilterContext * ctx , AVFrame * in , AVFrame * out );
78
77
int (* unsharp_slice )(AVFilterContext * ctx , void * arg , int jobnr , int nb_jobs );
79
78
} UnsharpContext ;
80
79
@@ -173,7 +172,7 @@ static int name##_##nbits(AVFilterContext *ctx, void *arg, int jobnr, int nb_job
173
172
DEF_UNSHARP_SLICE_FUNC (unsharp_slice , 16 )
174
173
DEF_UNSHARP_SLICE_FUNC (unsharp_slice , 8 )
175
174
176
- static int apply_unsharp_c (AVFilterContext * ctx , AVFrame * in , AVFrame * out )
175
+ static int apply_unsharp (AVFilterContext * ctx , AVFrame * in , AVFrame * out )
177
176
{
178
177
AVFilterLink * inlink = ctx -> inputs [0 ];
179
178
UnsharpContext * s = ctx -> priv ;
@@ -240,7 +239,6 @@ static av_cold int init(AVFilterContext *ctx)
240
239
SET_FILTER_PARAM (chroma , c );
241
240
SET_FILTER_PARAM (alpha , a );
242
241
243
- s -> apply_unsharp = apply_unsharp_c ;
244
242
return 0 ;
245
243
}
246
244
@@ -337,7 +335,6 @@ static av_cold void uninit(AVFilterContext *ctx)
337
335
338
336
static int filter_frame (AVFilterLink * link , AVFrame * in )
339
337
{
340
- UnsharpContext * s = link -> dst -> priv ;
341
338
AVFilterLink * outlink = link -> dst -> outputs [0 ];
342
339
AVFrame * out ;
343
340
int ret = 0 ;
@@ -349,7 +346,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
349
346
}
350
347
av_frame_copy_props (out , in );
351
348
352
- ret = s -> apply_unsharp (link -> dst , in , out );
349
+ ret = apply_unsharp (link -> dst , in , out );
353
350
354
351
av_frame_free (& in );
355
352
0 commit comments