RAII wrapper for SwrContext.
FFmpeg_SwrContext()
Construct an empty resampler-context wrapper.
~FFmpeg_SwrContext()
Release the owned resampler context, if any.
bool empty() const
Check whether the wrapper currently owns a resampler context.
bool reset(SwrContext *ctx=nullptr)
Replace the owned context.
SwrContext * m_ctx
Pointer to underlying SwrContext.
SwrContext * release()
Release ownership without freeing the resampler context.
SwrContext ** address()
Get a writable pointer-to-pointer for FFmpeg allocation APIs.
SwrContext * get() const
Get the owned FFmpeg resampler context pointer.
SwrContext * operator->() const
Access members of the underlying resampler context.