97 operator const AVFrame*()
const;
int m_stream_idx
Stream index frame belongs to, or -1 (INVALID_STREAM)
FFmpeg_Frame & operator=(const FFmpeg_Frame &frame) noexcept
Make copy from other FFmpeg_Frame object.
virtual ~FFmpeg_Frame()
Destruct FFmpeg_Frame object.
AVFrame * operator->()
operator ->: Do as if we were a pointer to AVFrame
void unref()
Unreference underlying frame.
AVFrame * m_frame
Pointer to underlying AVFrame struct.
AVFrame * clone()
Clone frame to a new AVFrame * struct. Needs to be freed by a av_frame_free() call.
AVFrame * get()
Access the underlying frame.
FFmpeg_Frame(int stream_index=INVALID_STREAM)
Construct FFmpeg_Frame object.
void free()
Free underlying frame.
int m_res
0 if last operation was successful, or negative AVERROR value
int res() const
Get result of last operation.
#define INVALID_STREAM
Denote an invalid stream.