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

Function refcount_init

libavutil/refstruct.c:89–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89static void refcount_init(RefCount *ref, AVRefStructOpaque opaque,
90 void (*free_cb)(AVRefStructOpaque opaque, void *obj))
91{
92 atomic_init(&ref->refcount, 1);
93 ref->opaque = opaque;
94 ref->free_cb = free_cb;
95 ref->free = av_free;
96
97#if REFSTRUCT_CHECKED
98 ref->cookie = REFSTRUCT_COOKIE;
99#endif
100}
101
102void *av_refstruct_alloc_ext_c(size_t size, unsigned flags, AVRefStructOpaque opaque,
103 void (*free_cb)(AVRefStructOpaque opaque, void *obj))

Callers 1

av_refstruct_alloc_ext_cFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected