32#ifndef FFMPEG_SUBTITLE_H
33#define FFMPEG_SUBTITLE_H
66 void unref() noexcept;
71 operator AVSubtitle*();
75 operator const AVSubtitle*() const;
80 AVSubtitle* operator->();
The FFmpeg_Subtitle class.
FFmpeg_Subtitle(int stream_index=INVALID_STREAM)
Construct FFmpeg_Subtitle object.
int m_stream_idx
Stream index frame belongs to, or -1 (INVALID_STREAM)
void unref() noexcept
Unreference underlying frame. Synonym for shared_ptr::reset().
int m_res
0 if last operation was successful, or negative AVERROR value
static void delete_subtitle(AVSubtitle *subtitle)
Delete a subtitle.
int res() const
Get result of last operation.
AVSubtitle * alloc_subtitle()
Allocate a subtitle.
virtual ~FFmpeg_Subtitle()=default
Destruct FFmpeg_Subtitle object.
Various FFmpegfs utility functions.
#define INVALID_STREAM
Denote an invalid stream.