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

Function av_refstruct_ref_c

libavutil/refstruct.c:149–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149const void *av_refstruct_ref_c(const void *obj)
150{
151 /* Casting const away here is fine, as it is only supposed
152 * to apply to the user's data and not our bookkeeping data. */
153 RefCount *ref = get_refcount((void*)obj);
154
155 atomic_fetch_add_explicit(&ref->refcount, 1, memory_order_relaxed);
156
157 return obj;
158}
159
160void av_refstruct_replace(void *dstp, const void *src)
161{

Callers 9

av_refstruct_replaceFunction · 0.85
alloc_pictureFunction · 0.85
set_spsFunction · 0.85
hevc_ref_frameFunction · 0.85
alloc_frameFunction · 0.85
ff_hevc_parse_spsFunction · 0.85
ff_hevc_decode_nal_ppsFunction · 0.85
alloc_frameFunction · 0.85

Calls 1

get_refcountFunction · 0.85

Tested by

no test coverage detected