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