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

Function ff_thread_can_start_frame

libavcodec/pthread_frame.c:1008–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1006}
1007
1008int ff_thread_can_start_frame(AVCodecContext *avctx)
1009{
1010 if ((avctx->active_thread_type & FF_THREAD_FRAME) &&
1011 ffcodec(avctx->codec)->update_thread_context) {
1012 PerThreadContext *p = avctx->internal->thread_ctx;
1013
1014 if (atomic_load(&p->state) != STATE_SETTING_UP)
1015 return 0;
1016 }
1017
1018 return 1;
1019}
1020
1021static int thread_get_buffer_internal(AVCodecContext *avctx, AVFrame *f, int flags)
1022{

Callers

nothing calls this directly

Calls 1

ffcodecFunction · 0.85

Tested by

no test coverage detected