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

Function alloc_progress

libavcodec/vvc/refs.c:109–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109static FrameProgress *alloc_progress(void)
110{
111 FrameProgress *p = av_refstruct_alloc_ext(sizeof(*p), 0, NULL, free_progress);
112
113 if (p) {
114 p->has_lock = !ff_mutex_init(&p->lock, NULL);
115 p->has_cond = !ff_cond_init(&p->cond, NULL);
116 if (!p->has_lock || !p->has_cond)
117 av_refstruct_unref(&p);
118 }
119 return p;
120}
121
122static VVCFrame *alloc_frame(VVCContext *s, VVCFrameContext *fc)
123{

Callers 1

alloc_frameFunction · 0.85

Calls 4

av_refstruct_alloc_extFunction · 0.85
ff_mutex_initFunction · 0.85
ff_cond_initFunction · 0.85
av_refstruct_unrefFunction · 0.85

Tested by

no test coverage detected