Template Class Packets

Class Documentation

template<MediaType media>
class Packets

Public Functions

Packets(std::string src, Codec<media> &&codec, std::optional<std::tuple<double, double>> timestamp = std::nullopt)
~Packets()
Packets(const Packets&) = delete
Packets &operator=(const Packets&) = delete
Packets(Packets &&other) noexcept = delete
Packets &operator=(Packets &&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
int64_t get_pts(size_t index = 0) const
int get_num_channels() const
int get_sample_rate() const
Codec<media> get_codec() const
Generator<RawPacketData> iter_packets() const
std::string get_summary() const
PacketsPtr<media> clone() const

Public Members

uintptr_t id
std::string src
std::optional<std::tuple<double, double>> timestamp
Codec<media> codec