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

Function ff_thread_init

libavcodec/pthread.c:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72av_cold int ff_thread_init(AVCodecContext *avctx)
73{
74 validate_thread_parameters(avctx);
75
76 if (avctx->active_thread_type&FF_THREAD_SLICE)
77 return ff_slice_thread_init(avctx);
78 else if (avctx->active_thread_type&FF_THREAD_FRAME)
79 return ff_frame_thread_init(avctx);
80
81 return 0;
82}
83
84av_cold void ff_thread_free(AVCodecContext *avctx)
85{

Callers 1

avcodec_open2Function · 0.85

Calls 3

ff_slice_thread_initFunction · 0.85
ff_frame_thread_initFunction · 0.85

Tested by

no test coverage detected