| 56 | } |
| 57 | |
| 58 | static int thread_execute(AVFilterContext *ctx, avfilter_action_func *func, |
| 59 | void *arg, int *ret, int nb_jobs) |
| 60 | { |
| 61 | ThreadContext *c = fffiltergraph(ctx->graph)->thread; |
| 62 | |
| 63 | if (nb_jobs <= 0) |
| 64 | return 0; |
| 65 | c->ctx = ctx; |
| 66 | c->arg = arg; |
| 67 | c->func = func; |
| 68 | c->rets = ret; |
| 69 | |
| 70 | avpriv_slicethread_execute(c->thread, nb_jobs, 0); |
| 71 | return 0; |
| 72 | } |
| 73 | |
| 74 | static int thread_init_internal(ThreadContext *c, int nb_threads) |
| 75 | { |
nothing calls this directly
no test coverage detected