Class VideoReader
Defined in File video_reader.hpp
Class Documentation
-
class VideoReader
Public Functions
-
explicit VideoReader(const std::filesystem::path &videoFilename)
-
virtual ~VideoReader()
-
AVPacket *read_next()
-
AVCodecID codec_id() const
-
std::chrono::nanoseconds ts_scale() const
-
std::chrono::nanoseconds duration() const
-
uint64_t frame_count() const
-
std::string format_name() const
Protected Attributes
-
AVPacket *nextPacket_ = nullptr
-
AVPacket *bsfPacket_ = nullptr
-
AVFormatContext *formatCtx_ = nullptr
-
const AVBitStreamFilter *bitstreamFilter_ = nullptr
-
AVBSFContext *bsfCtx_ = nullptr
-
AVStream *stream_ = nullptr
-
AVCodecID codecId_ = AV_CODEC_ID_NONE
-
int videoStreamIndex_ = -1
-
AVCodecParameters *codecParams_ = nullptr
-
std::string format_name_
-
std::chrono::nanoseconds ts_scale_
-
explicit VideoReader(const std::filesystem::path &videoFilename)