Template Class Packets¶
Defined in File packets.h
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()¶
-
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¶
-
size_t num_packets() const¶
-
int64_t get_pts(size_t index = 0) const¶
-
int get_num_channels() const¶
-
int get_sample_rate() const¶
-
Generator<RawPacketData> iter_packets() const¶
-
std::string get_summary() const¶
-
PacketsPtr<media> clone() const¶
-
Packets(std::string src, Codec<media> &&codec, std::optional<std::tuple<double, double>> timestamp = std::nullopt)¶