Template Class DemuxedPackets

Class Documentation

template<MediaType media_type>
class DemuxedPackets

Public Functions

DemuxedPackets(std::string src, std::tuple<double, double> timestamp, AVCodecParameters *codecpar, Rational time_base)
DemuxedPackets(std::string src, AVCodecParameters *codecpar, Rational time_base)
~DemuxedPackets()
DemuxedPackets(const DemuxedPackets&) = delete
DemuxedPackets &operator=(const DemuxedPackets&) = delete
DemuxedPackets(DemuxedPackets &&other) noexcept = delete
DemuxedPackets &operator=(DemuxedPackets &&other) noexcept = delete
void push(AVPacket*)
const std::vector<AVPacket*> &get_packets() const
const char *get_media_format_name() const
int get_width() const
int get_height() const
Rational get_frame_rate() const
size_t num_packets () const requires(media_type

Public Members

uint64_t id
std::string src
std::optional<std::tuple<double, double>> timestamp
AVCodecParameters *codecpar = nullptr
Rational time_base = {0, 1}
Rational frame_rate = {0, 1}