Lines Matching refs:thread_context
1347 s->thread_context[0] = s;
1352 s->thread_context[i] = av_malloc(sizeof(MpegEncContext));
1353 memcpy(s->thread_context[i], s, sizeof(MpegEncContext));
1357 if (init_duplicate_context(s->thread_context[i]) < 0)
1359 s->thread_context[i]->start_mb_y =
1361 s->thread_context[i]->end_mb_y =
1444 free_duplicate_context(s->thread_context[i]);
1447 av_freep(&s->thread_context[i]);
1477 s->thread_context[0] = s;
1483 s->thread_context[i] = av_malloc(sizeof(MpegEncContext));
1484 memcpy(s->thread_context[i], s, sizeof(MpegEncContext));
1488 if ((err = init_duplicate_context(s->thread_context[i])) < 0)
1490 s->thread_context[i]->start_mb_y =
1492 s->thread_context[i]->end_mb_y =
1518 free_duplicate_context(s->thread_context[i]);
1521 av_freep(&s->thread_context[i]);