Template Function spdl::core::deserialize_packets¶
Defined in File packets.h
Function Documentation¶
-
template<MediaType media>
std::unique_ptr<Packets<media>> spdl::core::deserialize_packets(const std::vector<uint8_t> &data)¶ Deserialize a byte buffer (produced by
serialize_packets) back to Packets, copying each payload into a freshly owned AVPacket buffer.See
serialize_packetsfor the note that the format is internal/process-local.- Template Parameters:
media – Media type (Audio, Video, or Image).
- Parameters:
data – Serialized byte vector.
- Returns:
Deserialized Packets (owning their payloads).