FFmpeg
Loading...
Searching...
No Matches
Data Fields
AVRefStructOpaque Union Reference

RefStruct is an API for creating reference-counted objects with minimal overhead. More...

#include <libavutil/refstruct.h>

Data Fields

void * nc
 
const void * c
 

Detailed Description

RefStruct is an API for creating reference-counted objects with minimal overhead.

The API is designed for objects, not buffers like the AVBuffer API. The main differences to the AVBuffer API are as follows:

Note
Referencing and unreferencing the buffers is thread-safe and thus may be done from multiple threads simultaneously without any need for additional locking. This union is used for all opaque parameters in this API to spare the user to cast const away in case the opaque to use is const-qualified.

The functions provided by this API with an AVRefStructOpaque come in pairs named foo_c and foo. The foo function accepts void* as opaque and is just a wrapper around the foo_c function; "_c" means "(potentially) const".

Definition at line 58 of file refstruct.h.

Field Documentation

◆ nc

void* AVRefStructOpaque::nc

Definition at line 59 of file refstruct.h.

◆ c

const void* AVRefStructOpaque::c

Definition at line 60 of file refstruct.h.


The documentation for this union was generated from the following file: