MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / preinit

Function preinit

libavfilter/vf_scale.c:310–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310static av_cold int preinit(AVFilterContext *ctx)
311{
312 ScaleContext *scale = ctx->priv;
313
314 scale->sws = sws_alloc_context();
315 if (!scale->sws)
316 return AVERROR(ENOMEM);
317
318 // set threads=0, so we can later check whether the user modified it
319 scale->sws->threads = 0;
320
321 ff_framesync_preinit(&scale->fs);
322
323 return 0;
324}
325
326static int do_scale(FFFrameSync *fs);
327

Callers

nothing calls this directly

Calls 2

sws_alloc_contextFunction · 0.85
ff_framesync_preinitFunction · 0.85

Tested by

no test coverage detected