|
|
| FFWrapperRef ()=default |
| | Create a value-initialised holder.
|
| | FFWrapperRef (const T &raw) |
| | Copy a structure into the wrapper.
|
| const T * | raw () const |
| | Read access to the stored structure.
|
| T * | raw () |
| | Write access to the stored structure.
|
| void | reset (const T &raw=T()) |
| | Replace the stored value.
|
| bool | isNull () const |
| | Whether the stored value equals a default-constructed one.
|
| void | _log (int level, const char *fmt) const |
| | Log through the FFmpeg log system, using this wrapper as the context.
|
| template<typename... Args> |
| void | _log (int level, const char *fmt, const Args &... args) const |
| | Log through the FFmpeg log system with arguments.
|
template<typename T>
struct FFWrapperRef< T >
Used for structures FFmpeg expects to be passed by pointer but that have no separate allocation, such as AVPacketSideData. Address stability is part of the contract: raw() returns a pointer into the wrapper, so the wrapper must outlive any FFmpeg call that uses it.
- Template Parameters
-
| T | the FFmpeg type being held |