|
|
| FFWrapperPtr ()=default |
| | Create an empty wrapper; isNull() is true.
|
| | FFWrapperPtr (T *raw) |
| | Wrap an existing object.
|
| const T * | raw () const |
| | Read access to the wrapped object.
|
| T * | raw () |
| | Write access to the wrapped object.
|
| void | reset (T *raw=nullptr) |
| | Replace the stored pointer.
|
| bool | isNull () const |
| | Whether the wrapper is empty.
|
| 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 FFWrapperPtr< T >
The template stores the pointer, provides checked access to it and the logging helpers every wrapper exposes. It does not manage the lifetime of the pointed object: derived classes call av_*_free in their destructors.
- Template Parameters
-
| T | the FFmpeg type being wrapped |